azure-native.azurearcdata.SqlServerLicense
Explore with Pulumi AI
Describe SQL Server license resource. Azure REST API version: 2024-05-01-preview.
Example Usage
Updates a SQL Server license tags.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var sqlServerLicense = new AzureNative.AzureArcData.SqlServerLicense("sqlServerLicense", new()
    {
        Location = "northeurope",
        Properties = new AzureNative.AzureArcData.Inputs.SqlServerLicensePropertiesArgs
        {
            ActivationState = AzureNative.AzureArcData.ActivationState.Deactivated,
            BillingPlan = AzureNative.AzureArcData.BillingPlan.PAYG,
            LicenseCategory = AzureNative.AzureArcData.LicenseCategory.Core,
            PhysicalCores = 24,
            ScopeType = AzureNative.AzureArcData.ScopeType.Subscription,
        },
        ResourceGroupName = "testrg",
        SqlServerLicenseName = "testsqlServerLicense",
        Tags = 
        {
            { "mytag", "myval" },
        },
    });
});
package main
import (
	azurearcdata "github.com/pulumi/pulumi-azure-native-sdk/azurearcdata/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azurearcdata.NewSqlServerLicense(ctx, "sqlServerLicense", &azurearcdata.SqlServerLicenseArgs{
			Location: pulumi.String("northeurope"),
			Properties: &azurearcdata.SqlServerLicensePropertiesArgs{
				ActivationState: pulumi.String(azurearcdata.ActivationStateDeactivated),
				BillingPlan:     pulumi.String(azurearcdata.BillingPlanPAYG),
				LicenseCategory: pulumi.String(azurearcdata.LicenseCategoryCore),
				PhysicalCores:   pulumi.Int(24),
				ScopeType:       pulumi.String(azurearcdata.ScopeTypeSubscription),
			},
			ResourceGroupName:    pulumi.String("testrg"),
			SqlServerLicenseName: pulumi.String("testsqlServerLicense"),
			Tags: pulumi.StringMap{
				"mytag": pulumi.String("myval"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurearcdata.SqlServerLicense;
import com.pulumi.azurenative.azurearcdata.SqlServerLicenseArgs;
import com.pulumi.azurenative.azurearcdata.inputs.SqlServerLicensePropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var sqlServerLicense = new SqlServerLicense("sqlServerLicense", SqlServerLicenseArgs.builder()
            .location("northeurope")
            .properties(SqlServerLicensePropertiesArgs.builder()
                .activationState("Deactivated")
                .billingPlan("PAYG")
                .licenseCategory("Core")
                .physicalCores(24)
                .scopeType("Subscription")
                .build())
            .resourceGroupName("testrg")
            .sqlServerLicenseName("testsqlServerLicense")
            .tags(Map.of("mytag", "myval"))
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sqlServerLicense = new azure_native.azurearcdata.SqlServerLicense("sqlServerLicense", {
    location: "northeurope",
    properties: {
        activationState: azure_native.azurearcdata.ActivationState.Deactivated,
        billingPlan: azure_native.azurearcdata.BillingPlan.PAYG,
        licenseCategory: azure_native.azurearcdata.LicenseCategory.Core,
        physicalCores: 24,
        scopeType: azure_native.azurearcdata.ScopeType.Subscription,
    },
    resourceGroupName: "testrg",
    sqlServerLicenseName: "testsqlServerLicense",
    tags: {
        mytag: "myval",
    },
});
import pulumi
import pulumi_azure_native as azure_native
sql_server_license = azure_native.azurearcdata.SqlServerLicense("sqlServerLicense",
    location="northeurope",
    properties={
        "activation_state": azure_native.azurearcdata.ActivationState.DEACTIVATED,
        "billing_plan": azure_native.azurearcdata.BillingPlan.PAYG,
        "license_category": azure_native.azurearcdata.LicenseCategory.CORE,
        "physical_cores": 24,
        "scope_type": azure_native.azurearcdata.ScopeType.SUBSCRIPTION,
    },
    resource_group_name="testrg",
    sql_server_license_name="testsqlServerLicense",
    tags={
        "mytag": "myval",
    })
resources:
  sqlServerLicense:
    type: azure-native:azurearcdata:SqlServerLicense
    properties:
      location: northeurope
      properties:
        activationState: Deactivated
        billingPlan: PAYG
        licenseCategory: Core
        physicalCores: 24
        scopeType: Subscription
      resourceGroupName: testrg
      sqlServerLicenseName: testsqlServerLicense
      tags:
        mytag: myval
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 string
- The unique name of the resource.
- args SqlServerLicenseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args SqlServerLicenseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlServerLicenseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
Pulumi.Azure Native. Azure Arc Data. Inputs. Sql Server License Properties 
- SQL Server license properties
- ResourceGroup stringName 
- The name of the Azure resource group
- Location string
- The geo-location where the resource lives
- SqlServer stringLicense Name 
- Name of SQL Server License
- Dictionary<string, string>
- Resource tags.
- Properties
SqlServer License Properties Args 
- SQL Server license properties
- ResourceGroup stringName 
- The name of the Azure resource group
- Location string
- The geo-location where the resource lives
- SqlServer stringLicense Name 
- Name of SQL Server License
- map[string]string
- Resource tags.
- properties
SqlServer License Properties 
- SQL Server license properties
- resourceGroup StringName 
- The name of the Azure resource group
- location String
- The geo-location where the resource lives
- sqlServer StringLicense Name 
- Name of SQL Server License
- Map<String,String>
- Resource tags.
- properties
SqlServer License Properties 
- SQL Server license properties
- resourceGroup stringName 
- The name of the Azure resource group
- location string
- The geo-location where the resource lives
- sqlServer stringLicense Name 
- Name of SQL Server License
- {[key: string]: string}
- Resource tags.
- properties
SqlServer License Properties Args 
- SQL Server license properties
- resource_group_ strname 
- The name of the Azure resource group
- location str
- The geo-location where the resource lives
- sql_server_ strlicense_ name 
- Name of SQL Server License
- Mapping[str, str]
- Resource tags.
- properties Property Map
- SQL Server license properties
- resourceGroup StringName 
- The name of the Azure resource group
- location String
- The geo-location where the resource lives
- sqlServer StringLicense Name 
- 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:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData 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"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData 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"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData 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"
- 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData 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
- ActivationState Activated 
- Activated
- ActivationState Deactivated 
- Deactivated
- Activated
- Activated
- Deactivated
- Deactivated
- Activated
- Activated
- Deactivated
- Deactivated
- ACTIVATED
- Activated
- DEACTIVATED
- Deactivated
- "Activated"
- Activated
- "Deactivated"
- Deactivated
BillingPlan, BillingPlanArgs    
- PAYG
- PAYG
- Paid
- Paid
- BillingPlan PAYG 
- PAYG
- BillingPlan Paid 
- Paid
- PAYG
- PAYG
- Paid
- Paid
- PAYG
- PAYG
- Paid
- Paid
- PAYG
- PAYG
- PAID
- Paid
- "PAYG"
- PAYG
- "Paid"
- Paid
LicenseCategory, LicenseCategoryArgs    
- Core
- Core
- LicenseCategory Core 
- Core
- Core
- Core
- Core
- Core
- CORE
- Core
- "Core"
- Core
ScopeType, ScopeTypeArgs    
- Tenant
- Tenant
- Subscription
- Subscription
- ResourceGroup 
- ResourceGroup
- ScopeType Tenant 
- Tenant
- ScopeType Subscription 
- Subscription
- ScopeType Resource Group 
- ResourceGroup
- Tenant
- Tenant
- Subscription
- Subscription
- ResourceGroup 
- ResourceGroup
- Tenant
- Tenant
- Subscription
- Subscription
- ResourceGroup 
- ResourceGroup
- TENANT
- Tenant
- SUBSCRIPTION
- Subscription
- RESOURCE_GROUP
- ResourceGroup
- "Tenant"
- Tenant
- "Subscription"
- Subscription
- "ResourceGroup" 
- ResourceGroup
SqlServerLicenseProperties, SqlServerLicensePropertiesArgs        
- ActivationState string | Pulumi.Azure Native. Azure Arc Data. Activation State 
- The activation state of the license.
- BillingPlan string | Pulumi.Azure Native. Azure Arc Data. Billing Plan 
- SQL Server license type.
- LicenseCategory string | Pulumi.Azure Native. Azure Arc Data. License Category 
- This property represents the choice between SQL Server Core and ESU licenses.
- PhysicalCores int
- The number of total cores of the license covers.
- ScopeType string | Pulumi.Azure Native. Azure Arc Data. Scope Type 
- The Azure scope to which the license will apply.
- ActivationState string | ActivationState 
- The activation state of the license.
- BillingPlan string | BillingPlan 
- SQL Server license type.
- LicenseCategory string | LicenseCategory 
- This property represents the choice between SQL Server Core and ESU licenses.
- PhysicalCores int
- The number of total cores of the license covers.
- ScopeType string | ScopeType 
- The Azure scope to which the license will apply.
- activationState String | ActivationState 
- The activation state of the license.
- billingPlan String | BillingPlan 
- SQL Server license type.
- licenseCategory String | LicenseCategory 
- This property represents the choice between SQL Server Core and ESU licenses.
- physicalCores Integer
- The number of total cores of the license covers.
- scopeType String | ScopeType 
- The Azure scope to which the license will apply.
- activationState string | ActivationState 
- The activation state of the license.
- billingPlan string | BillingPlan 
- SQL Server license type.
- licenseCategory string | LicenseCategory 
- This property represents the choice between SQL Server Core and ESU licenses.
- physicalCores number
- The number of total cores of the license covers.
- scopeType string | ScopeType 
- The Azure scope to which the license will apply.
- activation_state str | ActivationState 
- The activation state of the license.
- billing_plan str | BillingPlan 
- SQL Server license type.
- license_category str | LicenseCategory 
- This property represents the choice between SQL Server Core and ESU licenses.
- physical_cores int
- The number of total cores of the license covers.
- scope_type str | ScopeType 
- The Azure scope to which the license will apply.
- activationState String | "Activated" | "Deactivated"
- The activation state of the license.
- billingPlan String | "PAYG" | "Paid"
- SQL Server license type.
- licenseCategory String | "Core"
- This property represents the choice between SQL Server Core and ESU licenses.
- physicalCores Number
- The number of total cores of the license covers.
- scopeType String | "Tenant" | "Subscription" | "ResourceGroup" 
- The Azure scope to which the license will apply.
SqlServerLicensePropertiesResponse, SqlServerLicensePropertiesResponseArgs          
- ActivationState string
- The activation state of the license.
- BillingPlan string
- SQL Server license type.
- LastActivated stringAt 
- The timestamp of the most recent activation of the SqlServerLicense.
- LastDeactivated stringAt 
- The timestamp of the most recent deactivation of the SqlServerLicense.
- LicenseCategory string
- This property represents the choice between SQL Server Core and ESU licenses.
- PhysicalCores int
- The number of total cores of the license covers.
- ScopeType string
- The Azure scope to which the license will apply.
- TenantId string
- The tenantId the SQL Server license resource subscription resides in.
- ActivationState string
- The activation state of the license.
- BillingPlan string
- SQL Server license type.
- LastActivated stringAt 
- The timestamp of the most recent activation of the SqlServerLicense.
- LastDeactivated stringAt 
- The timestamp of the most recent deactivation of the SqlServerLicense.
- LicenseCategory string
- This property represents the choice between SQL Server Core and ESU licenses.
- PhysicalCores int
- The number of total cores of the license covers.
- ScopeType string
- The Azure scope to which the license will apply.
- TenantId string
- The tenantId the SQL Server license resource subscription resides in.
- activationState String
- The activation state of the license.
- billingPlan String
- SQL Server license type.
- lastActivated StringAt 
- The timestamp of the most recent activation of the SqlServerLicense.
- lastDeactivated StringAt 
- The timestamp of the most recent deactivation of the SqlServerLicense.
- licenseCategory String
- This property represents the choice between SQL Server Core and ESU licenses.
- physicalCores Integer
- The number of total cores of the license covers.
- scopeType String
- The Azure scope to which the license will apply.
- tenantId String
- The tenantId the SQL Server license resource subscription resides in.
- activationState string
- The activation state of the license.
- billingPlan string
- SQL Server license type.
- lastActivated stringAt 
- The timestamp of the most recent activation of the SqlServerLicense.
- lastDeactivated stringAt 
- The timestamp of the most recent deactivation of the SqlServerLicense.
- licenseCategory string
- This property represents the choice between SQL Server Core and ESU licenses.
- physicalCores number
- The number of total cores of the license covers.
- scopeType string
- The Azure scope to which the license will apply.
- tenantId string
- The tenantId the SQL Server license resource subscription resides in.
- activation_state str
- The activation state of the license.
- billing_plan str
- SQL Server license type.
- last_activated_ strat 
- The timestamp of the most recent activation of the SqlServerLicense.
- last_deactivated_ strat 
- The timestamp of the most recent deactivation of the SqlServerLicense.
- license_category str
- This property represents the choice between SQL Server Core and ESU licenses.
- physical_cores int
- The number of total cores of the license covers.
- scope_type str
- The Azure scope to which the license will apply.
- tenant_id str
- The tenantId the SQL Server license resource subscription resides in.
- activationState String
- The activation state of the license.
- billingPlan String
- SQL Server license type.
- lastActivated StringAt 
- The timestamp of the most recent activation of the SqlServerLicense.
- lastDeactivated StringAt 
- The timestamp of the most recent deactivation of the SqlServerLicense.
- licenseCategory String
- This property represents the choice between SQL Server Core and ESU licenses.
- physicalCores Number
- The number of total cores of the license covers.
- scopeType String
- The Azure scope to which the license will apply.
- tenantId String
- The tenantId the SQL Server license resource subscription resides in.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified 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.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified 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