pspulumiyaml.azurenative.windowsesu.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionWindowsesuGetMultipleActivationKey { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the MAK key.)')] [string] $multipleActivationKeyName ) process { $arguments = @{} $arguments["multipleActivationKeyName"] = $multipleActivationKeyName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:windowsesu:getMultipleActivationKey -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeWindowsesuMultipleActivationKey { [Alias('azure_native_windowsesu_multipleactivationkey')] param ( [parameter(mandatory=$False,HelpMessage='The name of the MAK key.)')] [string] $multipleActivationKeyName, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Type of support)')] [string] [ValidateSet('SupplementalServicing', 'PremiumAssurance')] $supportType, [parameter(mandatory=$False,HelpMessage='Type of OS for which the key is requested.)')] [string] [ValidateSet('Windows7', 'WindowsServer2008', 'WindowsServer2008R2')] $osType, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='<code> true </code> if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; <code> false </code> otherwise.)')] [bool] $isEligible, [parameter(mandatory=$False,HelpMessage='Number of activations/servers using the MAK key.)')] [int] $installedServerNumber, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Agreement number under which the key is requested.)')] [string] $agreementNumber, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:windowsesu:MultipleActivationKey") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'multipleActivationKeyName') { $resource.properties["multipleActivationKeyName"] = $multipleActivationKeyName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'supportType') { $resource.properties["supportType"] = $supportType } if($PSBoundParameters.Keys -icontains 'osType') { $resource.properties["osType"] = $osType } if($PSBoundParameters.Keys -icontains 'isEligible') { $resource.properties["isEligible"] = $isEligible } if($PSBoundParameters.Keys -icontains 'installedServerNumber') { $resource.properties["installedServerNumber"] = $installedServerNumber } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'agreementNumber') { $resource.properties["agreementNumber"] = $agreementNumber } $global:pulumiresources += $resource return $resource } } |