1. Packages
  2. Azure Native
  3. API Docs
  4. windowsesu
  5. MultipleActivationKey
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.windowsesu.MultipleActivationKey

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    MAK key details. Azure REST API version: 2019-09-16-preview. Prior API version in Azure Native 1.x: 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/v2"
    	"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 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=azure_native.windowsesu.OsType.WINDOWS_SERVER2008,
        resource_group_name="testgr1",
        support_type=azure_native.windowsesu.SupportType.SUPPLEMENTAL_SERVICING)
    
    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: azure_native.windowsesu.OsType.WindowsServer2008,
        resourceGroupName: "testgr1",
        supportType: azure_native.windowsesu.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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MultipleActivationKey(name: string, args: MultipleActivationKeyArgs, opts?: CustomResourceOptions);
    @overload
    def MultipleActivationKey(resource_name: str,
                              args: MultipleActivationKeyArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def MultipleActivationKey(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              resource_group_name: Optional[str] = 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,
                              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)
    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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var multipleActivationKeyResource = new AzureNative.WindowsESU.MultipleActivationKey("multipleActivationKeyResource", new()
    {
        ResourceGroupName = "string",
        AgreementNumber = "string",
        InstalledServerNumber = 0,
        IsEligible = false,
        Location = "string",
        MultipleActivationKeyName = "string",
        OsType = "string",
        SupportType = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := windowsesu.NewMultipleActivationKey(ctx, "multipleActivationKeyResource", &windowsesu.MultipleActivationKeyArgs{
    ResourceGroupName: pulumi.String("string"),
    AgreementNumber: pulumi.String("string"),
    InstalledServerNumber: pulumi.Int(0),
    IsEligible: pulumi.Bool(false),
    Location: pulumi.String("string"),
    MultipleActivationKeyName: pulumi.String("string"),
    OsType: pulumi.String("string"),
    SupportType: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var multipleActivationKeyResource = new MultipleActivationKey("multipleActivationKeyResource", MultipleActivationKeyArgs.builder()
        .resourceGroupName("string")
        .agreementNumber("string")
        .installedServerNumber(0)
        .isEligible(false)
        .location("string")
        .multipleActivationKeyName("string")
        .osType("string")
        .supportType("string")
        .tags(Map.of("string", "string"))
        .build());
    
    multiple_activation_key_resource = azure_native.windowsesu.MultipleActivationKey("multipleActivationKeyResource",
        resource_group_name="string",
        agreement_number="string",
        installed_server_number=0,
        is_eligible=False,
        location="string",
        multiple_activation_key_name="string",
        os_type="string",
        support_type="string",
        tags={
            "string": "string",
        })
    
    const multipleActivationKeyResource = new azure_native.windowsesu.MultipleActivationKey("multipleActivationKeyResource", {
        resourceGroupName: "string",
        agreementNumber: "string",
        installedServerNumber: 0,
        isEligible: false,
        location: "string",
        multipleActivationKeyName: "string",
        osType: "string",
        supportType: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:windowsesu:MultipleActivationKey
    properties:
        agreementNumber: string
        installedServerNumber: 0
        isEligible: false
        location: string
        multipleActivationKeyName: string
        osType: string
        resourceGroupName: string
        supportType: string
        tags:
            string: string
    

    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, OsTypeArgs

    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, SupportTypeArgs

    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsESU/multipleActivationKeys/{multipleActivationKeyName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi