MultipleActivationKeyArgs

data class MultipleActivationKeyArgs(val agreementNumber: Output<String>? = null, val installedServerNumber: Output<Int>? = null, val isEligible: Output<Boolean>? = null, val location: Output<String>? = null, val multipleActivationKeyName: Output<String>? = null, val osType: Output<Either<String, OsType>>? = null, val resourceGroupName: Output<String>? = null, val supportType: Output<Either<String, SupportType>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MultipleActivationKeyArgs>

MAK key details. Uses Azure REST API version 2019-09-16-preview. In version 2.x of the Azure Native provider, it used API version 2019-09-16-preview.

Example Usage

CreateMultipleActivationKey

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var multipleActivationKey = new AzureNative.WindowsESU.MultipleActivationKey("multipleActivationKey", new()
{
AgreementNumber = "1a2b45ag",
InstalledServerNumber = 100,
IsEligible = true,
Location = "East US",
MultipleActivationKeyName = "server08-key-2019",
OsType = AzureNative.WindowsESU.OsType.WindowsServer2008,
ResourceGroupName = "testgr1",
SupportType = AzureNative.WindowsESU.SupportType.SupplementalServicing,
});
});
package main
import (
windowsesu "github.com/pulumi/pulumi-azure-native-sdk/windowsesu/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := windowsesu.NewMultipleActivationKey(ctx, "multipleActivationKey", &windowsesu.MultipleActivationKeyArgs{
AgreementNumber: pulumi.String("1a2b45ag"),
InstalledServerNumber: pulumi.Int(100),
IsEligible: pulumi.Bool(true),
Location: pulumi.String("East US"),
MultipleActivationKeyName: pulumi.String("server08-key-2019"),
OsType: pulumi.String(windowsesu.OsTypeWindowsServer2008),
ResourceGroupName: pulumi.String("testgr1"),
SupportType: pulumi.String(windowsesu.SupportTypeSupplementalServicing),
})
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.windowsesu.MultipleActivationKey;
import com.pulumi.azurenative.windowsesu.MultipleActivationKeyArgs;
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 multipleActivationKey = new MultipleActivationKey("multipleActivationKey", MultipleActivationKeyArgs.builder()
.agreementNumber("1a2b45ag")
.installedServerNumber(100)
.isEligible(true)
.location("East US")
.multipleActivationKeyName("server08-key-2019")
.osType("WindowsServer2008")
.resourceGroupName("testgr1")
.supportType("SupplementalServicing")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:windowsesu:MultipleActivationKey server08-key-2019 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsESU/multipleActivationKeys/{multipleActivationKeyName}

Constructors

Link copied to clipboard
constructor(agreementNumber: Output<String>? = null, installedServerNumber: Output<Int>? = null, isEligible: Output<Boolean>? = null, location: Output<String>? = null, multipleActivationKeyName: Output<String>? = null, osType: Output<Either<String, OsType>>? = null, resourceGroupName: Output<String>? = null, supportType: Output<Either<String, SupportType>>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Agreement number under which the key is requested.

Link copied to clipboard
val installedServerNumber: Output<Int>? = null

Number of activations/servers using the MAK key.

Link copied to clipboard
val isEligible: Output<Boolean>? = null
true if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; false otherwise.
Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

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

The name of the MAK key.

Link copied to clipboard
val osType: Output<Either<String, OsType>>? = null

Type of OS for which the key is requested.

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 supportType: Output<Either<String, SupportType>>? = null

Type of support

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

Resource tags.

Functions

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