azure-native.azurearcdata.SqlServerLicense
Explore with Pulumi AI
Describe SQL Server license resource.
Uses Azure REST API version 2024-05-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-05-01-preview.
Other available API versions: 2025-03-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurearcdata [ApiVersion]
. See the version guide for details.
Create SqlServerLicense Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlServerLicense(name: string, args: SqlServerLicenseArgs, opts?: CustomResourceOptions);
@overload
def SqlServerLicense(resource_name: str,
args: SqlServerLicenseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlServerLicense(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[SqlServerLicensePropertiesArgs] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
sql_server_license_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSqlServerLicense(ctx *Context, name string, args SqlServerLicenseArgs, opts ...ResourceOption) (*SqlServerLicense, error)
public SqlServerLicense(string name, SqlServerLicenseArgs args, CustomResourceOptions? opts = null)
public SqlServerLicense(String name, SqlServerLicenseArgs args)
public SqlServerLicense(String name, SqlServerLicenseArgs args, CustomResourceOptions options)
type: azure-native:azurearcdata:SqlServerLicense
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SqlServerLicenseArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. SqlServerLicenseArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SqlServerLicenseArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. SqlServerLicenseArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. SqlServerLicenseArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlServerLicenseResource = new AzureNative.AzureArcData.SqlServerLicense("sqlServerLicenseResource", new()
{
Properties = new AzureNative.AzureArcData.Inputs.SqlServerLicensePropertiesArgs
{
ActivationState = "string",
BillingPlan = "string",
LicenseCategory = "string",
PhysicalCores = 0,
ScopeType = "string",
},
ResourceGroupName = "string",
Location = "string",
SqlServerLicenseName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := azurearcdata.NewSqlServerLicense(ctx, "sqlServerLicenseResource", &azurearcdata.SqlServerLicenseArgs{
Properties: &azurearcdata.SqlServerLicensePropertiesArgs{
ActivationState: pulumi.String("string"),
BillingPlan: pulumi.String("string"),
LicenseCategory: pulumi.String("string"),
PhysicalCores: pulumi.Int(0),
ScopeType: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
SqlServerLicenseName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var sqlServerLicenseResource = new SqlServerLicense("sqlServerLicenseResource", SqlServerLicenseArgs.builder()
.properties(SqlServerLicensePropertiesArgs.builder()
.activationState("string")
.billingPlan("string")
.licenseCategory("string")
.physicalCores(0)
.scopeType("string")
.build())
.resourceGroupName("string")
.location("string")
.sqlServerLicenseName("string")
.tags(Map.of("string", "string"))
.build());
sql_server_license_resource = azure_native.azurearcdata.SqlServerLicense("sqlServerLicenseResource",
properties={
"activation_state": "string",
"billing_plan": "string",
"license_category": "string",
"physical_cores": 0,
"scope_type": "string",
},
resource_group_name="string",
location="string",
sql_server_license_name="string",
tags={
"string": "string",
})
const sqlServerLicenseResource = new azure_native.azurearcdata.SqlServerLicense("sqlServerLicenseResource", {
properties: {
activationState: "string",
billingPlan: "string",
licenseCategory: "string",
physicalCores: 0,
scopeType: "string",
},
resourceGroupName: "string",
location: "string",
sqlServerLicenseName: "string",
tags: {
string: "string",
},
});
type: azure-native:azurearcdata:SqlServerLicense
properties:
location: string
properties:
activationState: string
billingPlan: string
licenseCategory: string
physicalCores: 0
scopeType: string
resourceGroupName: string
sqlServerLicenseName: string
tags:
string: string
SqlServerLicense Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlServerLicense resource accepts the following input properties:
- Properties
This property is required. Pulumi.Azure Native. Azure Arc Data. Inputs. Sql Server License Properties - SQL Server license properties
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Azure resource group
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Sql
Server License Name Changes to this property will trigger replacement.
- Name of SQL Server License
- Dictionary<string, string>
- Resource tags.
- Properties
This property is required. SqlServer License Properties Args - SQL Server license properties
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Azure resource group
- Location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- Sql
Server License Name Changes to this property will trigger replacement.
- Name of SQL Server License
- map[string]string
- Resource tags.
- properties
This property is required. SqlServer License Properties - SQL Server license properties
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Azure resource group
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- sql
Server License Name Changes to this property will trigger replacement.
- Name of SQL Server License
- Map<String,String>
- Resource tags.
- properties
This property is required. SqlServer License Properties - SQL Server license properties
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Azure resource group
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- sql
Server License Name Changes to this property will trigger replacement.
- Name of SQL Server License
- {[key: string]: string}
- Resource tags.
- properties
This property is required. SqlServer License Properties Args - SQL Server license properties
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the Azure resource group
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- sql_
server_ license_ name Changes to this property will trigger replacement.
- Name of SQL Server License
- Mapping[str, str]
- Resource tags.
- properties
This property is required. Property Map - SQL Server license properties
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Azure resource group
- location
Changes to this property will trigger replacement.
- The geo-location where the resource lives
- sql
Server License Name Changes to this property will trigger replacement.
- Name of SQL Server License
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlServerLicense resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Azure Arc Data. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ActivationState, ActivationStateArgs
- Activated
- Activated
- Deactivated
- Deactivated
- Activation
State Activated - Activated
- Activation
State Deactivated - Deactivated
- Activated
- Activated
- Deactivated
- Deactivated
- Activated
- Activated
- Deactivated
- Deactivated
- ACTIVATED
- Activated
- DEACTIVATED
- Deactivated
- "Activated"
- Activated
- "Deactivated"
- Deactivated
BillingPlan, BillingPlanArgs
- PAYG
- PAYG
- Paid
- Paid
- Billing
Plan PAYG - PAYG
- Billing
Plan Paid - Paid
- PAYG
- PAYG
- Paid
- Paid
- PAYG
- PAYG
- Paid
- Paid
- PAYG
- PAYG
- PAID
- Paid
- "PAYG"
- PAYG
- "Paid"
- Paid
LicenseCategory, LicenseCategoryArgs
- Core
- Core
- License
Category Core - Core
- Core
- Core
- Core
- Core
- CORE
- Core
- "Core"
- Core
ScopeType, ScopeTypeArgs
- Tenant
- Tenant
- Subscription
- Subscription
- Resource
Group - ResourceGroup
- Scope
Type Tenant - Tenant
- Scope
Type Subscription - Subscription
- Scope
Type Resource Group - ResourceGroup
- Tenant
- Tenant
- Subscription
- Subscription
- Resource
Group - ResourceGroup
- Tenant
- Tenant
- Subscription
- Subscription
- Resource
Group - ResourceGroup
- TENANT
- Tenant
- SUBSCRIPTION
- Subscription
- RESOURCE_GROUP
- ResourceGroup
- "Tenant"
- Tenant
- "Subscription"
- Subscription
- "Resource
Group" - ResourceGroup
SqlServerLicenseProperties, SqlServerLicensePropertiesArgs
- Activation
State This property is required. string | Pulumi.Azure Native. Azure Arc Data. Activation State - The activation state of the license.
- Billing
Plan This property is required. string | Pulumi.Azure Native. Azure Arc Data. Billing Plan - SQL Server license type.
- License
Category This property is required. string | Pulumi.Azure Native. Azure Arc Data. License Category - This property represents the choice between SQL Server Core and ESU licenses.
- Physical
Cores This property is required. int - The number of total cores of the license covers.
- Scope
Type This property is required. string | Pulumi.Azure Native. Azure Arc Data. Scope Type - The Azure scope to which the license will apply.
- Activation
State This property is required. string | ActivationState - The activation state of the license.
- Billing
Plan This property is required. string | BillingPlan - SQL Server license type.
- License
Category This property is required. string | LicenseCategory - This property represents the choice between SQL Server Core and ESU licenses.
- Physical
Cores This property is required. int - The number of total cores of the license covers.
- Scope
Type This property is required. string | ScopeType - The Azure scope to which the license will apply.
- activation
State This property is required. String | ActivationState - The activation state of the license.
- billing
Plan This property is required. String | BillingPlan - SQL Server license type.
- license
Category This property is required. String | LicenseCategory - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores This property is required. Integer - The number of total cores of the license covers.
- scope
Type This property is required. String | ScopeType - The Azure scope to which the license will apply.
- activation
State This property is required. string | ActivationState - The activation state of the license.
- billing
Plan This property is required. string | BillingPlan - SQL Server license type.
- license
Category This property is required. string | LicenseCategory - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores This property is required. number - The number of total cores of the license covers.
- scope
Type This property is required. string | ScopeType - The Azure scope to which the license will apply.
- activation_
state This property is required. str | ActivationState - The activation state of the license.
- billing_
plan This property is required. str | BillingPlan - SQL Server license type.
- license_
category This property is required. str | LicenseCategory - This property represents the choice between SQL Server Core and ESU licenses.
- physical_
cores This property is required. int - The number of total cores of the license covers.
- scope_
type This property is required. str | ScopeType - The Azure scope to which the license will apply.
- activation
State This property is required. String | "Activated" | "Deactivated" - The activation state of the license.
- billing
Plan This property is required. String | "PAYG" | "Paid" - SQL Server license type.
- license
Category This property is required. String | "Core" - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores This property is required. Number - The number of total cores of the license covers.
- scope
Type This property is required. String | "Tenant" | "Subscription" | "ResourceGroup" - The Azure scope to which the license will apply.
SqlServerLicensePropertiesResponse, SqlServerLicensePropertiesResponseArgs
- Activation
State This property is required. string - The activation state of the license.
- Billing
Plan This property is required. string - SQL Server license type.
- Last
Activated At This property is required. string - The timestamp of the most recent activation of the SqlServerLicense.
- Last
Deactivated At This property is required. string - The timestamp of the most recent deactivation of the SqlServerLicense.
- License
Category This property is required. string - This property represents the choice between SQL Server Core and ESU licenses.
- Physical
Cores This property is required. int - The number of total cores of the license covers.
- Scope
Type This property is required. string - The Azure scope to which the license will apply.
- Tenant
Id This property is required. string - The tenantId the SQL Server license resource subscription resides in.
- Activation
State This property is required. string - The activation state of the license.
- Billing
Plan This property is required. string - SQL Server license type.
- Last
Activated At This property is required. string - The timestamp of the most recent activation of the SqlServerLicense.
- Last
Deactivated At This property is required. string - The timestamp of the most recent deactivation of the SqlServerLicense.
- License
Category This property is required. string - This property represents the choice between SQL Server Core and ESU licenses.
- Physical
Cores This property is required. int - The number of total cores of the license covers.
- Scope
Type This property is required. string - The Azure scope to which the license will apply.
- Tenant
Id This property is required. string - The tenantId the SQL Server license resource subscription resides in.
- activation
State This property is required. String - The activation state of the license.
- billing
Plan This property is required. String - SQL Server license type.
- last
Activated At This property is required. String - The timestamp of the most recent activation of the SqlServerLicense.
- last
Deactivated At This property is required. String - The timestamp of the most recent deactivation of the SqlServerLicense.
- license
Category This property is required. String - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores This property is required. Integer - The number of total cores of the license covers.
- scope
Type This property is required. String - The Azure scope to which the license will apply.
- tenant
Id This property is required. String - The tenantId the SQL Server license resource subscription resides in.
- activation
State This property is required. string - The activation state of the license.
- billing
Plan This property is required. string - SQL Server license type.
- last
Activated At This property is required. string - The timestamp of the most recent activation of the SqlServerLicense.
- last
Deactivated At This property is required. string - The timestamp of the most recent deactivation of the SqlServerLicense.
- license
Category This property is required. string - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores This property is required. number - The number of total cores of the license covers.
- scope
Type This property is required. string - The Azure scope to which the license will apply.
- tenant
Id This property is required. string - The tenantId the SQL Server license resource subscription resides in.
- activation_
state This property is required. str - The activation state of the license.
- billing_
plan This property is required. str - SQL Server license type.
- last_
activated_ at This property is required. str - The timestamp of the most recent activation of the SqlServerLicense.
- last_
deactivated_ at This property is required. str - The timestamp of the most recent deactivation of the SqlServerLicense.
- license_
category This property is required. str - This property represents the choice between SQL Server Core and ESU licenses.
- physical_
cores This property is required. int - The number of total cores of the license covers.
- scope_
type This property is required. str - The Azure scope to which the license will apply.
- tenant_
id This property is required. str - The tenantId the SQL Server license resource subscription resides in.
- activation
State This property is required. String - The activation state of the license.
- billing
Plan This property is required. String - SQL Server license type.
- last
Activated At This property is required. String - The timestamp of the most recent activation of the SqlServerLicense.
- last
Deactivated At This property is required. String - The timestamp of the most recent deactivation of the SqlServerLicense.
- license
Category This property is required. String - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores This property is required. Number - The number of total cores of the license covers.
- scope
Type This property is required. String - The Azure scope to which the license will apply.
- tenant
Id This property is required. String - The tenantId the SQL Server license resource subscription resides in.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurearcdata:SqlServerLicense sqlServerLicense /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/sqlServerLicenses/{sqlServerLicenseName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0