pspulumiyaml.azurenative.resources.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionResourcesGetResourceGroup { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to get. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getResourceGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetDeploymentAtManagementGroupScope { param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='The management group ID.)')] [string] $groupId ) process { $arguments = @{} $arguments["deploymentName"] = $deploymentName $arguments["groupId"] = $groupId $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getDeploymentAtManagementGroupScope -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetDeploymentAtScope { param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='The resource scope.)')] [string] $scope ) process { $arguments = @{} $arguments["deploymentName"] = $deploymentName $arguments["scope"] = $scope $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getDeploymentAtScope -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetTagAtScope { param ( [parameter(mandatory=$False,HelpMessage='The resource scope.)')] [string] $scope ) process { $arguments = @{} $arguments["scope"] = $scope $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getTagAtScope -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetResource { param ( [parameter(mandatory=$False,HelpMessage='The parent resource identity.)')] [string] $parentResourcePath, [parameter(mandatory=$False,HelpMessage='The name of the resource group containing the resource to get. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The namespace of the resource provider.)')] [string] $resourceProviderNamespace, [parameter(mandatory=$False,HelpMessage='The resource type of the resource.)')] [string] $resourceType, [parameter(mandatory=$False,HelpMessage='The name of the resource to get.)')] [string] $resourceName ) process { $arguments = @{} $arguments["parentResourcePath"] = $parentResourcePath $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $arguments["resourceProviderNamespace"] = $resourceProviderNamespace $arguments["resourceType"] = $resourceType $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getResource -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetTemplateSpec { param ( [parameter(mandatory=$False,HelpMessage='Name of the Template Spec.)')] [string] $templateSpecName, [parameter(mandatory=$False,HelpMessage='Allows for expansion of additional Template Spec details in the response. Optional.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["templateSpecName"] = $templateSpecName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getTemplateSpec -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetAzurePowerShellScript { param ( [parameter(mandatory=$False,HelpMessage='Name of the deployment script.)')] [string] $scriptName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["scriptName"] = $scriptName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getAzurePowerShellScript -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetTemplateSpecVersion { param ( [parameter(mandatory=$False,HelpMessage='The version of the Template Spec.)')] [string] $templateSpecVersion, [parameter(mandatory=$False,HelpMessage='Name of the Template Spec.)')] [string] $templateSpecName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["templateSpecName"] = $templateSpecName $arguments["templateSpecVersion"] = $templateSpecVersion $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getTemplateSpecVersion -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetAzureCliScript { param ( [parameter(mandatory=$False,HelpMessage='Name of the deployment script.)')] [string] $scriptName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["scriptName"] = $scriptName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getAzureCliScript -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetDeploymentAtSubscriptionScope { param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName ) process { $arguments = @{} $arguments["deploymentName"] = $deploymentName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getDeploymentAtSubscriptionScope -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetDeployment { param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["deploymentName"] = $deploymentName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getDeployment -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetDeploymentScript { param ( [parameter(mandatory=$False,HelpMessage='Name of the deployment script.)')] [string] $scriptName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["scriptName"] = $scriptName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getDeploymentScript -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionResourcesGetDeploymentAtTenantScope { param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName ) process { $arguments = @{} $arguments["deploymentName"] = $deploymentName $functionObject = Invoke-PulumiFunction -Name azure-native:resources:getDeploymentAtTenantScope -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeResourcesTemplateSpec { [Alias('azure_native_resources_templatespec')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Template Spec description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Template Spec display name.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Name of the Template Spec.)')] [string] $templateSpecName, [parameter(mandatory=$False,HelpMessage='The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.)')] $metadata, [parameter(mandatory=$False,HelpMessage='The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations.)')] [string] $location, [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:resources:TemplateSpec") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'templateSpecName') { $resource.properties["templateSpecName"] = $templateSpecName } if($PSBoundParameters.Keys -icontains 'metadata') { $resource.properties["metadata"] = $metadata } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class Sku { [string] $name [string] $model [string] $size [string] $tier [string] $family [int] $capacity } function New-AzureNativeTypeResourcesSku { param ( [parameter(mandatory=$False,HelpMessage='The SKU name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The SKU model.)')] [string] $model, [parameter(mandatory=$False,HelpMessage='The SKU size.)')] [string] $size, [parameter(mandatory=$False,HelpMessage='The SKU tier.)')] [string] $tier, [parameter(mandatory=$False,HelpMessage='The SKU family.)')] [string] $family, [parameter(mandatory=$False,HelpMessage='The SKU capacity.)')] [int] $capacity ) process { return $([Sku]$PSBoundParameters) } } class Identity { [ValidateSet('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [object] $type [ValidateSet('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [object] $userAssignedIdentities } function New-AzureNativeTypeResourcesIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.)')] [object] $userAssignedIdentities ) process { return $([Identity]$PSBoundParameters) } } class Plan { [string] $promotionCode [string] $name [string] $product [string] $version [string] $publisher } function New-AzureNativeTypeResourcesPlan { param ( [parameter(mandatory=$False,HelpMessage='The promotion code.)')] [string] $promotionCode, [parameter(mandatory=$False,HelpMessage='The plan ID.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The offer ID.)')] [string] $product, [parameter(mandatory=$False,HelpMessage='The plan''s version.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='The publisher ID.)')] [string] $publisher ) process { return $([Plan]$PSBoundParameters) } } function New-AzureNativeResourcesResource { [Alias('azure_native_resources_resource')] param ( [parameter(mandatory=$False,HelpMessage='The SKU of the resource.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='The parent resource identity.)')] [string] $parentResourcePath, [parameter(mandatory=$False,HelpMessage='The resource properties.)')] $properties, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The resource type of the resource to create.)')] [string] $resourceType, [parameter(mandatory=$False,HelpMessage='The name of the resource group for the resource. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The identity of the resource.)')] [Identity] $identity, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the resource to create.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The namespace of the resource provider.)')] [string] $resourceProviderNamespace, [parameter(mandatory=$False,HelpMessage='The kind of the resource.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='ID of the resource that manages this resource.)')] [string] $managedBy, [parameter(mandatory=$False,HelpMessage='The plan of the resource.)')] [Plan] $plan, [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:resources:Resource") $resource.properties["parentResourcePath"] = $parentResourcePath $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceProviderNamespace"] = $resourceProviderNamespace $resource.properties["resourceType"] = $resourceType if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'managedBy') { $resource.properties["managedBy"] = $managedBy } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } $global:pulumiresources += $resource return $resource } } class StorageAccountConfiguration { [string] $storageAccountKey [string] $storageAccountName } function New-AzureNativeTypeResourcesStorageAccountConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The storage account access key.)')] [string] $storageAccountKey, [parameter(mandatory=$False,HelpMessage='The storage account name.)')] [string] $storageAccountName ) process { return $([StorageAccountConfiguration]$PSBoundParameters) } } class ManagedServiceIdentity { [ValidateSet('UserAssigned')] [string] $type [ValidateSet('UserAssigned')] [object] $userAssignedIdentities } function New-AzureNativeTypeResourcesManagedServiceIdentity { param ( [parameter(mandatory=$False,HelpMessage='Type of the managed identity.)')] [string] [ValidateSet('UserAssigned')] $type, [parameter(mandatory=$False,HelpMessage='The list of user-assigned managed identities associated with the resource. Key is the Azure resource Id of the managed identity.)')] [object] $userAssignedIdentities ) process { return $([ManagedServiceIdentity]$PSBoundParameters) } } class ContainerConfiguration { [string] $containerGroupName } function New-AzureNativeTypeResourcesContainerConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Container group name, if not specified then the name will get auto-generated. Not specifying a ''containerGroupName'' indicates the system to generate a unique name which might end up flagging an Azure Policy as non-compliant. Use ''containerGroupName'' when you have an Azure Policy that expects a specific naming convention or when you want to fully control the name. ''containerGroupName'' property must be between 1 and 63 characters long, must contain only lowercase letters, numbers, and dashes and it cannot start or end with a dash and consecutive dashes are not allowed. To specify a ''containerGroupName'', add the following object to properties: { "containerSettings": { "containerGroupName": "contoso-container" } }. If you do not want to specify a ''containerGroupName'' then do not add ''containerSettings'' property.)')] [string] $containerGroupName ) process { return $([ContainerConfiguration]$PSBoundParameters) } } function New-AzureNativeResourcesAzureCliScript { [Alias('azure_native_resources_azurecliscript')] param ( [parameter(mandatory=$False,HelpMessage='The clean up preference when the script execution gets in a terminal state. Default setting is ''Always''.)')] [string] [ValidateSet('Always', 'OnSuccess', 'OnExpiration')] $cleanupPreference, [parameter(mandatory=$False,HelpMessage='Supporting files for the external script.)')] [string[]] $supportingScriptUris, [parameter(mandatory=$False,HelpMessage='Azure CLI module version to be used.)')] [string] $azCliVersion, [parameter(mandatory=$False,HelpMessage='Storage Account settings.)')] [StorageAccountConfiguration] $storageAccountSettings, [parameter(mandatory=$False,HelpMessage='The location of the ACI and the storage account for the deployment script.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Uri for the script. This is the entry point for the external script.)')] [string] $primaryScriptUri, [parameter(mandatory=$False,HelpMessage='The environment variables to pass over to the script.)')] $environmentVariables, [parameter(mandatory=$False,HelpMessage='Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.)')] [ManagedServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day).)')] [string] $retentionInterval, [parameter(mandatory=$False,HelpMessage='Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID.)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='Name of the deployment script.)')] [string] $scriptName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Type of the script. Expected value is ''AzureCLI''.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='Container settings.)')] [ContainerConfiguration] $containerSettings, [parameter(mandatory=$False,HelpMessage='Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D)')] [string] $timeout, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Script body.)')] [string] $scriptContent, [parameter(mandatory=$False,HelpMessage='Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location ''West US 2'' )')] [string] $arguments, [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:resources:AzureCliScript") $resource.properties["azCliVersion"] = $azCliVersion $resource.properties["kind"] = $kind $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["retentionInterval"] = $retentionInterval if($PSBoundParameters.Keys -icontains 'cleanupPreference') { $resource.properties["cleanupPreference"] = $cleanupPreference } if($PSBoundParameters.Keys -icontains 'supportingScriptUris') { $resource.properties["supportingScriptUris"] = $supportingScriptUris } if($PSBoundParameters.Keys -icontains 'storageAccountSettings') { $resource.properties["storageAccountSettings"] = $storageAccountSettings } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'primaryScriptUri') { $resource.properties["primaryScriptUri"] = $primaryScriptUri } if($PSBoundParameters.Keys -icontains 'environmentVariables') { $resource.properties["environmentVariables"] = $environmentVariables } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } if($PSBoundParameters.Keys -icontains 'scriptName') { $resource.properties["scriptName"] = $scriptName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'containerSettings') { $resource.properties["containerSettings"] = $containerSettings } if($PSBoundParameters.Keys -icontains 'timeout') { $resource.properties["timeout"] = $timeout } if($PSBoundParameters.Keys -icontains 'scriptContent') { $resource.properties["scriptContent"] = $scriptContent } if($PSBoundParameters.Keys -icontains 'arguments') { $resource.properties["arguments"] = $arguments } $global:pulumiresources += $resource return $resource } } class Tags { [object] $tags } function New-AzureNativeTypeResourcesTags { param ( [parameter(mandatory=$False,HelpMessage=')')] [hashtable] $tags ) process { return $([Tags]$PSBoundParameters) } } function New-AzureNativeResourcesTagAtScope { [Alias('azure_native_resources_tagatscope')] param ( [parameter(mandatory=$False,HelpMessage='The set of tags.)')] [Tags] $properties, [parameter(mandatory=$False,HelpMessage='The resource scope.)')] [string] $scope, [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:resources:TagAtScope") $resource.properties["properties"] = $properties $resource.properties["scope"] = $scope $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesTemplateSpecVersion { [Alias('azure_native_resources_templatespecversion')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The version of the Template Spec.)')] [string] $templateSpecVersion, [parameter(mandatory=$False,HelpMessage='The Azure Resource Manager template UI definition content.)')] $uiFormDefinition, [parameter(mandatory=$False,HelpMessage='The main Azure Resource Manager template content.)')] $mainTemplate, [parameter(mandatory=$False,HelpMessage='The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.)')] $metadata, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Template Spec version description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='An array of linked template artifacts.)')] $linkedTemplates, [parameter(mandatory=$False,HelpMessage='Name of the Template Spec.)')] [string] $templateSpecName, [parameter(mandatory=$False,HelpMessage='The location of the Template Spec Version. It must match the location of the parent Template Spec.)')] [string] $location, [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:resources:TemplateSpecVersion") $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["templateSpecName"] = $templateSpecName if($PSBoundParameters.Keys -icontains 'templateSpecVersion') { $resource.properties["templateSpecVersion"] = $templateSpecVersion } if($PSBoundParameters.Keys -icontains 'uiFormDefinition') { $resource.properties["uiFormDefinition"] = $uiFormDefinition } if($PSBoundParameters.Keys -icontains 'mainTemplate') { $resource.properties["mainTemplate"] = $mainTemplate } if($PSBoundParameters.Keys -icontains 'metadata') { $resource.properties["metadata"] = $metadata } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'linkedTemplates') { $resource.properties["linkedTemplates"] = $linkedTemplates } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesDeploymentScript { [Alias('azure_native_resources_deploymentscript')] param ( [parameter(mandatory=$False,HelpMessage='Name of the deployment script.)')] [string] $scriptName, [parameter(mandatory=$False,HelpMessage='Type of the script.)')] [string] [ValidateSet('AzurePowerShell', 'AzureCLI')] $kind, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.)')] [ManagedServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='The location of the ACI and the storage account for the deployment script.)')] [string] $location, [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:resources:DeploymentScript") $resource.properties["kind"] = $kind $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'scriptName') { $resource.properties["scriptName"] = $scriptName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class ExpressionEvaluationOptions { [ValidateSet('NotSpecified', 'Outer', 'Inner')] [string] $scope } function New-AzureNativeTypeResourcesExpressionEvaluationOptions { param ( [parameter(mandatory=$False,HelpMessage='The scope to be used for evaluation of parameters, variables and functions in a nested template.)')] [string] [ValidateSet('NotSpecified', 'Outer', 'Inner')] $scope ) process { return $([ExpressionEvaluationOptions]$PSBoundParameters) } } class OnErrorDeployment { [string] $deploymentName [ValidateSet('LastSuccessful', 'SpecificDeployment')] [object] $type } function New-AzureNativeTypeResourcesOnErrorDeployment { param ( [parameter(mandatory=$False,HelpMessage='The deployment to be used on error case.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment.)')] $type ) process { return $([OnErrorDeployment]$PSBoundParameters) } } class ParametersLink { [string] $contentVersion [string] $uri } function New-AzureNativeTypeResourcesParametersLink { param ( [parameter(mandatory=$False,HelpMessage='If included, must match the ContentVersion in the template.)')] [string] $contentVersion, [parameter(mandatory=$False,HelpMessage='The URI of the parameters file.)')] [string] $uri ) process { return $([ParametersLink]$PSBoundParameters) } } class DebugSetting { [string] $detailLevel } function New-AzureNativeTypeResourcesDebugSetting { param ( [parameter(mandatory=$False,HelpMessage='Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations.)')] [string] $detailLevel ) process { return $([DebugSetting]$PSBoundParameters) } } class TemplateLink { [string] $relativePath [string] $queryString [string] $id [string] $contentVersion [string] $uri } function New-AzureNativeTypeResourcesTemplateLink { param ( [parameter(mandatory=$False,HelpMessage='The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs)')] [string] $relativePath, [parameter(mandatory=$False,HelpMessage='The query string (for example, a SAS token) to be used with the templateLink URI.)')] [string] $queryString, [parameter(mandatory=$False,HelpMessage='The resource id of a Template Spec. Use either the id or uri property, but not both.)')] [string] $id, [parameter(mandatory=$False,HelpMessage='If included, must match the ContentVersion in the template.)')] [string] $contentVersion, [parameter(mandatory=$False,HelpMessage='The URI of the template to deploy. Use either the uri or id property, but not both.)')] [string] $uri ) process { return $([TemplateLink]$PSBoundParameters) } } class DeploymentProperties { [ExpressionEvaluationOptions] $expressionEvaluationOptions [OnErrorDeployment] $onErrorDeployment [ParametersLink] $parametersLink [object] $template [DebugSetting] $debugSetting [TemplateLink] $templateLink [object] $parameters [ValidateSet('Incremental', 'Complete')] [object] $mode } function New-AzureNativeTypeResourcesDeploymentProperties { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer.)')] [ExpressionEvaluationOptions] $expressionEvaluationOptions, [parameter(mandatory=$False,HelpMessage='The deployment on error behavior.)')] [OnErrorDeployment] $onErrorDeployment, [parameter(mandatory=$False,HelpMessage='The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both.)')] [ParametersLink] $parametersLink, [parameter(mandatory=$False,HelpMessage='The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.)')] $template, [parameter(mandatory=$False,HelpMessage='The debug setting of the deployment.)')] [DebugSetting] $debugSetting, [parameter(mandatory=$False,HelpMessage='The URI of the template. Use either the templateLink property or the template property, but not both.)')] [TemplateLink] $templateLink, [parameter(mandatory=$False,HelpMessage='Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string.)')] $parameters, [parameter(mandatory=$False,HelpMessage='The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources.)')] $mode ) process { return $([DeploymentProperties]$PSBoundParameters) } } function New-AzureNativeResourcesDeploymentAtTenantScope { [Alias('azure_native_resources_deploymentattenantscope')] param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='Deployment tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The deployment properties.)')] [DeploymentProperties] $properties, [parameter(mandatory=$False,HelpMessage='The location to store the deployment data.)')] [string] $location, [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:resources:DeploymentAtTenantScope") $resource.properties["properties"] = $properties if($PSBoundParameters.Keys -icontains 'deploymentName') { $resource.properties["deploymentName"] = $deploymentName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesResourceGroup { [Alias('azure_native_resources_resourcegroup')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The ID of the resource that manages this resource group.)')] [string] $managedBy, [parameter(mandatory=$False,HelpMessage='The tags attached to the resource group.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations.)')] [string] $location, [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:resources:ResourceGroup") if($PSBoundParameters.Keys -icontains 'resourceGroupName') { $resource.properties["resourceGroupName"] = $resourceGroupName } if($PSBoundParameters.Keys -icontains 'managedBy') { $resource.properties["managedBy"] = $managedBy } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesDeploymentAtScope { [Alias('azure_native_resources_deploymentatscope')] param ( [parameter(mandatory=$False,HelpMessage='Deployment tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='The resource scope.)')] [string] $scope, [parameter(mandatory=$False,HelpMessage='The deployment properties.)')] [DeploymentProperties] $properties, [parameter(mandatory=$False,HelpMessage='The location to store the deployment data.)')] [string] $location, [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:resources:DeploymentAtScope") $resource.properties["properties"] = $properties $resource.properties["scope"] = $scope if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'deploymentName') { $resource.properties["deploymentName"] = $deploymentName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesAzurePowerShellScript { [Alias('azure_native_resources_azurepowershellscript')] param ( [parameter(mandatory=$False,HelpMessage='The clean up preference when the script execution gets in a terminal state. Default setting is ''Always''.)')] [string] [ValidateSet('Always', 'OnSuccess', 'OnExpiration')] $cleanupPreference, [parameter(mandatory=$False,HelpMessage='Supporting files for the external script.)')] [string[]] $supportingScriptUris, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Storage Account settings.)')] [StorageAccountConfiguration] $storageAccountSettings, [parameter(mandatory=$False,HelpMessage='The location of the ACI and the storage account for the deployment script.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Uri for the script. This is the entry point for the external script.)')] [string] $primaryScriptUri, [parameter(mandatory=$False,HelpMessage='The environment variables to pass over to the script.)')] $environmentVariables, [parameter(mandatory=$False,HelpMessage='Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.)')] [ManagedServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Interval for which the service retains the script resource after it reaches a terminal state. Resource will be deleted when this duration expires. Duration is based on ISO 8601 pattern (for example P1D means one day).)')] [string] $retentionInterval, [parameter(mandatory=$False,HelpMessage='Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID.)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='Maximum allowed script execution time specified in ISO 8601 format. Default value is P1D)')] [string] $timeout, [parameter(mandatory=$False,HelpMessage='Name of the deployment script.)')] [string] $scriptName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Type of the script. Expected value is ''AzurePowerShell''.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='Container settings.)')] [ContainerConfiguration] $containerSettings, [parameter(mandatory=$False,HelpMessage='Azure PowerShell module version to be used.)')] [string] $azPowerShellVersion, [parameter(mandatory=$False,HelpMessage='Script body.)')] [string] $scriptContent, [parameter(mandatory=$False,HelpMessage='Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location ''West US 2'' )')] [string] $arguments, [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:resources:AzurePowerShellScript") $resource.properties["azPowerShellVersion"] = $azPowerShellVersion $resource.properties["kind"] = $kind $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["retentionInterval"] = $retentionInterval if($PSBoundParameters.Keys -icontains 'cleanupPreference') { $resource.properties["cleanupPreference"] = $cleanupPreference } if($PSBoundParameters.Keys -icontains 'supportingScriptUris') { $resource.properties["supportingScriptUris"] = $supportingScriptUris } if($PSBoundParameters.Keys -icontains 'storageAccountSettings') { $resource.properties["storageAccountSettings"] = $storageAccountSettings } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'primaryScriptUri') { $resource.properties["primaryScriptUri"] = $primaryScriptUri } if($PSBoundParameters.Keys -icontains 'environmentVariables') { $resource.properties["environmentVariables"] = $environmentVariables } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } if($PSBoundParameters.Keys -icontains 'timeout') { $resource.properties["timeout"] = $timeout } if($PSBoundParameters.Keys -icontains 'scriptName') { $resource.properties["scriptName"] = $scriptName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'containerSettings') { $resource.properties["containerSettings"] = $containerSettings } if($PSBoundParameters.Keys -icontains 'scriptContent') { $resource.properties["scriptContent"] = $scriptContent } if($PSBoundParameters.Keys -icontains 'arguments') { $resource.properties["arguments"] = $arguments } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesDeployment { [Alias('azure_native_resources_deployment')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='Deployment tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The deployment properties.)')] [DeploymentProperties] $properties, [parameter(mandatory=$False,HelpMessage='The location to store the deployment data.)')] [string] $location, [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:resources:Deployment") $resource.properties["properties"] = $properties $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'deploymentName') { $resource.properties["deploymentName"] = $deploymentName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesDeploymentAtManagementGroupScope { [Alias('azure_native_resources_deploymentatmanagementgroupscope')] param ( [parameter(mandatory=$False,HelpMessage='The management group ID.)')] [string] $groupId, [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='Deployment tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The deployment properties.)')] [DeploymentProperties] $properties, [parameter(mandatory=$False,HelpMessage='The location to store the deployment data.)')] [string] $location, [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:resources:DeploymentAtManagementGroupScope") $resource.properties["groupId"] = $groupId $resource.properties["properties"] = $properties if($PSBoundParameters.Keys -icontains 'deploymentName') { $resource.properties["deploymentName"] = $deploymentName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeResourcesDeploymentAtSubscriptionScope { [Alias('azure_native_resources_deploymentatsubscriptionscope')] param ( [parameter(mandatory=$False,HelpMessage='The name of the deployment.)')] [string] $deploymentName, [parameter(mandatory=$False,HelpMessage='Deployment tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The deployment properties.)')] [DeploymentProperties] $properties, [parameter(mandatory=$False,HelpMessage='The location to store the deployment data.)')] [string] $location, [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:resources:DeploymentAtSubscriptionScope") $resource.properties["properties"] = $properties if($PSBoundParameters.Keys -icontains 'deploymentName') { $resource.properties["deploymentName"] = $deploymentName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } |