azure-native.windowsesu.MultipleActivationKey
Explore with Pulumi AI
MAK key details. 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 = "WindowsServer2008",
ResourceGroupName = "testgr1",
SupportType = "SupplementalServicing",
});
});
package main
import (
windowsesu "github.com/pulumi/pulumi-azure-native-sdk/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
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: "string",
AgreementNumber: "string",
InstalledServerNumber: 0,
IsEligible: false,
Location: "string",
MultipleActivationKeyName: "string",
OsType: "string",
SupportType: "string",
Tags: map[string]interface{}{
"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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Agreement
Number string - Agreement number under which the key is requested.
- Installed
Server intNumber - 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 string
- The geo-location where the resource lives
- Multiple
Activation stringKey Name - The name of the MAK key.
- Os
Type string | Pulumi.Azure Native. Windows ESU. Os Type - Type of OS for which the key is requested.
- Support
Type string | Pulumi.Azure Native. Windows ESU. Support Type - Type of support
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Agreement
Number string - Agreement number under which the key is requested.
- Installed
Server intNumber - 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 string
- The geo-location where the resource lives
- Multiple
Activation stringKey Name - The name of the MAK key.
- Os
Type string | OsType - Type of OS for which the key is requested.
- Support
Type string | SupportType - Type of support
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- agreement
Number String - Agreement number under which the key is requested.
- installed
Server IntegerNumber - Number of activations/servers using the MAK key.
- is
Eligible 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
- multiple
Activation StringKey Name - The name of the MAK key.
- os
Type String | OsType - Type of OS for which the key is requested.
- support
Type String | SupportType - Type of support
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- agreement
Number string - Agreement number under which the key is requested.
- installed
Server numberNumber - Number of activations/servers using the MAK key.
- is
Eligible 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
- multiple
Activation stringKey Name - The name of the MAK key.
- os
Type string | OsType - Type of OS for which the key is requested.
- support
Type string | SupportType - Type of support
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- agreement_
number str - Agreement number under which the key is requested.
- installed_
server_ intnumber - 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_ strkey_ name - 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
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- agreement
Number String - Agreement number under which the key is requested.
- installed
Server NumberNumber - Number of activations/servers using the MAK key.
- is
Eligible 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
- multiple
Activation StringKey Name - The name of the MAK key.
- os
Type String | "Windows7" | "WindowsServer2008" | "Windows Server2008R2" - Type of OS for which the key is requested.
- support
Type String | "SupplementalServicing" | "Premium Assurance" - Type of support
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the MultipleActivationKey resource produces the following output properties:
- Expiration
Date string - End of support of security updates activated by the MAK key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Multiple
Activation stringKey Value - MAK 5x5 key.
- Name string
- The name of the resource
- Provisioning
State string - Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Expiration
Date string - End of support of security updates activated by the MAK key.
- Id string
- The provider-assigned unique ID for this managed resource.
- Multiple
Activation stringKey - MAK 5x5 key.
- Name string
- The name of the resource
- Provisioning
State string - Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- expiration
Date String - End of support of security updates activated by the MAK key.
- id String
- The provider-assigned unique ID for this managed resource.
- multiple
Activation StringKey - MAK 5x5 key.
- name String
- The name of the resource
- provisioning
State String - type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- expiration
Date string - End of support of security updates activated by the MAK key.
- id string
- The provider-assigned unique ID for this managed resource.
- multiple
Activation stringKey - MAK 5x5 key.
- name string
- The name of the resource
- provisioning
State 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_ strkey - 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"
- expiration
Date String - End of support of security updates activated by the MAK key.
- id String
- The provider-assigned unique ID for this managed resource.
- multiple
Activation StringKey - MAK 5x5 key.
- name String
- The name of the resource
- provisioning
State String - type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
OsType, OsTypeArgs
- Windows7
- Windows7
- Windows
Server2008 - WindowsServer2008
- Windows
Server2008R2 - WindowsServer2008R2
- Os
Type Windows7 - Windows7
- Os
Type Windows Server2008 - WindowsServer2008
- Os
Type Windows Server2008R2 - WindowsServer2008R2
- Windows7
- Windows7
- Windows
Server2008 - WindowsServer2008
- Windows
Server2008R2 - WindowsServer2008R2
- Windows7
- Windows7
- Windows
Server2008 - WindowsServer2008
- Windows
Server2008R2 - WindowsServer2008R2
- WINDOWS7
- Windows7
- WINDOWS_SERVER2008
- WindowsServer2008
- WINDOWS_SERVER2008_R2
- WindowsServer2008R2
- "Windows7"
- Windows7
- "Windows
Server2008" - WindowsServer2008
- "Windows
Server2008R2" - WindowsServer2008R2
SupportType, SupportTypeArgs
- Supplemental
Servicing - SupplementalServicing
- Premium
Assurance - PremiumAssurance
- Support
Type Supplemental Servicing - SupplementalServicing
- Support
Type Premium Assurance - PremiumAssurance
- Supplemental
Servicing - SupplementalServicing
- Premium
Assurance - PremiumAssurance
- Supplemental
Servicing - SupplementalServicing
- Premium
Assurance - PremiumAssurance
- SUPPLEMENTAL_SERVICING
- SupplementalServicing
- PREMIUM_ASSURANCE
- 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-native:windowsesu:MultipleActivationKey server08-key-2019 /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testgr1/providers/Microsoft.WindowsESU/multipleActivationKeys/server08-key-2019
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0