SqlServerLicenseArgs

data class SqlServerLicenseArgs(val location: Output<String>? = null, val properties: Output<SqlServerLicensePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val sqlServerLicenseName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SqlServerLicenseArgs>

Describe SQL Server license resource. Uses Azure REST API version 2024-05-01-preview. Other available API versions: 2025-03-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

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}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, properties: Output<SqlServerLicensePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, sqlServerLicenseName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard

SQL Server license properties

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Azure resource group

Link copied to clipboard
val sqlServerLicenseName: Output<String>? = null

Name of SQL Server License

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): SqlServerLicenseArgs