pspulumiyaml.azurenative.batch.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionBatchListBatchAccountKeys { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:batch:listBatchAccountKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBatchGetPool { param ( [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The pool name. This must be unique within the account.)')] [string] $poolName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["poolName"] = $poolName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:batch:getPool -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBatchGetApplicationPackage { param ( [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the application. This must be unique within the account.)')] [string] $applicationName, [parameter(mandatory=$False,HelpMessage='The version of the application.)')] [string] $versionName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["applicationName"] = $applicationName $arguments["resourceGroupName"] = $resourceGroupName $arguments["versionName"] = $versionName $functionObject = Invoke-PulumiFunction -Name azure-native:batch:getApplicationPackage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBatchGetCertificate { param ( [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.)')] [string] $certificateName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["certificateName"] = $certificateName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:batch:getCertificate -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBatchGetApplication { param ( [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the application. This must be unique within the account.)')] [string] $applicationName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["applicationName"] = $applicationName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:batch:getApplication -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBatchGetBatchAccount { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:batch:getBatchAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeBatchCertificate { [Alias('azure_native_batch_certificate')] param ( [parameter(mandatory=$False,HelpMessage='This must match the thumbprint from the name.)')] [string] $thumbprint, [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='This must match the first portion of the certificate name. Currently required to be ''SHA1''.)')] [string] $thumbprintAlgorithm, [parameter(mandatory=$False,HelpMessage='The maximum size is 10KB.)')] [string] $data, [parameter(mandatory=$False,HelpMessage='This must not be specified if the certificate format is Cer.)')] [string] $password, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.)')] $format, [parameter(mandatory=$False,HelpMessage='The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.)')] [string] $certificateName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:batch:Certificate") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["data"] = $data $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'thumbprint') { $resource.properties["thumbprint"] = $thumbprint } if($PSBoundParameters.Keys -icontains 'thumbprintAlgorithm') { $resource.properties["thumbprintAlgorithm"] = $thumbprintAlgorithm } if($PSBoundParameters.Keys -icontains 'password') { $resource.properties["password"] = $password } if($PSBoundParameters.Keys -icontains 'format') { $resource.properties["format"] = $format } if($PSBoundParameters.Keys -icontains 'certificateName') { $resource.properties["certificateName"] = $certificateName } $global:pulumiresources += $resource return $resource } } class AutoUserSpecification { [ArgumentCompletions('NonAdmin', 'Admin')] [object] $elevationLevel [ArgumentCompletions('Task', 'Pool')] [object] $scope } function New-AzureNativeTypeBatchAutoUserSpecification { param ( [parameter(mandatory=$False,HelpMessage='The default value is nonAdmin.)')] $elevationLevel, [parameter(mandatory=$False,HelpMessage='The default value is Pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by start tasks.)')] $scope ) process { return $([AutoUserSpecification]$PSBoundParameters) } } class UserIdentity { [string] $userName [AutoUserSpecification] $autoUser } function New-AzureNativeTypeBatchUserIdentity { param ( [parameter(mandatory=$False,HelpMessage='The userName and autoUser properties are mutually exclusive; you must specify one but not both.)')] [string] $userName, [parameter(mandatory=$False,HelpMessage='The userName and autoUser properties are mutually exclusive; you must specify one but not both.)')] [AutoUserSpecification] $autoUser ) process { return $([UserIdentity]$PSBoundParameters) } } class ContainerRegistry { [string] $registryServer [string] $password [string] $userName } function New-AzureNativeTypeBatchContainerRegistry { param ( [parameter(mandatory=$False,HelpMessage='If omitted, the default is "docker.io".)')] [string] $registryServer, [parameter(mandatory=$False,HelpMessage=')')] [string] $password, [parameter(mandatory=$False,HelpMessage=')')] [string] $userName ) process { return $([ContainerRegistry]$PSBoundParameters) } } class TaskContainerSettings { [string] $imageName [ArgumentCompletions('TaskWorkingDirectory', 'ContainerImageDefault')] [object] $workingDirectory [ContainerRegistry] $registry [string] $containerRunOptions } function New-AzureNativeTypeBatchTaskContainerSettings { param ( [parameter(mandatory=$False,HelpMessage='This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.)')] [string] $imageName, [parameter(mandatory=$False,HelpMessage=')')] $workingDirectory, [parameter(mandatory=$False,HelpMessage='This setting can be omitted if was already provided at pool creation.)')] [ContainerRegistry] $registry, [parameter(mandatory=$False,HelpMessage='These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.)')] [string] $containerRunOptions ) process { return $([TaskContainerSettings]$PSBoundParameters) } } class EnvironmentSetting { [string] $name [string] $value } function New-AzureNativeTypeBatchEnvironmentSetting { param ( [parameter(mandatory=$False,HelpMessage=')')] [string] $name, [parameter(mandatory=$False,HelpMessage=')')] [string] $value ) process { return $([EnvironmentSetting]$PSBoundParameters) } } class ResourceFile { [string] $blobPrefix [string] $storageContainerUrl [string] $filePath [string] $httpUrl [string] $autoStorageContainerName [string] $fileMode } function New-AzureNativeTypeBatchResourceFile { param ( [parameter(mandatory=$False,HelpMessage='The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded.)')] [string] $blobPrefix, [parameter(mandatory=$False,HelpMessage='The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the blob, or set the ACL for the blob or its container to allow public access.)')] [string] $storageContainerUrl, [parameter(mandatory=$False,HelpMessage='If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task''s working directory (for example by using ''..'').)')] [string] $filePath, [parameter(mandatory=$False,HelpMessage='The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL is Azure Blob Storage, it must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access.)')] [string] $httpUrl, [parameter(mandatory=$False,HelpMessage='The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.)')] [string] $autoStorageContainerName, [parameter(mandatory=$False,HelpMessage='This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.)')] [string] $fileMode ) process { return $([ResourceFile]$PSBoundParameters) } } class StartTask { [UserIdentity] $userIdentity [string] $commandLine [bool] $waitForSuccess [TaskContainerSettings] $containerSettings [EnvironmentSetting[]] $environmentSettings [int] $maxTaskRetryCount [ResourceFile[]] $resourceFiles } function New-AzureNativeTypeBatchStartTask { param ( [parameter(mandatory=$False,HelpMessage='If omitted, the task runs as a non-administrative user unique to the task.)')] [UserIdentity] $userIdentity, [parameter(mandatory=$False,HelpMessage='The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. Required if any other properties of the startTask are specified.)')] [string] $commandLine, [parameter(mandatory=$False,HelpMessage='If true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count (maxTaskRetryCount). If the task has still not completed successfully after all retries, then the Batch service marks the compute node unusable, and will not schedule tasks to it. This condition can be detected via the node state and scheduling error detail. If false, the Batch service will not wait for the start task to complete. In this case, other tasks can start executing on the compute node while the start task is still running; and even if the start task fails, new tasks will continue to be scheduled on the node. The default is true.)')] [bool] $waitForSuccess, [parameter(mandatory=$False,HelpMessage='When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container.)')] [TaskContainerSettings] $containerSettings, [parameter(mandatory=$False,HelpMessage=')')] $environmentSettings, [parameter(mandatory=$False,HelpMessage='The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task without limit.)')] [int] $maxTaskRetryCount, [parameter(mandatory=$False,HelpMessage=')')] $resourceFiles ) process { return $([StartTask]$PSBoundParameters) } } class WindowsConfiguration { [bool] $enableAutomaticUpdates } function New-AzureNativeTypeBatchWindowsConfiguration { param ( [parameter(mandatory=$False,HelpMessage='If omitted, the default value is true.)')] [bool] $enableAutomaticUpdates ) process { return $([WindowsConfiguration]$PSBoundParameters) } } class NodePlacementConfiguration { [ArgumentCompletions('Regional', 'Zonal')] [object] $policy } function New-AzureNativeTypeBatchNodePlacementConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.)')] $policy ) process { return $([NodePlacementConfiguration]$PSBoundParameters) } } class VMExtension { [string] $publisher [bool] $autoUpgradeMinorVersion [string] $typeHandlerVersion [string] $type [object] $protectedSettings [string] $name [object] $settings [string[]] $provisionAfterExtensions } function New-AzureNativeTypeBatchVMExtension { param ( [parameter(mandatory=$False,HelpMessage=')')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.)')] [bool] $autoUpgradeMinorVersion, [parameter(mandatory=$False,HelpMessage=')')] [string] $typeHandlerVersion, [parameter(mandatory=$False,HelpMessage=')')] [string] $type, [parameter(mandatory=$False,HelpMessage='The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. )')] $protectedSettings, [parameter(mandatory=$False,HelpMessage=')')] [string] $name, [parameter(mandatory=$False,HelpMessage=')')] $settings, [parameter(mandatory=$False,HelpMessage='Collection of extension names after which this extension needs to be provisioned.)')] [string[]] $provisionAfterExtensions ) process { return $([VMExtension]$PSBoundParameters) } } class DataDisk { [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [ArgumentCompletions('Standard_LRS', 'Premium_LRS')] [object] $storageAccountType [int] $lun [int] $diskSizeGB } function New-AzureNativeTypeBatchDataDisk { param ( [parameter(mandatory=$False,HelpMessage='Values are: none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write. The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.)')] $caching, [parameter(mandatory=$False,HelpMessage='If omitted, the default is "Standard_LRS". Values are: Standard_LRS - The data disk should use standard locally redundant storage. Premium_LRS - The data disk should use premium locally redundant storage.)')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.)')] [int] $lun, [parameter(mandatory=$False,HelpMessage=')')] [int] $diskSizeGB ) process { return $([DataDisk]$PSBoundParameters) } } class ContainerConfiguration { [ContainerRegistry[]] $containerRegistries [ArgumentCompletions('DockerCompatible')] [object] $type [string[]] $containerImageNames } function New-AzureNativeTypeBatchContainerConfiguration { param ( [parameter(mandatory=$False,HelpMessage='If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.)')] $containerRegistries, [parameter(mandatory=$False,HelpMessage=')')] $type, [parameter(mandatory=$False,HelpMessage='This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry.)')] [string[]] $containerImageNames ) process { return $([ContainerConfiguration]$PSBoundParameters) } } class DiskEncryptionConfiguration { [ArgumentCompletions('OsDisk', 'TemporaryDisk')] [string] $targets } function New-AzureNativeTypeBatchDiskEncryptionConfiguration { param ( [parameter(mandatory=$False,HelpMessage='On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.)')] $targets ) process { return $([DiskEncryptionConfiguration]$PSBoundParameters) } } class ImageReference { [string] $offer [string] $version [string] $publisher [string] $sku [string] $id } function New-AzureNativeTypeBatchImageReference { param ( [parameter(mandatory=$False,HelpMessage='For example, UbuntuServer or WindowsServer.)')] [string] $offer, [parameter(mandatory=$False,HelpMessage='A value of ''latest'' can be specified to select the latest version of an image. If omitted, the default is ''latest''.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='For example, Canonical or MicrosoftWindowsServer.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='For example, 18.04-LTS or 2019-Datacenter.)')] [string] $sku, [parameter(mandatory=$False,HelpMessage='This property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.)')] [string] $id ) process { return $([ImageReference]$PSBoundParameters) } } class VirtualMachineConfiguration { [WindowsConfiguration] $windowsConfiguration [NodePlacementConfiguration] $nodePlacementConfiguration [VMExtension[]] $extensions [DataDisk[]] $dataDisks [string] $licenseType [ContainerConfiguration] $containerConfiguration [DiskEncryptionConfiguration] $diskEncryptionConfiguration [string] $nodeAgentSkuId [ImageReference] $imageReference } function New-AzureNativeTypeBatchVirtualMachineConfiguration { param ( [parameter(mandatory=$False,HelpMessage='This property must not be specified if the imageReference specifies a Linux OS image.)')] [WindowsConfiguration] $windowsConfiguration, [parameter(mandatory=$False,HelpMessage='This configuration will specify rules on how nodes in the pool will be physically allocated.)')] [NodePlacementConfiguration] $nodePlacementConfiguration, [parameter(mandatory=$False,HelpMessage='If specified, the extensions mentioned in this configuration will be installed on each node.)')] $extensions, [parameter(mandatory=$False,HelpMessage='This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.)')] $dataDisks, [parameter(mandatory=$False,HelpMessage='This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client. )')] [string] $licenseType, [parameter(mandatory=$False,HelpMessage='If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.)')] [ContainerConfiguration] $containerConfiguration, [parameter(mandatory=$False,HelpMessage='If specified, encryption is performed on each node in the pool during node provisioning.)')] [DiskEncryptionConfiguration] $diskEncryptionConfiguration, [parameter(mandatory=$False,HelpMessage='The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the ''List supported node agent SKUs'' operation.)')] [string] $nodeAgentSkuId, [parameter(mandatory=$False,HelpMessage=')')] [ImageReference] $imageReference ) process { return $([VirtualMachineConfiguration]$PSBoundParameters) } } class CloudServiceConfiguration { [string] $osVersion [string] $osFamily } function New-AzureNativeTypeBatchCloudServiceConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The default value is * which specifies the latest operating system version for the specified OS family.)')] [string] $osVersion, [parameter(mandatory=$False,HelpMessage='Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, equivalent to Windows Server 2019. For more information, see Azure Guest OS Releases (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases).)')] [string] $osFamily ) process { return $([CloudServiceConfiguration]$PSBoundParameters) } } class DeploymentConfiguration { [VirtualMachineConfiguration] $virtualMachineConfiguration [CloudServiceConfiguration] $cloudServiceConfiguration } function New-AzureNativeTypeBatchDeploymentConfiguration { param ( [parameter(mandatory=$False,HelpMessage='This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.)')] [VirtualMachineConfiguration] $virtualMachineConfiguration, [parameter(mandatory=$False,HelpMessage='This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to ''UserSubscription''.)')] [CloudServiceConfiguration] $cloudServiceConfiguration ) process { return $([DeploymentConfiguration]$PSBoundParameters) } } class BatchPoolIdentity { [ArgumentCompletions('UserAssigned', 'None')] [object] $type [object] $userAssignedIdentities } function New-AzureNativeTypeBatchBatchPoolIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of identity used for the Batch Pool.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the Batch pool. 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 $([BatchPoolIdentity]$PSBoundParameters) } } class TaskSchedulingPolicy { [ArgumentCompletions('Spread', 'Pack')] [object] $nodeFillType } function New-AzureNativeTypeBatchTaskSchedulingPolicy { param ( [parameter(mandatory=$False,HelpMessage=')')] $nodeFillType ) process { return $([TaskSchedulingPolicy]$PSBoundParameters) } } class PublicIPAddressConfiguration { [ArgumentCompletions('BatchManaged', 'UserManaged', 'NoPublicIPAddresses')] [object] $provision [string[]] $ipAddressIds } function New-AzureNativeTypeBatchPublicIPAddressConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The default value is BatchManaged)')] $provision, [parameter(mandatory=$False,HelpMessage='The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.)')] [string[]] $ipAddressIds ) process { return $([PublicIPAddressConfiguration]$PSBoundParameters) } } class NetworkSecurityGroupRule { [int] $priority [ArgumentCompletions('Allow', 'Deny')] [object] $access [string[]] $sourcePortRanges [string] $sourceAddressPrefix } function New-AzureNativeTypeBatchNetworkSecurityGroupRule { param ( [parameter(mandatory=$False,HelpMessage='Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400.)')] [int] $priority, [parameter(mandatory=$False,HelpMessage=')')] $access, [parameter(mandatory=$False,HelpMessage='Valid values are ''*'' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the range of 0 to 65535 and the port ranges or ports can''t overlap. If any other values are provided the request fails with HTTP status code 400. Default value will be *.)')] [string[]] $sourcePortRanges, [parameter(mandatory=$False,HelpMessage='Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.)')] [string] $sourceAddressPrefix ) process { return $([NetworkSecurityGroupRule]$PSBoundParameters) } } class InboundNatPool { [ArgumentCompletions('TCP', 'UDP')] [object] $protocol [int] $frontendPortRangeEnd [string] $name [int] $backendPort [NetworkSecurityGroupRule[]] $networkSecurityGroupRules [int] $frontendPortRangeStart } function New-AzureNativeTypeBatchInboundNatPool { param ( [parameter(mandatory=$False,HelpMessage=')')] $protocol, [parameter(mandatory=$False,HelpMessage='Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.)')] [int] $frontendPortRangeEnd, [parameter(mandatory=$False,HelpMessage='The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='This must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.)')] [int] $backendPort, [parameter(mandatory=$False,HelpMessage='The maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.)')] $networkSecurityGroupRules, [parameter(mandatory=$False,HelpMessage='Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.)')] [int] $frontendPortRangeStart ) process { return $([InboundNatPool]$PSBoundParameters) } } class PoolEndpointConfiguration { [InboundNatPool[]] $inboundNatPools } function New-AzureNativeTypeBatchPoolEndpointConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The maximum number of inbound NAT pools per Batch pool is 5. If the maximum number of inbound NAT pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses.)')] $inboundNatPools ) process { return $([PoolEndpointConfiguration]$PSBoundParameters) } } class NetworkConfiguration { [string] $subnetId [PublicIPAddressConfiguration] $publicIPAddressConfiguration [PoolEndpointConfiguration] $endpointConfiguration } function New-AzureNativeTypeBatchNetworkConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn''t have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The ''MicrosoftAzureBatch'' service principal must have the ''Classic Virtual Machine Contributor'' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only ''classic'' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration)')] [string] $subnetId, [parameter(mandatory=$False,HelpMessage='This property is only supported on Pools with the virtualMachineConfiguration property.)')] [PublicIPAddressConfiguration] $publicIPAddressConfiguration, [parameter(mandatory=$False,HelpMessage='Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property.)')] [PoolEndpointConfiguration] $endpointConfiguration ) process { return $([NetworkConfiguration]$PSBoundParameters) } } class FixedScaleSettings { [int] $targetLowPriorityNodes [ArgumentCompletions('Requeue', 'Terminate', 'TaskCompletion', 'RetainedData')] [object] $nodeDeallocationOption [int] $targetDedicatedNodes [string] $resizeTimeout } function New-AzureNativeTypeBatchFixedScaleSettings { param ( [parameter(mandatory=$False,HelpMessage='At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.)')] [int] $targetLowPriorityNodes, [parameter(mandatory=$False,HelpMessage='If omitted, the default value is Requeue.)')] $nodeDeallocationOption, [parameter(mandatory=$False,HelpMessage='At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.)')] [int] $targetDedicatedNodes, [parameter(mandatory=$False,HelpMessage='The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).)')] [string] $resizeTimeout ) process { return $([FixedScaleSettings]$PSBoundParameters) } } class AutoScaleSettings { [string] $evaluationInterval [string] $formula } function New-AzureNativeTypeBatchAutoScaleSettings { param ( [parameter(mandatory=$False,HelpMessage='If omitted, the default value is 15 minutes (PT15M).)')] [string] $evaluationInterval, [parameter(mandatory=$False,HelpMessage=')')] [string] $formula ) process { return $([AutoScaleSettings]$PSBoundParameters) } } class ScaleSettings { [FixedScaleSettings] $fixedScale [AutoScaleSettings] $autoScale } function New-AzureNativeTypeBatchScaleSettings { param ( [parameter(mandatory=$False,HelpMessage='This property and autoScale are mutually exclusive and one of the properties must be specified.)')] [FixedScaleSettings] $fixedScale, [parameter(mandatory=$False,HelpMessage='This property and fixedScale are mutually exclusive and one of the properties must be specified.)')] [AutoScaleSettings] $autoScale ) process { return $([ScaleSettings]$PSBoundParameters) } } function New-AzureNativeBatchPool { [Alias('azure_native_batch_pool')] param ( [parameter(mandatory=$False,HelpMessage='The pool name. This must be unique within the account.)')] [string] $poolName, [parameter(mandatory=$False,HelpMessage='In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool.)')] [StartTask] $startTask, [parameter(mandatory=$False,HelpMessage='Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).)')] [DeploymentConfiguration] $deploymentConfiguration, [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to ''Disabled''.)')] $interNodeCommunication, [parameter(mandatory=$False,HelpMessage='Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool.)')] $applicationPackages, [parameter(mandatory=$False,HelpMessage='This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.)')] $mountConfiguration, [parameter(mandatory=$False,HelpMessage='The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.)')] [int] $taskSlotsPerNode, [parameter(mandatory=$False,HelpMessage='The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, pool creation will fail.)')] [string[]] $applicationLicenses, [parameter(mandatory=$False,HelpMessage='The Batch service does not assign any meaning to metadata; it is solely for the use of user code.)')] $metadata, [parameter(mandatory=$False,HelpMessage=')')] $userAccounts, [parameter(mandatory=$False,HelpMessage='For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of ''remoteUser'', a ''certs'' directory is created in the user''s home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.)')] $certificates, [parameter(mandatory=$False,HelpMessage='For information about available sizes of virtual machines for Cloud Services pools (pools created with cloudServiceConfiguration), see Sizes for Cloud Services (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the Virtual Machines Marketplace (pools created with virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).)')] [string] $vmSize, [parameter(mandatory=$False,HelpMessage='The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The type of identity used for the Batch Pool.)')] [BatchPoolIdentity] $identity, [parameter(mandatory=$False,HelpMessage='If not specified, the default is spread.)')] [TaskSchedulingPolicy] $taskSchedulingPolicy, [parameter(mandatory=$False,HelpMessage='The network configuration for a pool.)')] [NetworkConfiguration] $networkConfiguration, [parameter(mandatory=$False,HelpMessage='Defines the desired size of the pool. This can either be ''fixedScale'' where the requested targetDedicatedNodes is specified, or ''autoScale'' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.)')] [ScaleSettings] $scaleSettings, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:batch:Pool") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'poolName') { $resource.properties["poolName"] = $poolName } if($PSBoundParameters.Keys -icontains 'startTask') { $resource.properties["startTask"] = $startTask } if($PSBoundParameters.Keys -icontains 'deploymentConfiguration') { $resource.properties["deploymentConfiguration"] = $deploymentConfiguration } if($PSBoundParameters.Keys -icontains 'interNodeCommunication') { $resource.properties["interNodeCommunication"] = $interNodeCommunication } if($PSBoundParameters.Keys -icontains 'applicationPackages') { $resource.properties["applicationPackages"] = $applicationPackages } if($PSBoundParameters.Keys -icontains 'mountConfiguration') { $resource.properties["mountConfiguration"] = $mountConfiguration } if($PSBoundParameters.Keys -icontains 'taskSlotsPerNode') { $resource.properties["taskSlotsPerNode"] = $taskSlotsPerNode } if($PSBoundParameters.Keys -icontains 'applicationLicenses') { $resource.properties["applicationLicenses"] = $applicationLicenses } if($PSBoundParameters.Keys -icontains 'metadata') { $resource.properties["metadata"] = $metadata } if($PSBoundParameters.Keys -icontains 'userAccounts') { $resource.properties["userAccounts"] = $userAccounts } if($PSBoundParameters.Keys -icontains 'certificates') { $resource.properties["certificates"] = $certificates } if($PSBoundParameters.Keys -icontains 'vmSize') { $resource.properties["vmSize"] = $vmSize } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'taskSchedulingPolicy') { $resource.properties["taskSchedulingPolicy"] = $taskSchedulingPolicy } if($PSBoundParameters.Keys -icontains 'networkConfiguration') { $resource.properties["networkConfiguration"] = $networkConfiguration } if($PSBoundParameters.Keys -icontains 'scaleSettings') { $resource.properties["scaleSettings"] = $scaleSettings } $global:pulumiresources += $resource return $resource } } function New-AzureNativeBatchApplicationPackage { [Alias('azure_native_batch_applicationpackage')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the application. This must be unique within the account.)')] [string] $applicationName, [parameter(mandatory=$False,HelpMessage='The version of the application.)')] [string] $versionName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:batch:ApplicationPackage") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["applicationName"] = $applicationName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'versionName') { $resource.properties["versionName"] = $versionName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeBatchApplication { [Alias('azure_native_batch_application')] param ( [parameter(mandatory=$False,HelpMessage='The display name for the application.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the application. This must be unique within the account.)')] [string] $applicationName, [parameter(mandatory=$False,HelpMessage='The name of the Batch account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='A value indicating whether packages within the application may be overwritten using the same version string.)')] [bool] $allowUpdates, [parameter(mandatory=$False,HelpMessage='The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.)')] [string] $defaultVersion, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:batch:Application") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'applicationName') { $resource.properties["applicationName"] = $applicationName } if($PSBoundParameters.Keys -icontains 'allowUpdates') { $resource.properties["allowUpdates"] = $allowUpdates } if($PSBoundParameters.Keys -icontains 'defaultVersion') { $resource.properties["defaultVersion"] = $defaultVersion } $global:pulumiresources += $resource return $resource } } class KeyVaultProperties { [string] $keyIdentifier } function New-AzureNativeTypeBatchKeyVaultProperties { param ( [parameter(mandatory=$False,HelpMessage='Full path to the versioned secret. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. To be usable the following prerequisites must be met: The Batch Account has a System Assigned identity The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions The KeyVault has soft-delete and purge protection enabled)')] [string] $keyIdentifier ) process { return $([KeyVaultProperties]$PSBoundParameters) } } class EncryptionProperties { [ArgumentCompletions('Microsoft.Batch', 'Microsoft.KeyVault')] [object] $keySource [KeyVaultProperties] $keyVaultProperties } function New-AzureNativeTypeBatchEncryptionProperties { param ( [parameter(mandatory=$False,HelpMessage='Type of the key source.)')] $keySource, [parameter(mandatory=$False,HelpMessage='Additional details when using Microsoft.KeyVault)')] [KeyVaultProperties] $keyVaultProperties ) process { return $([EncryptionProperties]$PSBoundParameters) } } class BatchAccountIdentity { [ArgumentCompletions('SystemAssigned', 'UserAssigned', 'None')] [object] $type [object] $userAssignedIdentities } function New-AzureNativeTypeBatchBatchAccountIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of identity used for the Batch account.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the Batch account. 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 $([BatchAccountIdentity]$PSBoundParameters) } } class KeyVaultReference { [string] $id [string] $url } function New-AzureNativeTypeBatchKeyVaultReference { param ( [parameter(mandatory=$False,HelpMessage='The resource ID of the Azure key vault associated with the Batch account.)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The URL of the Azure key vault associated with the Batch account.)')] [string] $url ) process { return $([KeyVaultReference]$PSBoundParameters) } } class AutoStorageBaseProperties { [string] $storageAccountId } function New-AzureNativeTypeBatchAutoStorageBaseProperties { param ( [parameter(mandatory=$False,HelpMessage='The resource ID of the storage account to be used for auto-storage account.)')] [string] $storageAccountId ) process { return $([AutoStorageBaseProperties]$PSBoundParameters) } } function New-AzureNativeBatchBatchAccount { [Alias('azure_native_batch_batchaccount')] param ( [parameter(mandatory=$False,HelpMessage='A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.)')] [EncryptionProperties] $encryption, [parameter(mandatory=$False,HelpMessage='The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is BatchService, clients may authenticate using access keys or Azure Active Directory. If the mode is UserSubscription, clients must use Azure Active Directory. The default is BatchService.)')] $poolAllocationMode, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Batch account.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='If not specified, the default value is ''enabled''.)')] $publicNetworkAccess, [parameter(mandatory=$False,HelpMessage='The identity of the Batch account.)')] [BatchAccountIdentity] $identity, [parameter(mandatory=$False,HelpMessage='A reference to the Azure key vault associated with the Batch account.)')] [KeyVaultReference] $keyVaultReference, [parameter(mandatory=$False,HelpMessage='The user-specified tags associated with the account.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The properties related to the auto-storage account.)')] [AutoStorageBaseProperties] $autoStorage, [parameter(mandatory=$False,HelpMessage='The region in which to create the account.)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:batch:BatchAccount") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'accountName') { $resource.properties["accountName"] = $accountName } if($PSBoundParameters.Keys -icontains 'encryption') { $resource.properties["encryption"] = $encryption } if($PSBoundParameters.Keys -icontains 'poolAllocationMode') { $resource.properties["poolAllocationMode"] = $poolAllocationMode } if($PSBoundParameters.Keys -icontains 'publicNetworkAccess') { $resource.properties["publicNetworkAccess"] = $publicNetworkAccess } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'keyVaultReference') { $resource.properties["keyVaultReference"] = $keyVaultReference } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'autoStorage') { $resource.properties["autoStorage"] = $autoStorage } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } |