Azure Native

v1.88.1 published on Thursday, Dec 1, 2022 by Pulumi

MultipleActivationKey

MAK key details. API Version: 2019-09-16-preview.

Example Usage

CreateMultipleActivationKey

using System.Collections.Generic;
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 = "WindowsServer2008",
        ResourceGroupName = "testgr1",
        SupportType = "SupplementalServicing",
    });

});
package main

import (
	windowsesu "github.com/pulumi/pulumi-azure-native/sdk/go/azure/windowsesu"
	"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("WindowsServer2008"),
			ResourceGroupName:         pulumi.String("testgr1"),
			SupportType:               pulumi.String("SupplementalServicing"),
		})
		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 pulumi
import pulumi_azure_native as azure_native

multiple_activation_key = azure_native.windowsesu.MultipleActivationKey("multipleActivationKey",
    agreement_number="1a2b45ag",
    installed_server_number=100,
    is_eligible=True,
    location="East US",
    multiple_activation_key_name="server08-key-2019",
    os_type="WindowsServer2008",
    resource_group_name="testgr1",
    support_type="SupplementalServicing")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const multipleActivationKey = new azure_native.windowsesu.MultipleActivationKey("multipleActivationKey", {
    agreementNumber: "1a2b45ag",
    installedServerNumber: 100,
    isEligible: true,
    location: "East US",
    multipleActivationKeyName: "server08-key-2019",
    osType: "WindowsServer2008",
    resourceGroupName: "testgr1",
    supportType: "SupplementalServicing",
});
resources:
  multipleActivationKey:
    type: azure-native:windowsesu:MultipleActivationKey
    properties:
      agreementNumber: 1a2b45ag
      installedServerNumber: 100
      isEligible: true
      location: East US
      multipleActivationKeyName: server08-key-2019
      osType: WindowsServer2008
      resourceGroupName: testgr1
      supportType: SupplementalServicing

Create MultipleActivationKey Resource

new MultipleActivationKey(name: string, args: MultipleActivationKeyArgs, opts?: CustomResourceOptions);
@overload
def MultipleActivationKey(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          agreement_number: Optional[str] = None,
                          installed_server_number: Optional[int] = None,
                          is_eligible: Optional[bool] = None,
                          location: Optional[str] = None,
                          multiple_activation_key_name: Optional[str] = None,
                          os_type: Optional[Union[str, OsType]] = None,
                          resource_group_name: Optional[str] = None,
                          support_type: Optional[Union[str, SupportType]] = None,
                          tags: Optional[Mapping[str, str]] = None)
@overload
def MultipleActivationKey(resource_name: str,
                          args: MultipleActivationKeyArgs,
                          opts: Optional[ResourceOptions] = None)
func NewMultipleActivationKey(ctx *Context, name string, args MultipleActivationKeyArgs, opts ...ResourceOption) (*MultipleActivationKey, error)
public MultipleActivationKey(string name, MultipleActivationKeyArgs args, CustomResourceOptions? opts = null)
public MultipleActivationKey(String name, MultipleActivationKeyArgs args)
public MultipleActivationKey(String name, MultipleActivationKeyArgs args, CustomResourceOptions options)
type: azure-native:windowsesu:MultipleActivationKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args MultipleActivationKeyArgs
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 MultipleActivationKeyArgs
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 MultipleActivationKeyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MultipleActivationKeyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args MultipleActivationKeyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

MultipleActivationKey Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The MultipleActivationKey resource accepts the following input properties:

ResourceGroupName string

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

AgreementNumber string

Agreement number under which the key is requested.

InstalledServerNumber int

Number of activations/servers using the MAK key.

IsEligible bool

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.

Location string

The geo-location where the resource lives

MultipleActivationKeyName string

The name of the MAK key.

OsType string | Pulumi.AzureNative.WindowsESU.OsType

Type of OS for which the key is requested.

SupportType string | Pulumi.AzureNative.WindowsESU.SupportType

Type of support

Tags Dictionary<string, string>

Resource tags.

ResourceGroupName string

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

AgreementNumber string

Agreement number under which the key is requested.

InstalledServerNumber int

Number of activations/servers using the MAK key.

IsEligible bool

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.

Location string

The geo-location where the resource lives

MultipleActivationKeyName string

The name of the MAK key.

OsType string | OsType

Type of OS for which the key is requested.

SupportType string | SupportType

Type of support

Tags map[string]string

Resource tags.

resourceGroupName String

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

agreementNumber String

Agreement number under which the key is requested.

installedServerNumber Integer

Number of activations/servers using the MAK key.

