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 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",
})
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",
},
});
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
- Resource
Group stringName - The name of the Azure resource group
- Location string
- The geo-location where the resource lives
- Sql
Server stringLicense Name - Name of SQL Server License
- Dictionary<string, string>
- Resource tags.
- Properties
Sql
Server License Properties Args - SQL Server license properties
- Resource
Group stringName - The name of the Azure resource group
- Location string
- The geo-location where the resource lives
- Sql
Server stringLicense Name - Name of SQL Server License
- map[string]string
- Resource tags.
- properties
Sql
Server License Properties - SQL Server license properties
- resource
Group StringName - The name of the Azure resource group
- location String
- The geo-location where the resource lives
- sql
Server StringLicense Name - Name of SQL Server License
- Map<String,String>
- Resource tags.
- properties
Sql
Server License Properties - SQL Server license properties
- resource
Group stringName - The name of the Azure resource group
- location string
- The geo-location where the resource lives
- sql
Server stringLicense Name - Name of SQL Server License
- {[key: string]: string}
- Resource tags.
- properties
Sql
Server 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
- resource
Group StringName - The name of the Azure resource group
- location String
- The geo-location where the resource lives
- sql
Server 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
- 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"
- 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"
- 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"
- 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"
- 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
- 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 string | Pulumi.Azure Native. Azure Arc Data. Activation State - The activation state of the license.
- Billing
Plan string | Pulumi.Azure Native. Azure Arc Data. Billing Plan - SQL Server license type.
- License
Category string | Pulumi.Azure Native. Azure Arc Data. License Category - 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 string | Pulumi.Azure Native. Azure Arc Data. Scope Type - The Azure scope to which the license will apply.
- Activation
State string | ActivationState - The activation state of the license.
- Billing
Plan string | BillingPlan - SQL Server license type.
- License
Category string | 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 string | ScopeType - The Azure scope to which the license will apply.
- activation
State String | ActivationState - The activation state of the license.
- billing
Plan String | BillingPlan - SQL Server license type.
- license
Category String | LicenseCategory - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores Integer - The number of total cores of the license covers.
- scope
Type String | ScopeType - The Azure scope to which the license will apply.
- activation
State string | ActivationState - The activation state of the license.
- billing
Plan string | BillingPlan - SQL Server license type.
- license
Category string | LicenseCategory - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores number - The number of total cores of the license covers.
- scope
Type 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.
- activation
State String | "Activated" | "Deactivated" - The activation state of the license.
- billing
Plan String | "PAYG" | "Paid" - SQL Server license type.
- license
Category String | "Core" - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores Number - The number of total cores of the license covers.
- scope
Type String | "Tenant" | "Subscription" | "ResourceGroup" - The Azure scope to which the license will apply.
SqlServerLicensePropertiesResponse, SqlServerLicensePropertiesResponseArgs
- Activation
State string - The activation state of the license.
- Billing
Plan string - SQL Server license type.
- Last
Activated stringAt - The timestamp of the most recent activation of the SqlServerLicense.
- Last
Deactivated stringAt - The timestamp of the most recent deactivation of the SqlServerLicense.
- License
Category string - 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 string - The Azure scope to which the license will apply.
- Tenant
Id string - The tenantId the SQL Server license resource subscription resides in.
- Activation
State string - The activation state of the license.
- Billing
Plan string - SQL Server license type.
- Last
Activated stringAt - The timestamp of the most recent activation of the SqlServerLicense.
- Last
Deactivated stringAt - The timestamp of the most recent deactivation of the SqlServerLicense.
- License
Category string - 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 string - The Azure scope to which the license will apply.
- Tenant
Id string - The tenantId the SQL Server license resource subscription resides in.
- activation
State String - The activation state of the license.
- billing
Plan String - SQL Server license type.
- last
Activated StringAt - The timestamp of the most recent activation of the SqlServerLicense.
- last
Deactivated StringAt - The timestamp of the most recent deactivation of the SqlServerLicense.
- license
Category String - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores Integer - The number of total cores of the license covers.
- scope
Type String - The Azure scope to which the license will apply.
- tenant
Id String - The tenantId the SQL Server license resource subscription resides in.
- activation
State string - The activation state of the license.
- billing
Plan string - SQL Server license type.
- last
Activated stringAt - The timestamp of the most recent activation of the SqlServerLicense.
- last
Deactivated stringAt - The timestamp of the most recent deactivation of the SqlServerLicense.
- license
Category string - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores number - The number of total cores of the license covers.
- scope
Type string - The Azure scope to which the license will apply.
- tenant
Id 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.
- activation
State String - The activation state of the license.
- billing
Plan String - SQL Server license type.
- last
Activated StringAt - The timestamp of the most recent activation of the SqlServerLicense.
- last
Deactivated StringAt - The timestamp of the most recent deactivation of the SqlServerLicense.
- license
Category String - This property represents the choice between SQL Server Core and ESU licenses.
- physical
Cores Number - The number of total cores of the license covers.
- scope
Type String - The Azure scope to which the license will apply.
- tenant
Id 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