Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

MultipleActivationKey

MAK key details.

Example Usage

CreateMultipleActivationKey

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var multipleActivationKey = new AzureNextGen.WindowsESU.V20190916Preview.MultipleActivationKey("multipleActivationKey", new AzureNextGen.WindowsESU.V20190916Preview.MultipleActivationKeyArgs
        {
            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-nextgen/sdk/go/azure/windowsesu/v20190916preview"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

multiple_activation_key = azure_nextgen.windowsesu.v20190916preview.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_nextgen from "@pulumi/azure-nextgen";

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

Create a MultipleActivationKey Resource

new MultipleActivationKey(name: string, args: MultipleActivationKeyArgs, opts?: CustomResourceOptions);
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)
func NewMultipleActivationKey(ctx *Context, name string, args MultipleActivationKeyArgs, opts ...ResourceOption) (*MultipleActivationKey, error)
public MultipleActivationKey(string name, MultipleActivationKeyArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

MultipleActivationKey Resource Properties

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

Inputs

The MultipleActivationKey resource accepts the following input properties:

Location string
The geo-location where the resource lives
MultipleActivationKeyName string
The name of the MAK key.
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.
OsType string | Pulumi.AzureNextGen.WindowsESU.OsType
Type of OS for which the key is requested.
SupportType string | Pulumi.AzureNextGen.WindowsESU.SupportType
Type of support
Tags Dictionary<string, string>
Resource tags.
Location string
The geo-location where the resource lives
MultipleActivationKeyName string
The name of the MAK key.
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.
OsType string | OsType
Type of OS for which the key is requested.
SupportType string | SupportType
Type of support
Tags map[string]string
Resource tags.
location string
The geo-location where the resource lives
multipleActivationKeyName string
The name of the MAK key.
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.
osType string | OsType
Type of OS for which the key is requested.
supportType string | SupportType
Type of support
tags {[key: string]: string}
Resource tags.
location str
The geo-location where the resource lives
multiple_activation_key_name str
The name of the MAK key.
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.
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.

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”
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”

Supporting Types

OsType

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

SupportType

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

Import

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

$ pulumi import azure-nextgen:windowsesu/v20190916preview: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-nextgen
License
Apache-2.0