isEligible Boolean

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.

location String

The geo-location where the resource lives

multipleActivationKeyName String

The name of the MAK key.

osType String | OsType

Type of OS for which the key is requested.

supportType String | SupportType

Type of support

tags Map<String,String>

Resource tags.

resourceGroupName string

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

agreementNumber string

Agreement number under which the key is requested.

installedServerNumber number

Number of activations/servers using the MAK key.

isEligible boolean

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.

location string

The geo-location where the resource lives

multipleActivationKeyName string

The name of the MAK key.

osType string | OsType

Type of OS for which the key is requested.

supportType string | SupportType

Type of support

tags {[key: string]: string}

Resource tags.

resource_group_name str

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

agreement_number str

Agreement number under which the key is requested.

installed_server_number int

Number of activations/servers using the MAK key.

is_eligible bool

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.

location str

The geo-location where the resource lives

multiple_activation_key_name str

The name of the MAK key.

os_type str | OsType

Type of OS for which the key is requested.

support_type str | SupportType

Type of support

tags Mapping[str, str]

Resource tags.

resourceGroupName String

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

agreementNumber String

Agreement number under which the key is requested.

installedServerNumber Number

Number of activations/servers using the MAK key.

isEligible Boolean

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.

location String

The geo-location where the resource lives

multipleActivationKeyName String

The name of the MAK key.

osType String | "Windows7" | "WindowsServer2008" | "WindowsServer2008R2"

Type of OS for which the key is requested.

supportType String | "SupplementalServicing" | "PremiumAssurance"

Type of support

tags Map<String>

Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the MultipleActivationKey resource produces the following output properties:

ExpirationDate string

End of support of security updates activated by the MAK key.

Id string

The provider-assigned unique ID for this managed resource.

MultipleActivationKeyValue string

MAK 5x5 key.

Name string

The name of the resource

ProvisioningState string
Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

ExpirationDate string

End of support of security updates activated by the MAK key.

Id string

The provider-assigned unique ID for this managed resource.

MultipleActivationKey string

MAK 5x5 key.

Name string

The name of the resource

ProvisioningState string
Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

expirationDate String

End of support of security updates activated by the MAK key.

id String

The provider-assigned unique ID for this managed resource.

multipleActivationKey String

MAK 5x5 key.

name String

The name of the resource

provisioningState String
type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

expirationDate string

End of support of security updates activated by the MAK key.

id string

The provider-assigned unique ID for this managed resource.

multipleActivationKey string

MAK 5x5 key.

name string

The name of the resource

provisioningState string
type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

expiration_date str

End of support of security updates activated by the MAK key.

id str

The provider-assigned unique ID for this managed resource.

multiple_activation_key str

MAK 5x5 key.

name str

The name of the resource

provisioning_state str
type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

expirationDate String

End of support of security updates activated by the MAK key.

id String

The provider-assigned unique ID for this managed resource.

multipleActivationKey String

MAK 5x5 key.

name String

The name of the resource

provisioningState String
type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

OsType

Windows7
Windows7
WindowsServer2008
WindowsServer2008
WindowsServer2008R2
WindowsServer2008R2
OsTypeWindows7
Windows7
OsTypeWindowsServer2008
WindowsServer2008
OsTypeWindowsServer2008R2
WindowsServer2008R2
Windows7
Windows7
WindowsServer2008
WindowsServer2008
WindowsServer2008R2
WindowsServer2008R2
Windows7
Windows7
WindowsServer2008
WindowsServer2008
WindowsServer2008R2
WindowsServer2008R2
WINDOWS7
Windows7
WINDOWS_SERVER2008
WindowsServer2008
WINDOWS_SERVER2008_R2
WindowsServer2008R2
"Windows7"
Windows7
"WindowsServer2008"
WindowsServer2008
"WindowsServer2008R2"
WindowsServer2008R2

SupportType

SupplementalServicing
SupplementalServicing
PremiumAssurance
PremiumAssurance
SupportTypeSupplementalServicing
SupplementalServicing
SupportTypePremiumAssurance
PremiumAssurance
SupplementalServicing
SupplementalServicing
PremiumAssurance
PremiumAssurance
SupplementalServicing
SupplementalServicing
PremiumAssurance
PremiumAssurance
SUPPLEMENTAL_SERVICING
SupplementalServicing
PREMIUM_ASSURANCE
PremiumAssurance
"SupplementalServicing"
SupplementalServicing
"PremiumAssurance"
PremiumAssurance

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/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testgr1/providers/Microsoft.WindowsESU/multipleActivationKeys/server08-key-2019 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0