SqlServerEsuLicenseArgs

data class SqlServerEsuLicenseArgs(val location: Output<String>? = null, val properties: Output<SqlServerEsuLicensePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val sqlServerEsuLicenseName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SqlServerEsuLicenseArgs>

Describe SQL Server ESU 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/#accessing-any-api-version-via-local-packages for details.

Example Usage

Updates a SQL Server ESU license.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sqlServerEsuLicense = new AzureNative.AzureArcData.SqlServerEsuLicense("sqlServerEsuLicense", new()
{
Location = "northeurope",
Properties = new AzureNative.AzureArcData.Inputs.SqlServerEsuLicensePropertiesArgs
{
ActivationState = AzureNative.AzureArcData.State.Inactive,
BillingPlan = AzureNative.AzureArcData.BillingPlan.PAYG,
PhysicalCores = 24,
ScopeType = AzureNative.AzureArcData.ScopeType.Subscription,
Version = AzureNative.AzureArcData.Version.SQL_Server_2012,
},
ResourceGroupName = "testrg",
SqlServerEsuLicenseName = "testsqlServerEsuLicense",
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.NewSqlServerEsuLicense(ctx, "sqlServerEsuLicense", &azurearcdata.SqlServerEsuLicenseArgs{
Location: pulumi.String("northeurope"),
Properties: &azurearcdata.SqlServerEsuLicensePropertiesArgs{
ActivationState: pulumi.String(azurearcdata.StateInactive),
BillingPlan: pulumi.String(azurearcdata.BillingPlanPAYG),
PhysicalCores: pulumi.Int(24),
ScopeType: pulumi.String(azurearcdata.ScopeTypeSubscription),
Version: pulumi.String(azurearcdata.Version_SQL_Server_2012),
},
ResourceGroupName: pulumi.String("testrg"),
SqlServerEsuLicenseName: pulumi.String("testsqlServerEsuLicense"),
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.SqlServerEsuLicense;
import com.pulumi.azurenative.azurearcdata.SqlServerEsuLicenseArgs;
import com.pulumi.azurenative.azurearcdata.inputs.SqlServerEsuLicensePropertiesArgs;
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 sqlServerEsuLicense = new SqlServerEsuLicense("sqlServerEsuLicense", SqlServerEsuLicenseArgs.builder()
.location("northeurope")
.properties(SqlServerEsuLicensePropertiesArgs.builder()
.activationState("Inactive")
.billingPlan("PAYG")
.physicalCores(24)
.scopeType("Subscription")
.version("SQL Server 2012")
.build())
.resourceGroupName("testrg")
.sqlServerEsuLicenseName("testsqlServerEsuLicense")
.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:SqlServerEsuLicense sqlServerEsuLicense /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/sqlServerEsuLicenses/{sqlServerEsuLicenseName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, properties: Output<SqlServerEsuLicensePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, sqlServerEsuLicenseName: 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 ESU license properties

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

The name of the resource group. The name is case insensitive.

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

Name of SQL Server ESU License

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

Resource tags.

Functions

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