pspulumiyaml.azurenative.compute.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionComputeGetGalleryImageVersion { param ( [parameter(mandatory=$False,HelpMessage='The name of the Shared Image Gallery in which the Image Definition resides.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition in which the Image Version resides.)')] [string] $galleryImageName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the gallery image version to be retrieved.)')] [string] $galleryImageVersionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["galleryImageName"] = $galleryImageName $arguments["galleryImageVersionName"] = $galleryImageVersionName $arguments["galleryName"] = $galleryName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getGalleryImageVersion -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetDiskAccess { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the disk access resource that is being created. The name can''t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskAccessName ) process { $arguments = @{} $arguments["diskAccessName"] = $diskAccessName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getDiskAccess -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineScaleSetVMRunCommand { param ( [parameter(mandatory=$False,HelpMessage='The name of the VM scale set.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine run command.)')] [string] $runCommandName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The instance ID of the virtual machine.)')] [string] $instanceId ) process { $arguments = @{} $arguments["instanceId"] = $instanceId $arguments["resourceGroupName"] = $resourceGroupName $arguments["runCommandName"] = $runCommandName $arguments["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineScaleSetVMRunCommand -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineScaleSetVMExtension { param ( [parameter(mandatory=$False,HelpMessage='The name of the VM scale set.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine extension.)')] [string] $vmExtensionName, [parameter(mandatory=$False,HelpMessage='The instance ID of the virtual machine.)')] [string] $instanceId ) process { $arguments = @{} $arguments["instanceId"] = $instanceId $arguments["resourceGroupName"] = $resourceGroupName $arguments["vmExtensionName"] = $vmExtensionName $arguments["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineScaleSetVMExtension -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineScaleSetExtension { param ( [parameter(mandatory=$False,HelpMessage='The name of the VM scale set containing the extension.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the VM scale set extension.)')] [string] $vmssExtensionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["vmScaleSetName"] = $vmScaleSetName $arguments["vmssExtensionName"] = $vmssExtensionName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineScaleSetExtension -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetSshPublicKey { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the SSH public key.)')] [string] $sshPublicKeyName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["sshPublicKeyName"] = $sshPublicKeyName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getSshPublicKey -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetLogAnalyticExportThrottledRequests { param ( [parameter(mandatory=$False,HelpMessage='Group query result by Operation Name.)')] [bool] $groupByOperationName, [parameter(mandatory=$False,HelpMessage='Group query result by Resource Name.)')] [bool] $groupByResourceName, [parameter(mandatory=$False,HelpMessage='The location upon which virtual-machine-sizes is queried.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='To time of the query)')] [string] $toTime, [parameter(mandatory=$False,HelpMessage='Group query result by User Agent.)')] [bool] $groupByUserAgent, [parameter(mandatory=$False,HelpMessage='Group query result by Client Application ID.)')] [bool] $groupByClientApplicationId, [parameter(mandatory=$False,HelpMessage='SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.)')] [string] $blobContainerSasUri, [parameter(mandatory=$False,HelpMessage='From time of the query)')] [string] $fromTime, [parameter(mandatory=$False,HelpMessage='Group query result by Throttle Policy applied.)')] [bool] $groupByThrottlePolicy ) process { $arguments = @{} $arguments["blobContainerSasUri"] = $blobContainerSasUri $arguments["fromTime"] = $fromTime $arguments["location"] = $location $arguments["toTime"] = $toTime if($PSBoundParameters.Keys -icontains 'groupByOperationName') { $arguments["groupByOperationName"] = $groupByOperationName } if($PSBoundParameters.Keys -icontains 'groupByResourceName') { $arguments["groupByResourceName"] = $groupByResourceName } if($PSBoundParameters.Keys -icontains 'groupByUserAgent') { $arguments["groupByUserAgent"] = $groupByUserAgent } if($PSBoundParameters.Keys -icontains 'groupByClientApplicationId') { $arguments["groupByClientApplicationId"] = $groupByClientApplicationId } if($PSBoundParameters.Keys -icontains 'groupByThrottlePolicy') { $arguments["groupByThrottlePolicy"] = $groupByThrottlePolicy } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getLogAnalyticExportThrottledRequests -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetDiskAccessAPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the disk access resource that is being created. The name can''t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskAccessName ) process { $arguments = @{} $arguments["diskAccessName"] = $diskAccessName $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getDiskAccessAPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetRestorePoint { param ( [parameter(mandatory=$False,HelpMessage='The name of the restore point.)')] [string] $restorePointName, [parameter(mandatory=$False,HelpMessage='The name of the restore point collection.)')] [string] $restorePointCollectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["restorePointCollectionName"] = $restorePointCollectionName $arguments["restorePointName"] = $restorePointName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getRestorePoint -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetRestorePointCollection { param ( [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the restore point collection.)')] [string] $restorePointCollectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["restorePointCollectionName"] = $restorePointCollectionName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getRestorePointCollection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetDiskEncryptionSet { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the disk encryption set that is being created. The name can''t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskEncryptionSetName ) process { $arguments = @{} $arguments["diskEncryptionSetName"] = $diskEncryptionSetName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getDiskEncryptionSet -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetDisk { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the managed disk that is being created. The name can''t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskName ) process { $arguments = @{} $arguments["diskName"] = $diskName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getDisk -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetProximityPlacementGroup { param ( [parameter(mandatory=$False,HelpMessage='includeColocationStatus=true enables fetching the colocation status of all the resources in the proximity placement group.)')] [string] $includeColocationStatus, [parameter(mandatory=$False,HelpMessage='The name of the proximity placement group.)')] [string] $proximityPlacementGroupName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["proximityPlacementGroupName"] = $proximityPlacementGroupName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'includeColocationStatus') { $arguments["includeColocationStatus"] = $includeColocationStatus } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getProximityPlacementGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetGalleryImage { param ( [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition to be retrieved.)')] [string] $galleryImageName, [parameter(mandatory=$False,HelpMessage='The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["galleryImageName"] = $galleryImageName $arguments["galleryName"] = $galleryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getGalleryImage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetLogAnalyticExportRequestRateByInterval { param ( [parameter(mandatory=$False,HelpMessage='Group query result by Operation Name.)')] [bool] $groupByOperationName, [parameter(mandatory=$False,HelpMessage='Group query result by Resource Name.)')] [bool] $groupByResourceName, [parameter(mandatory=$False,HelpMessage='Interval value in minutes used to create LogAnalytics call rate logs.)')] $intervalLength, [parameter(mandatory=$False,HelpMessage='To time of the query)')] [string] $toTime, [parameter(mandatory=$False,HelpMessage='The location upon which virtual-machine-sizes is queried.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Group query result by User Agent.)')] [bool] $groupByUserAgent, [parameter(mandatory=$False,HelpMessage='Group query result by Client Application ID.)')] [bool] $groupByClientApplicationId, [parameter(mandatory=$False,HelpMessage='SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to.)')] [string] $blobContainerSasUri, [parameter(mandatory=$False,HelpMessage='From time of the query)')] [string] $fromTime, [parameter(mandatory=$False,HelpMessage='Group query result by Throttle Policy applied.)')] [bool] $groupByThrottlePolicy ) process { $arguments = @{} $arguments["blobContainerSasUri"] = $blobContainerSasUri $arguments["fromTime"] = $fromTime $arguments["intervalLength"] = $intervalLength $arguments["location"] = $location $arguments["toTime"] = $toTime if($PSBoundParameters.Keys -icontains 'groupByOperationName') { $arguments["groupByOperationName"] = $groupByOperationName } if($PSBoundParameters.Keys -icontains 'groupByResourceName') { $arguments["groupByResourceName"] = $groupByResourceName } if($PSBoundParameters.Keys -icontains 'groupByUserAgent') { $arguments["groupByUserAgent"] = $groupByUserAgent } if($PSBoundParameters.Keys -icontains 'groupByClientApplicationId') { $arguments["groupByClientApplicationId"] = $groupByClientApplicationId } if($PSBoundParameters.Keys -icontains 'groupByThrottlePolicy') { $arguments["groupByThrottlePolicy"] = $groupByThrottlePolicy } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getLogAnalyticExportRequestRateByInterval -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetGallery { param ( [parameter(mandatory=$False,HelpMessage='The select expression to apply on the operation.)')] [string] $select, [parameter(mandatory=$False,HelpMessage='The name of the Shared Image Gallery.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["galleryName"] = $galleryName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'select') { $arguments["select"] = $select } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getGallery -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetImage { param ( [parameter(mandatory=$False,HelpMessage='The name of the image.)')] [string] $imageName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["imageName"] = $imageName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getImage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetDedicatedHostGroup { param ( [parameter(mandatory=$False,HelpMessage='The name of the dedicated host group.)')] [string] $hostGroupName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. The response shows the list of instance view of the dedicated hosts under the dedicated host group.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["hostGroupName"] = $hostGroupName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getDedicatedHostGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetCloudService { param ( [parameter(mandatory=$False,HelpMessage='Name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the cloud service.)')] [string] $cloudServiceName ) process { $arguments = @{} $arguments["cloudServiceName"] = $cloudServiceName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getCloudService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachine { param ( [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. ''InstanceView'' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. ''UserData'' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine.)')] [string] $vmName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["vmName"] = $vmName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachine -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetAvailabilitySet { param ( [parameter(mandatory=$False,HelpMessage='The name of the availability set.)')] [string] $availabilitySetName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["availabilitySetName"] = $availabilitySetName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getAvailabilitySet -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineScaleSetVM { param ( [parameter(mandatory=$False,HelpMessage='The name of the VM scale set.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. ''InstanceView'' will retrieve the instance view of the virtual machine. ''UserData'' will retrieve the UserData of the virtual machine.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The instance ID of the virtual machine.)')] [string] $instanceId ) process { $arguments = @{} $arguments["instanceId"] = $instanceId $arguments["resourceGroupName"] = $resourceGroupName $arguments["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineScaleSetVM -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetCapacityReservation { param ( [parameter(mandatory=$False,HelpMessage='The name of the capacity reservation.)')] [string] $capacityReservationName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. ''InstanceView'' retrieves a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the capacity reservation group.)')] [string] $capacityReservationGroupName ) process { $arguments = @{} $arguments["capacityReservationGroupName"] = $capacityReservationGroupName $arguments["capacityReservationName"] = $capacityReservationName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getCapacityReservation -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetDedicatedHost { param ( [parameter(mandatory=$False,HelpMessage='The name of the dedicated host group.)')] [string] $hostGroupName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the dedicated host.)')] [string] $hostName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["hostGroupName"] = $hostGroupName $arguments["hostName"] = $hostName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getDedicatedHost -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineRunCommandByVirtualMachine { param ( [parameter(mandatory=$False,HelpMessage='The name of the virtual machine run command.)')] [string] $runCommandName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine containing the run command.)')] [string] $vmName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["runCommandName"] = $runCommandName $arguments["vmName"] = $vmName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineRunCommandByVirtualMachine -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineExtension { param ( [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine containing the extension.)')] [string] $vmName, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine extension.)')] [string] $vmExtensionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["vmExtensionName"] = $vmExtensionName $arguments["vmName"] = $vmName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineExtension -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetSnapshot { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the snapshot that is being created. The name can''t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.)')] [string] $snapshotName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["snapshotName"] = $snapshotName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getSnapshot -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetVirtualMachineScaleSet { param ( [parameter(mandatory=$False,HelpMessage='The name of the VM scale set.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. ''UserData'' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getVirtualMachineScaleSet -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetGalleryApplication { param ( [parameter(mandatory=$False,HelpMessage='The name of the Shared Application Gallery from which the Application Definitions are to be retrieved.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the gallery Application Definition to be retrieved.)')] [string] $galleryApplicationName ) process { $arguments = @{} $arguments["galleryApplicationName"] = $galleryApplicationName $arguments["galleryName"] = $galleryName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getGalleryApplication -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetCapacityReservationGroup { param ( [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation. ''InstanceView'' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the capacity reservation group.)')] [string] $capacityReservationGroupName ) process { $arguments = @{} $arguments["capacityReservationGroupName"] = $capacityReservationGroupName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getCapacityReservationGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionComputeGetGalleryApplicationVersion { param ( [parameter(mandatory=$False,HelpMessage='The name of the Shared Application Gallery in which the Application Definition resides.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The expand expression to apply on the operation.)')] [string] $expand, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the gallery Application Version to be retrieved.)')] [string] $galleryApplicationVersionName, [parameter(mandatory=$False,HelpMessage='The name of the gallery Application Definition in which the Application Version resides.)')] [string] $galleryApplicationName ) process { $arguments = @{} $arguments["galleryApplicationName"] = $galleryApplicationName $arguments["galleryApplicationVersionName"] = $galleryApplicationVersionName $arguments["galleryName"] = $galleryName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'expand') { $arguments["expand"] = $expand } $functionObject = Invoke-PulumiFunction -Name azure-native:compute:getGalleryApplicationVersion -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class VirtualMachineRunCommandScriptSource { [string] $script [string] $scriptUri [string] $commandId } function New-AzureNativeTypeComputeVirtualMachineRunCommandScriptSource { param ( [parameter(mandatory=$False,HelpMessage='Specifies the script content to be executed on the VM.)')] [string] $script, [parameter(mandatory=$False,HelpMessage='Specifies the script download location.)')] [string] $scriptUri, [parameter(mandatory=$False,HelpMessage='Specifies a commandId of predefined built-in script.)')] [string] $commandId ) process { return $([VirtualMachineRunCommandScriptSource]$PSBoundParameters) } } function New-AzureNativeComputeVirtualMachineScaleSetVMRunCommand { [Alias('azure_native_compute_virtualmachinescalesetvmruncommand')] param ( [parameter(mandatory=$False,HelpMessage='Specifies the Azure storage blob where script error stream will be uploaded.)')] [string] $errorBlobUri, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The instance ID of the virtual machine.)')] [string] $instanceId, [parameter(mandatory=$False,HelpMessage='Specifies the user account password on the VM when executing the run command.)')] [string] $runAsPassword, [parameter(mandatory=$False,HelpMessage='Specifies the user account on the VM when executing the run command.)')] [string] $runAsUser, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The timeout in seconds to execute the run command.)')] [int] $timeoutInSeconds, [parameter(mandatory=$False,HelpMessage='The parameters used by the script.)')] $parameters, [parameter(mandatory=$False,HelpMessage='Specifies the Azure storage blob where script output stream will be uploaded.)')] [string] $outputBlobUri, [parameter(mandatory=$False,HelpMessage='The source of the run command script.)')] [VirtualMachineRunCommandScriptSource] $source, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.)')] [bool] $asyncExecution, [parameter(mandatory=$False,HelpMessage='The name of the VM scale set.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine run command.)')] [string] $runCommandName, [parameter(mandatory=$False,HelpMessage='The parameters used by the script.)')] $protectedParameters, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineScaleSetVMRunCommand") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["instanceId"] = $instanceId $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'errorBlobUri') { $resource.properties["errorBlobUri"] = $errorBlobUri } if($PSBoundParameters.Keys -icontains 'runAsPassword') { $resource.properties["runAsPassword"] = $runAsPassword } if($PSBoundParameters.Keys -icontains 'runAsUser') { $resource.properties["runAsUser"] = $runAsUser } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'timeoutInSeconds') { $resource.properties["timeoutInSeconds"] = $timeoutInSeconds } if($PSBoundParameters.Keys -icontains 'parameters') { $resource.properties["parameters"] = $parameters } if($PSBoundParameters.Keys -icontains 'outputBlobUri') { $resource.properties["outputBlobUri"] = $outputBlobUri } if($PSBoundParameters.Keys -icontains 'source') { $resource.properties["source"] = $source } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'asyncExecution') { $resource.properties["asyncExecution"] = $asyncExecution } if($PSBoundParameters.Keys -icontains 'runCommandName') { $resource.properties["runCommandName"] = $runCommandName } if($PSBoundParameters.Keys -icontains 'protectedParameters') { $resource.properties["protectedParameters"] = $protectedParameters } $global:pulumiresources += $resource return $resource } } class VirtualMachineIdentity { [ArgumentCompletions('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [object] $type [object] $userAssignedIdentities } function New-AzureNativeTypeComputeVirtualMachineIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of identity used for the virtual machine. The type ''SystemAssigned, UserAssigned'' includes both an implicitly created identity and a set of user assigned identities. The type ''None'' will remove any identities from the virtual machine.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the Virtual Machine. 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 $([VirtualMachineIdentity]$PSBoundParameters) } } class TerminateNotificationProfile { [bool] $enable [string] $notBeforeTimeout } function New-AzureNativeTypeComputeTerminateNotificationProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether the Terminate Scheduled event is enabled or disabled.)')] [bool] $enable, [parameter(mandatory=$False,HelpMessage='Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M))')] [string] $notBeforeTimeout ) process { return $([TerminateNotificationProfile]$PSBoundParameters) } } class ScheduledEventsProfile { [TerminateNotificationProfile] $terminateNotificationProfile } function New-AzureNativeTypeComputeScheduledEventsProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies Terminate Scheduled Event related configurations.)')] [TerminateNotificationProfile] $terminateNotificationProfile ) process { return $([ScheduledEventsProfile]$PSBoundParameters) } } class HardwareProfile { [ArgumentCompletions('Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2', 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', 'Standard_DS14-4_v2', 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', 'Standard_E32-8s_v3', 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', 'Standard_M64-32ms', 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', 'Standard_NC12s_v2', 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', 'Standard_NC12s_v3', 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', 'Standard_ND12s', 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24')] [string] $vmSize } function New-AzureNativeTypeComputeHardwareProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the size of the virtual machine. <br><br> The enum data type is currently deprecated and will be removed by December 23rd 2023. <br><br> Recommended way to get the list of available sizes is using these APIs: <br><br> [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes) <br><br> [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list) <br><br> [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). <br><br> The available VM sizes depend on region and availability set.)')] [string] [ValidateSet('Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_B1s', 'Standard_B1ms', 'Standard_B2s', 'Standard_B2ms', 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D2_v3', 'Standard_D4_v3', 'Standard_D8_v3', 'Standard_D16_v3', 'Standard_D32_v3', 'Standard_D64_v3', 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2', 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_DS13-4_v2', 'Standard_DS13-2_v2', 'Standard_DS14-8_v2', 'Standard_DS14-4_v2', 'Standard_E2_v3', 'Standard_E4_v3', 'Standard_E8_v3', 'Standard_E16_v3', 'Standard_E32_v3', 'Standard_E64_v3', 'Standard_E2s_v3', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_E32-16_v3', 'Standard_E32-8s_v3', 'Standard_E64-32s_v3', 'Standard_E64-16s_v3', 'Standard_F1', 'Standard_F2', 'Standard_F4', 'Standard_F8', 'Standard_F16', 'Standard_F1s', 'Standard_F2s', 'Standard_F4s', 'Standard_F8s', 'Standard_F16s', 'Standard_F2s_v2', 'Standard_F4s_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_GS4-8', 'Standard_GS4-4', 'Standard_GS5-16', 'Standard_GS5-8', 'Standard_H8', 'Standard_H16', 'Standard_H8m', 'Standard_H16m', 'Standard_H16r', 'Standard_H16mr', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', 'Standard_L32s', 'Standard_M64s', 'Standard_M64ms', 'Standard_M128s', 'Standard_M128ms', 'Standard_M64-32ms', 'Standard_M64-16ms', 'Standard_M128-64ms', 'Standard_M128-32ms', 'Standard_NC6', 'Standard_NC12', 'Standard_NC24', 'Standard_NC24r', 'Standard_NC6s_v2', 'Standard_NC12s_v2', 'Standard_NC24s_v2', 'Standard_NC24rs_v2', 'Standard_NC6s_v3', 'Standard_NC12s_v3', 'Standard_NC24s_v3', 'Standard_NC24rs_v3', 'Standard_ND6s', 'Standard_ND12s', 'Standard_ND24s', 'Standard_ND24rs', 'Standard_NV6', 'Standard_NV12', 'Standard_NV24')] $vmSize ) process { return $([HardwareProfile]$PSBoundParameters) } } class Plan { [string] $publisher [string] $promotionCode [string] $name [string] $product } function New-AzureNativeTypeComputePlan { param ( [parameter(mandatory=$False,HelpMessage='The publisher ID.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The promotion code.)')] [string] $promotionCode, [parameter(mandatory=$False,HelpMessage='The plan ID.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.)')] [string] $product ) process { return $([Plan]$PSBoundParameters) } } class VirtualHardDisk { [string] $uri } function New-AzureNativeTypeComputeVirtualHardDisk { param ( [parameter(mandatory=$False,HelpMessage='Specifies the virtual hard disk''s uri.)')] [string] $uri ) process { return $([VirtualHardDisk]$PSBoundParameters) } } class DiskEncryptionSetParameters { [string] $id } function New-AzureNativeTypeComputeDiskEncryptionSetParameters { param ( [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id ) process { return $([DiskEncryptionSetParameters]$PSBoundParameters) } } class ManagedDiskParameters { [ArgumentCompletions('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] [string] $storageAccountType [DiskEncryptionSetParameters] $diskEncryptionSet [string] $id } function New-AzureNativeTypeComputeManagedDiskParameters { param ( [parameter(mandatory=$False,HelpMessage='Specifies the storage account type for the managed disk. Managed OS disk storage account type can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.)')] [string] [ValidateSet('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='Specifies the customer managed disk encryption set resource id for the managed disk.)')] [DiskEncryptionSetParameters] $diskEncryptionSet, [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id ) process { return $([ManagedDiskParameters]$PSBoundParameters) } } class DataDisk { [int] $lun [string] $name [bool] $toBeDetached [bool] $writeAcceleratorEnabled [ArgumentCompletions('FromImage', 'Empty', 'Attach')] [string] $createOption [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [VirtualHardDisk] $vhd [int] $diskSizeGB [ArgumentCompletions('ForceDetach')] [string] $detachOption [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [ManagedDiskParameters] $managedDisk [VirtualHardDisk] $image } function New-AzureNativeTypeComputeDataDisk { param ( [parameter(mandatory=$False,HelpMessage='Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.)')] [int] $lun, [parameter(mandatory=$False,HelpMessage='The disk name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset)')] [bool] $toBeDetached, [parameter(mandatory=$False,HelpMessage='Specifies whether writeAccelerator should be enabled or disabled on the disk.)')] [bool] $writeAcceleratorEnabled, [parameter(mandatory=$False,HelpMessage='Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described.)')] [string] [ValidateSet('FromImage', 'Empty', 'Attach')] $createOption, [parameter(mandatory=$False,HelpMessage='Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**)')] $caching, [parameter(mandatory=$False,HelpMessage='The virtual hard disk.)')] [VirtualHardDisk] $vhd, [parameter(mandatory=$False,HelpMessage='Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach**. <br><br> detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. <br><br> This feature is still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to ''true'' along with setting detachOption: ''ForceDetach''.)')] [string] [ValidateSet('ForceDetach')] $detachOption, [parameter(mandatory=$False,HelpMessage='Specifies whether data disk should be deleted or detached upon VM deletion.<br><br> Possible values: <br><br> **Delete** If this value is used, the data disk is deleted when VM is deleted.<br><br> **Detach** If this value is used, the data disk is retained after VM is deleted.<br><br> The default value is set to **detach**)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='The managed disk parameters.)')] [ManagedDiskParameters] $managedDisk, [parameter(mandatory=$False,HelpMessage='The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.)')] [VirtualHardDisk] $image ) process { return $([DataDisk]$PSBoundParameters) } } class ImageReference { [string] $sku [string] $publisher [string] $version [string] $offer [string] $id } function New-AzureNativeTypeComputeImageReference { param ( [parameter(mandatory=$False,HelpMessage='The image SKU.)')] [string] $sku, [parameter(mandatory=$False,HelpMessage='The image publisher.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or ''latest''. Major, Minor, and Build are decimal numbers. Specify ''latest'' to use the latest version of an image available at deploy time. Even if you use ''latest'', the VM image will not automatically update after deploy time even if a new version becomes available.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='Specifies the offer of the platform image or marketplace image used to create the virtual machine.)')] [string] $offer, [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id ) process { return $([ImageReference]$PSBoundParameters) } } class SubResource { [string] $id } function New-AzureNativeTypeComputeSubResource { param ( [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id ) process { return $([SubResource]$PSBoundParameters) } } class KeyVaultSecretReference { [SubResource] $sourceVault [string] $secretUrl } function New-AzureNativeTypeComputeKeyVaultSecretReference { param ( [parameter(mandatory=$False,HelpMessage='The relative URL of the Key Vault containing the secret.)')] [SubResource] $sourceVault, [parameter(mandatory=$False,HelpMessage='The URL referencing a secret in a Key Vault.)')] [string] $secretUrl ) process { return $([KeyVaultSecretReference]$PSBoundParameters) } } class KeyVaultKeyReference { [string] $keyUrl [SubResource] $sourceVault } function New-AzureNativeTypeComputeKeyVaultKeyReference { param ( [parameter(mandatory=$False,HelpMessage='The URL referencing a key encryption key in Key Vault.)')] [string] $keyUrl, [parameter(mandatory=$False,HelpMessage='The relative URL of the Key Vault containing the key.)')] [SubResource] $sourceVault ) process { return $([KeyVaultKeyReference]$PSBoundParameters) } } class DiskEncryptionSettings { [KeyVaultSecretReference] $diskEncryptionKey [bool] $enabled [KeyVaultKeyReference] $keyEncryptionKey } function New-AzureNativeTypeComputeDiskEncryptionSettings { param ( [parameter(mandatory=$False,HelpMessage='Specifies the location of the disk encryption key, which is a Key Vault Secret.)')] [KeyVaultSecretReference] $diskEncryptionKey, [parameter(mandatory=$False,HelpMessage='Specifies whether disk encryption should be enabled on the virtual machine.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='Specifies the location of the key encryption key in Key Vault.)')] [KeyVaultKeyReference] $keyEncryptionKey ) process { return $([DiskEncryptionSettings]$PSBoundParameters) } } class DiffDiskSettings { [ArgumentCompletions('Local')] [string] $option [ArgumentCompletions('CacheDisk', 'ResourceDisk')] [string] $placement } function New-AzureNativeTypeComputeDiffDiskSettings { param ( [parameter(mandatory=$False,HelpMessage='Specifies the ephemeral disk settings for operating system disk.)')] [string] [ValidateSet('Local')] $option, [parameter(mandatory=$False,HelpMessage='Specifies the ephemeral disk placement for operating system disk.<br><br> Possible values are: <br><br> **CacheDisk** <br><br> **ResourceDisk** <br><br> Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.<br><br> Refer to VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.)')] [string] [ValidateSet('CacheDisk', 'ResourceDisk')] $placement ) process { return $([DiffDiskSettings]$PSBoundParameters) } } class OSDisk { [VirtualHardDisk] $vhd [string] $name [ManagedDiskParameters] $managedDisk [ArgumentCompletions('Windows', 'Linux')] [object] $osType [ArgumentCompletions('FromImage', 'Empty', 'Attach')] [string] $createOption [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [DiskEncryptionSettings] $encryptionSettings [int] $diskSizeGB [bool] $writeAcceleratorEnabled [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [DiffDiskSettings] $diffDiskSettings [VirtualHardDisk] $image } function New-AzureNativeTypeComputeOSDisk { param ( [parameter(mandatory=$False,HelpMessage='The virtual hard disk.)')] [VirtualHardDisk] $vhd, [parameter(mandatory=$False,HelpMessage='The disk name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The managed disk parameters.)')] [ManagedDiskParameters] $managedDisk, [parameter(mandatory=$False,HelpMessage='This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**)')] $osType, [parameter(mandatory=$False,HelpMessage='Specifies how the virtual machine should be created.<br><br> Possible values are:<br><br> **Attach** \u2013 This value is used when you are using a specialized disk to create the virtual machine.<br><br> **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described.)')] [string] [ValidateSet('FromImage', 'Empty', 'Attach')] $createOption, [parameter(mandatory=$False,HelpMessage='Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None** for Standard storage. **ReadOnly** for Premium storage.)')] $caching, [parameter(mandatory=$False,HelpMessage='Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15)')] [DiskEncryptionSettings] $encryptionSettings, [parameter(mandatory=$False,HelpMessage='Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='Specifies whether writeAccelerator should be enabled or disabled on the disk.)')] [bool] $writeAcceleratorEnabled, [parameter(mandatory=$False,HelpMessage='Specifies whether OS Disk should be deleted or detached upon VM deletion. <br><br> Possible values: <br><br> **Delete** If this value is used, the OS disk is deleted when VM is deleted.<br><br> **Detach** If this value is used, the os disk is retained after VM is deleted. <br><br> The default value is set to **detach**. For an ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for ephemeral OS Disk.)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.)')] [DiffDiskSettings] $diffDiskSettings, [parameter(mandatory=$False,HelpMessage='The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.)')] [VirtualHardDisk] $image ) process { return $([OSDisk]$PSBoundParameters) } } class StorageProfile { [DataDisk[]] $dataDisks [ImageReference] $imageReference [OSDisk] $osDisk } function New-AzureNativeTypeComputeStorageProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).)')] $dataDisks, [parameter(mandatory=$False,HelpMessage='Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.)')] [ImageReference] $imageReference, [parameter(mandatory=$False,HelpMessage='Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).)')] [OSDisk] $osDisk ) process { return $([StorageProfile]$PSBoundParameters) } } class ExtendedLocation { [string] $name [ArgumentCompletions('EdgeZone')] [string] $type } function New-AzureNativeTypeComputeExtendedLocation { param ( [parameter(mandatory=$False,HelpMessage='The name of the extended location.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The type of the extended location.)')] [string] [ValidateSet('EdgeZone')] $type ) process { return $([ExtendedLocation]$PSBoundParameters) } } class BillingProfile { [int] $maxPrice } function New-AzureNativeTypeComputeBillingProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. <br><br> This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price. <br><br> The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS. <br><br> Possible values are: <br><br> - Any decimal value greater than zero. Example: 0.01538 <br><br> -1 – indicates default price to be up-to on-demand. <br><br> You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you. <br><br>Minimum api-version: 2019-03-01.)')] [int] $maxPrice ) process { return $([BillingProfile]$PSBoundParameters) } } class VaultCertificate { [string] $certificateUrl [string] $certificateStore } function New-AzureNativeTypeComputeVaultCertificate { param ( [parameter(mandatory=$False,HelpMessage='This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).)')] [string] $certificateUrl, [parameter(mandatory=$False,HelpMessage='For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. <br><br>For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted.)')] [string] $certificateStore ) process { return $([VaultCertificate]$PSBoundParameters) } } class VaultSecretGroup { [VaultCertificate[]] $vaultCertificates [SubResource] $sourceVault } function New-AzureNativeTypeComputeVaultSecretGroup { param ( [parameter(mandatory=$False,HelpMessage='The list of key vault references in SourceVault which contain certificates.)')] $vaultCertificates, [parameter(mandatory=$False,HelpMessage='The relative URL of the Key Vault containing all of the certificates in VaultCertificates.)')] [SubResource] $sourceVault ) process { return $([VaultSecretGroup]$PSBoundParameters) } } class SshPublicKey { [string] $path [string] $keyData } function New-AzureNativeTypeComputeSshPublicKey { param ( [parameter(mandatory=$False,HelpMessage='Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys)')] [string] $path, [parameter(mandatory=$False,HelpMessage='SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. <br><br> For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).)')] [string] $keyData ) process { return $([SshPublicKey]$PSBoundParameters) } } class SshConfiguration { [SshPublicKey[]] $publicKeys } function New-AzureNativeTypeComputeSshConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The list of SSH public keys used to authenticate with linux based VMs.)')] $publicKeys ) process { return $([SshConfiguration]$PSBoundParameters) } } class LinuxPatchSettings { [ArgumentCompletions('ImageDefault', 'AutomaticByPlatform')] [string] $assessmentMode [ArgumentCompletions('ImageDefault', 'AutomaticByPlatform')] [string] $patchMode } function New-AzureNativeTypeComputeLinuxPatchSettings { param ( [parameter(mandatory=$False,HelpMessage='Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.)')] [string] [ValidateSet('ImageDefault', 'AutomaticByPlatform')] $assessmentMode, [parameter(mandatory=$False,HelpMessage='Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine''s default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true)')] [string] [ValidateSet('ImageDefault', 'AutomaticByPlatform')] $patchMode ) process { return $([LinuxPatchSettings]$PSBoundParameters) } } class LinuxConfiguration { [bool] $provisionVMAgent [bool] $disablePasswordAuthentication [SshConfiguration] $ssh [LinuxPatchSettings] $patchSettings } function New-AzureNativeTypeComputeLinuxConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.)')] [bool] $provisionVMAgent, [parameter(mandatory=$False,HelpMessage='Specifies whether password authentication should be disabled.)')] [bool] $disablePasswordAuthentication, [parameter(mandatory=$False,HelpMessage='Specifies the ssh key configuration for a Linux OS.)')] [SshConfiguration] $ssh, [parameter(mandatory=$False,HelpMessage='[Preview Feature] Specifies settings related to VM Guest Patching on Linux.)')] [LinuxPatchSettings] $patchSettings ) process { return $([LinuxConfiguration]$PSBoundParameters) } } class PatchSettings { [ArgumentCompletions('ImageDefault', 'AutomaticByPlatform')] [string] $assessmentMode [bool] $enableHotpatching [ArgumentCompletions('Manual', 'AutomaticByOS', 'AutomaticByPlatform')] [string] $patchMode } function New-AzureNativeTypeComputePatchSettings { param ( [parameter(mandatory=$False,HelpMessage='Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. )')] [string] [ValidateSet('ImageDefault', 'AutomaticByPlatform')] $assessmentMode, [parameter(mandatory=$False,HelpMessage='Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the ''provisionVMAgent'' must be set to true and ''patchMode'' must be set to ''AutomaticByPlatform''.)')] [bool] $enableHotpatching, [parameter(mandatory=$False,HelpMessage='Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true )')] [string] [ValidateSet('Manual', 'AutomaticByOS', 'AutomaticByPlatform')] $patchMode ) process { return $([PatchSettings]$PSBoundParameters) } } class AdditionalUnattendContent { [ArgumentCompletions('AutoLogon', 'FirstLogonCommands')] [object] $settingName [ArgumentCompletions('Microsoft-Windows-Shell-Setup')] [object] $componentName [ArgumentCompletions('OobeSystem')] [object] $passName [string] $content } function New-AzureNativeTypeComputeAdditionalUnattendContent { param ( [parameter(mandatory=$False,HelpMessage='Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.)')] $settingName, [parameter(mandatory=$False,HelpMessage='The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.)')] $componentName, [parameter(mandatory=$False,HelpMessage='The pass name. Currently, the only allowable value is OobeSystem.)')] $passName, [parameter(mandatory=$False,HelpMessage='Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.)')] [string] $content ) process { return $([AdditionalUnattendContent]$PSBoundParameters) } } class WinRMListener { [ArgumentCompletions('Http', 'Https')] [object] $protocol [string] $certificateUrl } function New-AzureNativeTypeComputeWinRMListener { param ( [parameter(mandatory=$False,HelpMessage='Specifies the protocol of WinRM listener. <br><br> Possible values are: <br>**http** <br><br> **https**)')] $protocol, [parameter(mandatory=$False,HelpMessage='This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> "data":"<Base64-encoded-certificate>",<br> "dataType":"pfx",<br> "password":"<pfx-file-password>"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).)')] [string] $certificateUrl ) process { return $([WinRMListener]$PSBoundParameters) } } class WinRMConfiguration { [WinRMListener[]] $listeners } function New-AzureNativeTypeComputeWinRMConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The list of Windows Remote Management listeners)')] $listeners ) process { return $([WinRMConfiguration]$PSBoundParameters) } } class WindowsConfiguration { [bool] $provisionVMAgent [PatchSettings] $patchSettings [string] $timeZone [AdditionalUnattendContent[]] $additionalUnattendContent [WinRMConfiguration] $winRM [bool] $enableAutomaticUpdates } function New-AzureNativeTypeComputeWindowsConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Indicates whether virtual machine agent should be provisioned on the virtual machine. <br><br> When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.)')] [bool] $provisionVMAgent, [parameter(mandatory=$False,HelpMessage='[Preview Feature] Specifies settings related to VM Guest Patching on Windows.)')] [PatchSettings] $patchSettings, [parameter(mandatory=$False,HelpMessage='Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". <br><br> Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).)')] [string] $timeZone, [parameter(mandatory=$False,HelpMessage='Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.)')] $additionalUnattendContent, [parameter(mandatory=$False,HelpMessage='Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.)')] [WinRMConfiguration] $winRM, [parameter(mandatory=$False,HelpMessage='Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. <br><br> For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.)')] [bool] $enableAutomaticUpdates ) process { return $([WindowsConfiguration]$PSBoundParameters) } } class OSProfile { [bool] $requireGuestProvisionSignal [VaultSecretGroup[]] $secrets [string] $computerName [string] $adminPassword [string] $adminUsername [string] $customData [LinuxConfiguration] $linuxConfiguration [WindowsConfiguration] $windowsConfiguration [bool] $allowExtensionOperations } function New-AzureNativeTypeComputeOSProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether the guest provision signal is required to infer provision success of the virtual machine. **Note: This property is for private testing only, and all customers must not set the property to false.**)')] [bool] $requireGuestProvisionSignal, [parameter(mandatory=$False,HelpMessage='Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).)')] $secrets, [parameter(mandatory=$False,HelpMessage='Specifies the host OS name of the virtual machine. <br><br> This name cannot be updated after the VM is created. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules).)')] [string] $computerName, [parameter(mandatory=$False,HelpMessage='Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection))')] [string] $adminPassword, [parameter(mandatory=$False,HelpMessage='Specifies the name of the administrator account. <br><br> This property cannot be updated after the VM is created. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters.)')] [string] $adminUsername, [parameter(mandatory=$False,HelpMessage='Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> **Note: Do not pass any secrets or passwords in customData property** <br><br> This property cannot be updated after the VM is created. <br><br> customData is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/) <br><br> For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init))')] [string] $customData, [parameter(mandatory=$False,HelpMessage='Specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).)')] [LinuxConfiguration] $linuxConfiguration, [parameter(mandatory=$False,HelpMessage='Specifies Windows operating system settings on the virtual machine.)')] [WindowsConfiguration] $windowsConfiguration, [parameter(mandatory=$False,HelpMessage='Specifies whether extension operations should be allowed on the virtual machine. <br><br>This may only be set to False when no extensions are present on the virtual machine.)')] [bool] $allowExtensionOperations ) process { return $([OSProfile]$PSBoundParameters) } } class UefiSettings { [bool] $secureBootEnabled [bool] $vTpmEnabled } function New-AzureNativeTypeComputeUefiSettings { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether secure boot should be enabled on the virtual machine. <br><br>Minimum api-version: 2020-12-01)')] [bool] $secureBootEnabled, [parameter(mandatory=$False,HelpMessage='Specifies whether vTPM should be enabled on the virtual machine. <br><br>Minimum api-version: 2020-12-01)')] [bool] $vTpmEnabled ) process { return $([UefiSettings]$PSBoundParameters) } } class SecurityProfile { [UefiSettings] $uefiSettings [ArgumentCompletions('TrustedLaunch')] [string] $securityType [bool] $encryptionAtHost } function New-AzureNativeTypeComputeSecurityProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the security settings like secure boot and vTPM used while creating the virtual machine. <br><br>Minimum api-version: 2020-12-01)')] [UefiSettings] $uefiSettings, [parameter(mandatory=$False,HelpMessage='Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable UefiSettings. <br><br> Default: UefiSettings will not be enabled unless this property is set as TrustedLaunch.)')] [string] [ValidateSet('TrustedLaunch')] $securityType, [parameter(mandatory=$False,HelpMessage='This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. <br><br> Default: The Encryption at host will be disabled unless this property is set to true for the resource.)')] [bool] $encryptionAtHost ) process { return $([SecurityProfile]$PSBoundParameters) } } class AdditionalCapabilities { [bool] $ultraSSDEnabled } function New-AzureNativeTypeComputeAdditionalCapabilities { param ( [parameter(mandatory=$False,HelpMessage='The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled.)')] [bool] $ultraSSDEnabled ) process { return $([AdditionalCapabilities]$PSBoundParameters) } } class NetworkInterfaceReference { [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [string] $id [bool] $primary } function New-AzureNativeTypeComputeNetworkInterfaceReference { param ( [parameter(mandatory=$False,HelpMessage='Specify what happens to the network interface when the VM is deleted)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Specifies the primary network interface in case the virtual machine has more than 1 network interface.)')] [bool] $primary ) process { return $([NetworkInterfaceReference]$PSBoundParameters) } } class VirtualMachineNetworkInterfaceDnsSettingsConfiguration { [string[]] $dnsServers } function New-AzureNativeTypeComputeVirtualMachineNetworkInterfaceDnsSettingsConfiguration { param ( [parameter(mandatory=$False,HelpMessage='List of DNS servers IP addresses)')] [string[]] $dnsServers ) process { return $([VirtualMachineNetworkInterfaceDnsSettingsConfiguration]$PSBoundParameters) } } class VirtualMachineIpTag { [string] $tag [string] $ipTagType } function New-AzureNativeTypeComputeVirtualMachineIpTag { param ( [parameter(mandatory=$False,HelpMessage='IP tag associated with the public IP. Example: SQL, Storage etc.)')] [string] $tag, [parameter(mandatory=$False,HelpMessage='IP tag type. Example: FirstPartyUsage.)')] [string] $ipTagType ) process { return $([VirtualMachineIpTag]$PSBoundParameters) } } class VirtualMachinePublicIPAddressDnsSettingsConfiguration { [string] $domainNameLabel } function New-AzureNativeTypeComputeVirtualMachinePublicIPAddressDnsSettingsConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID.)')] [string] $domainNameLabel ) process { return $([VirtualMachinePublicIPAddressDnsSettingsConfiguration]$PSBoundParameters) } } class PublicIPAddressSku { [ArgumentCompletions('Basic', 'Standard')] [string] $name [ArgumentCompletions('Regional', 'Global')] [string] $tier } function New-AzureNativeTypeComputePublicIPAddressSku { param ( [parameter(mandatory=$False,HelpMessage='Specify public IP sku name)')] [string] [ValidateSet('Basic', 'Standard')] $name, [parameter(mandatory=$False,HelpMessage='Specify public IP sku tier)')] [string] [ValidateSet('Regional', 'Global')] $tier ) process { return $([PublicIPAddressSku]$PSBoundParameters) } } class VirtualMachinePublicIPAddressConfiguration { [int] $idleTimeoutInMinutes [VirtualMachineIpTag[]] $ipTags [string] $name [VirtualMachinePublicIPAddressDnsSettingsConfiguration] $dnsSettings [ArgumentCompletions('Dynamic', 'Static')] [string] $publicIPAllocationMethod [ArgumentCompletions('IPv4', 'IPv6')] [string] $publicIPAddressVersion [SubResource] $publicIPPrefix [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [PublicIPAddressSku] $sku } function New-AzureNativeTypeComputeVirtualMachinePublicIPAddressConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The idle timeout of the public IP address.)')] [int] $idleTimeoutInMinutes, [parameter(mandatory=$False,HelpMessage='The list of IP tags associated with the public IP address.)')] $ipTags, [parameter(mandatory=$False,HelpMessage='The publicIP address configuration name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The dns settings to be applied on the publicIP addresses .)')] [VirtualMachinePublicIPAddressDnsSettingsConfiguration] $dnsSettings, [parameter(mandatory=$False,HelpMessage='Specify the public IP allocation type)')] [string] [ValidateSet('Dynamic', 'Static')] $publicIPAllocationMethod, [parameter(mandatory=$False,HelpMessage='Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ''IPv4'' and ''IPv6''.)')] [string] [ValidateSet('IPv4', 'IPv6')] $publicIPAddressVersion, [parameter(mandatory=$False,HelpMessage='The PublicIPPrefix from which to allocate publicIP addresses.)')] [SubResource] $publicIPPrefix, [parameter(mandatory=$False,HelpMessage='Specify what happens to the public IP address when the VM is deleted)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='Describes the public IP Sku)')] [PublicIPAddressSku] $sku ) process { return $([VirtualMachinePublicIPAddressConfiguration]$PSBoundParameters) } } class VirtualMachineNetworkInterfaceIPConfiguration { [SubResource[]] $applicationGatewayBackendAddressPools [bool] $primary [string] $name [SubResource[]] $loadBalancerBackendAddressPools [SubResource] $subnet [SubResource[]] $applicationSecurityGroups [ArgumentCompletions('IPv4', 'IPv6')] [string] $privateIPAddressVersion [VirtualMachinePublicIPAddressConfiguration] $publicIPAddressConfiguration } function New-AzureNativeTypeComputeVirtualMachineNetworkInterfaceIPConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway.)')] $applicationGatewayBackendAddressPools, [parameter(mandatory=$False,HelpMessage='Specifies the primary network interface in case the virtual machine has more than 1 network interface.)')] [bool] $primary, [parameter(mandatory=$False,HelpMessage='The IP configuration name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer].)')] $loadBalancerBackendAddressPools, [parameter(mandatory=$False,HelpMessage='Specifies the identifier of the subnet.)')] [SubResource] $subnet, [parameter(mandatory=$False,HelpMessage='Specifies an array of references to application security group.)')] $applicationSecurityGroups, [parameter(mandatory=$False,HelpMessage='Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ''IPv4'' and ''IPv6''.)')] [string] [ValidateSet('IPv4', 'IPv6')] $privateIPAddressVersion, [parameter(mandatory=$False,HelpMessage='The publicIPAddressConfiguration.)')] [VirtualMachinePublicIPAddressConfiguration] $publicIPAddressConfiguration ) process { return $([VirtualMachineNetworkInterfaceIPConfiguration]$PSBoundParameters) } } class VirtualMachineNetworkInterfaceConfiguration { [bool] $enableAcceleratedNetworking [string] $name [bool] $enableFpga [VirtualMachineNetworkInterfaceDnsSettingsConfiguration] $dnsSettings [bool] $primary [VirtualMachineNetworkInterfaceIPConfiguration[]] $ipConfigurations [SubResource] $dscpConfiguration [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [SubResource] $networkSecurityGroup [bool] $enableIPForwarding } function New-AzureNativeTypeComputeVirtualMachineNetworkInterfaceConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether the network interface is accelerated networking-enabled.)')] [bool] $enableAcceleratedNetworking, [parameter(mandatory=$False,HelpMessage='The network interface configuration name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies whether the network interface is FPGA networking-enabled.)')] [bool] $enableFpga, [parameter(mandatory=$False,HelpMessage='The dns settings to be applied on the network interfaces.)')] [VirtualMachineNetworkInterfaceDnsSettingsConfiguration] $dnsSettings, [parameter(mandatory=$False,HelpMessage='Specifies the primary network interface in case the virtual machine has more than 1 network interface.)')] [bool] $primary, [parameter(mandatory=$False,HelpMessage='Specifies the IP configurations of the network interface.)')] $ipConfigurations, [parameter(mandatory=$False,HelpMessage=')')] [SubResource] $dscpConfiguration, [parameter(mandatory=$False,HelpMessage='Specify what happens to the network interface when the VM is deleted)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='The network security group.)')] [SubResource] $networkSecurityGroup, [parameter(mandatory=$False,HelpMessage='Whether IP forwarding enabled on this NIC.)')] [bool] $enableIPForwarding ) process { return $([VirtualMachineNetworkInterfaceConfiguration]$PSBoundParameters) } } class NetworkProfile { [NetworkInterfaceReference[]] $networkInterfaces [VirtualMachineNetworkInterfaceConfiguration[]] $networkInterfaceConfigurations [ArgumentCompletions('2020-11-01')] [string] $networkApiVersion } function New-AzureNativeTypeComputeNetworkProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the list of resource Ids for the network interfaces associated with the virtual machine.)')] $networkInterfaces, [parameter(mandatory=$False,HelpMessage='Specifies the networking configurations that will be used to create the virtual machine networking resources.)')] $networkInterfaceConfigurations, [parameter(mandatory=$False,HelpMessage='specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations)')] [string] [ValidateSet('2020-11-01')] $networkApiVersion ) process { return $([NetworkProfile]$PSBoundParameters) } } class BootDiagnostics { [bool] $enabled [string] $storageUri } function New-AzureNativeTypeComputeBootDiagnostics { param ( [parameter(mandatory=$False,HelpMessage='Whether boot diagnostics should be enabled on the Virtual Machine.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.)')] [string] $storageUri ) process { return $([BootDiagnostics]$PSBoundParameters) } } class DiagnosticsProfile { [BootDiagnostics] $bootDiagnostics } function New-AzureNativeTypeComputeDiagnosticsProfile { param ( [parameter(mandatory=$False,HelpMessage='Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.)')] [BootDiagnostics] $bootDiagnostics ) process { return $([DiagnosticsProfile]$PSBoundParameters) } } function New-AzureNativeComputeVirtualMachine { [Alias('azure_native_compute_virtualmachine')] param ( [parameter(mandatory=$False,HelpMessage='The identity of the virtual machine, if configured.)')] [VirtualMachineIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. <br><br>For Azure Spot virtual machines, both ''Deallocate'' and ''Delete'' are supported and the minimum api-version is 2019-03-01. <br><br>For Azure Spot scale sets, both ''Deallocate'' and ''Delete'' are supported and the minimum api-version is 2017-10-30-preview.)')] [string] [ValidateSet('Deallocate', 'Delete')] $evictionPolicy, [parameter(mandatory=$False,HelpMessage='Specifies Scheduled Event related configurations.)')] [ScheduledEventsProfile] $scheduledEventsProfile, [parameter(mandatory=$False,HelpMessage='Specifies the hardware settings for the virtual machine.)')] [HardwareProfile] $hardwareProfile, [parameter(mandatory=$False,HelpMessage='Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.<br><li>This is applicable only if the ''virtualMachineScaleSet'' property of this Virtual Machine is set.<li>The Virtual Machine Scale Set that is referenced, must have ''platformFaultDomainCount'' > 1.<li>This property cannot be updated once the Virtual Machine is created.<li>Fault domain assignment can be viewed in the Virtual Machine Instance View.<br><br>Minimum api‐version: 2020‐12‐01)')] [int] $platformFaultDomain, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine.)')] [string] $vmName, [parameter(mandatory=$False,HelpMessage='Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). <br><br> Minimum api-version: 2020-06-01)')] [string] $extensionsTimeBudget, [parameter(mandatory=$False,HelpMessage='Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.)')] [Plan] $plan, [parameter(mandatory=$False,HelpMessage='Specifies the storage settings for the virtual machine disks.)')] [StorageProfile] $storageProfile, [parameter(mandatory=$False,HelpMessage='The extended location of the Virtual Machine.)')] [ExtendedLocation] $extendedLocation, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Specifies the billing related details of a Azure Spot virtual machine. <br><br>Minimum api-version: 2019-03-01.)')] [BillingProfile] $billingProfile, [parameter(mandatory=$False,HelpMessage='Specifies information about the dedicated host group that the virtual machine resides in. <br><br>Minimum api-version: 2020-06-01. <br><br>NOTE: User cannot specify both host and hostGroup properties.)')] [SubResource] $hostGroup, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the priority for the virtual machine. <br><br>Minimum api-version: 2019-03-01)')] [string] [ValidateSet('Regular', 'Low', 'Spot')] $priority, [parameter(mandatory=$False,HelpMessage='Specifies information about the proximity placement group that the virtual machine should be assigned to. <br><br>Minimum api-version: 2018-04-01.)')] [SubResource] $proximityPlacementGroup, [parameter(mandatory=$False,HelpMessage='Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). <br><br> For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates) <br><br> Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. <br><br>This property cannot exist along with a non-null properties.virtualMachineScaleSet reference.)')] [SubResource] $availabilitySet, [parameter(mandatory=$False,HelpMessage='Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned.)')] [OSProfile] $osProfile, [parameter(mandatory=$False,HelpMessage='Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15)')] [string] $licenseType, [parameter(mandatory=$False,HelpMessage='Specifies information about the dedicated host that the virtual machine resides in. <br><br>Minimum api-version: 2018-10-01.)')] [SubResource] $host, [parameter(mandatory=$False,HelpMessage='The virtual machine zones.)')] [string[]] $zones, [parameter(mandatory=$False,HelpMessage='Specifies the Security related profile settings for the virtual machine.)')] [SecurityProfile] $securityProfile, [parameter(mandatory=$False,HelpMessage='Specifies additional capabilities enabled or disabled on the virtual machine.)')] [AdditionalCapabilities] $additionalCapabilities, [parameter(mandatory=$False,HelpMessage='Specifies the network interfaces of the virtual machine.)')] [NetworkProfile] $networkProfile, [parameter(mandatory=$False,HelpMessage='UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01)')] [string] $userData, [parameter(mandatory=$False,HelpMessage='Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. <br><br>This property cannot exist along with a non-null properties.availabilitySet reference. <br><br>Minimum api‐version: 2019‐03‐01)')] [SubResource] $virtualMachineScaleSet, [parameter(mandatory=$False,HelpMessage='Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.)')] [DiagnosticsProfile] $diagnosticsProfile, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachine") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'evictionPolicy') { $resource.properties["evictionPolicy"] = $evictionPolicy } if($PSBoundParameters.Keys -icontains 'scheduledEventsProfile') { $resource.properties["scheduledEventsProfile"] = $scheduledEventsProfile } if($PSBoundParameters.Keys -icontains 'hardwareProfile') { $resource.properties["hardwareProfile"] = $hardwareProfile } if($PSBoundParameters.Keys -icontains 'platformFaultDomain') { $resource.properties["platformFaultDomain"] = $platformFaultDomain } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'vmName') { $resource.properties["vmName"] = $vmName } if($PSBoundParameters.Keys -icontains 'extensionsTimeBudget') { $resource.properties["extensionsTimeBudget"] = $extensionsTimeBudget } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'storageProfile') { $resource.properties["storageProfile"] = $storageProfile } if($PSBoundParameters.Keys -icontains 'extendedLocation') { $resource.properties["extendedLocation"] = $extendedLocation } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'billingProfile') { $resource.properties["billingProfile"] = $billingProfile } if($PSBoundParameters.Keys -icontains 'hostGroup') { $resource.properties["hostGroup"] = $hostGroup } if($PSBoundParameters.Keys -icontains 'priority') { $resource.properties["priority"] = $priority } if($PSBoundParameters.Keys -icontains 'proximityPlacementGroup') { $resource.properties["proximityPlacementGroup"] = $proximityPlacementGroup } if($PSBoundParameters.Keys -icontains 'availabilitySet') { $resource.properties["availabilitySet"] = $availabilitySet } if($PSBoundParameters.Keys -icontains 'osProfile') { $resource.properties["osProfile"] = $osProfile } if($PSBoundParameters.Keys -icontains 'licenseType') { $resource.properties["licenseType"] = $licenseType } if($PSBoundParameters.Keys -icontains 'host') { $resource.properties["host"] = $host } if($PSBoundParameters.Keys -icontains 'zones') { $resource.properties["zones"] = $zones } if($PSBoundParameters.Keys -icontains 'securityProfile') { $resource.properties["securityProfile"] = $securityProfile } if($PSBoundParameters.Keys -icontains 'additionalCapabilities') { $resource.properties["additionalCapabilities"] = $additionalCapabilities } if($PSBoundParameters.Keys -icontains 'networkProfile') { $resource.properties["networkProfile"] = $networkProfile } if($PSBoundParameters.Keys -icontains 'userData') { $resource.properties["userData"] = $userData } if($PSBoundParameters.Keys -icontains 'virtualMachineScaleSet') { $resource.properties["virtualMachineScaleSet"] = $virtualMachineScaleSet } if($PSBoundParameters.Keys -icontains 'diagnosticsProfile') { $resource.properties["diagnosticsProfile"] = $diagnosticsProfile } $global:pulumiresources += $resource return $resource } } class ImageDataDisk { [string] $blobUri [ArgumentCompletions('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] [string] $storageAccountType [SubResource] $snapshot [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [DiskEncryptionSetParameters] $diskEncryptionSet [int] $diskSizeGB [SubResource] $managedDisk [int] $lun } function New-AzureNativeTypeComputeImageDataDisk { param ( [parameter(mandatory=$False,HelpMessage='The Virtual Hard Disk.)')] [string] $blobUri, [parameter(mandatory=$False,HelpMessage='Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.)')] [string] [ValidateSet('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='The snapshot.)')] [SubResource] $snapshot, [parameter(mandatory=$False,HelpMessage='Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**)')] $caching, [parameter(mandatory=$False,HelpMessage='Specifies the customer managed disk encryption set resource id for the managed image disk.)')] [DiskEncryptionSetParameters] $diskEncryptionSet, [parameter(mandatory=$False,HelpMessage='Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='The managedDisk.)')] [SubResource] $managedDisk, [parameter(mandatory=$False,HelpMessage='Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.)')] [int] $lun ) process { return $([ImageDataDisk]$PSBoundParameters) } } class ImageOSDisk { [DiskEncryptionSetParameters] $diskEncryptionSet [SubResource] $snapshot [string] $blobUri [ArgumentCompletions('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] [string] $storageAccountType [ArgumentCompletions('Generalized', 'Specialized')] [object] $osState [ArgumentCompletions('Windows', 'Linux')] [object] $osType [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [int] $diskSizeGB [SubResource] $managedDisk } function New-AzureNativeTypeComputeImageOSDisk { param ( [parameter(mandatory=$False,HelpMessage='Specifies the customer managed disk encryption set resource id for the managed image disk.)')] [DiskEncryptionSetParameters] $diskEncryptionSet, [parameter(mandatory=$False,HelpMessage='The snapshot.)')] [SubResource] $snapshot, [parameter(mandatory=$False,HelpMessage='The Virtual Hard Disk.)')] [string] $blobUri, [parameter(mandatory=$False,HelpMessage='Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.)')] [string] [ValidateSet('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='The OS State.)')] $osState, [parameter(mandatory=$False,HelpMessage='This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**)')] $osType, [parameter(mandatory=$False,HelpMessage='Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**)')] $caching, [parameter(mandatory=$False,HelpMessage='Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='The managedDisk.)')] [SubResource] $managedDisk ) process { return $([ImageOSDisk]$PSBoundParameters) } } class ImageStorageProfile { [ImageDataDisk[]] $dataDisks [bool] $zoneResilient [ImageOSDisk] $osDisk } function New-AzureNativeTypeComputeImageStorageProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).)')] $dataDisks, [parameter(mandatory=$False,HelpMessage='Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).)')] [bool] $zoneResilient, [parameter(mandatory=$False,HelpMessage='Specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).)')] [ImageOSDisk] $osDisk ) process { return $([ImageStorageProfile]$PSBoundParameters) } } function New-AzureNativeComputeImage { [Alias('azure_native_compute_image')] param ( [parameter(mandatory=$False,HelpMessage='The extended location of the Image.)')] [ExtendedLocation] $extendedLocation, [parameter(mandatory=$False,HelpMessage='Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.)')] [string] [ValidateSet('V1', 'V2')] $hyperVGeneration, [parameter(mandatory=$False,HelpMessage='The name of the image.)')] [string] $imageName, [parameter(mandatory=$False,HelpMessage='Specifies the storage settings for the virtual machine disks.)')] [ImageStorageProfile] $storageProfile, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The source virtual machine from which Image is created.)')] [SubResource] $sourceVirtualMachine, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:Image") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'extendedLocation') { $resource.properties["extendedLocation"] = $extendedLocation } if($PSBoundParameters.Keys -icontains 'hyperVGeneration') { $resource.properties["hyperVGeneration"] = $hyperVGeneration } if($PSBoundParameters.Keys -icontains 'imageName') { $resource.properties["imageName"] = $imageName } if($PSBoundParameters.Keys -icontains 'storageProfile') { $resource.properties["storageProfile"] = $storageProfile } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'sourceVirtualMachine') { $resource.properties["sourceVirtualMachine"] = $sourceVirtualMachine } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class SharingProfile { [ArgumentCompletions('Private', 'Groups')] [string] $permissions } function New-AzureNativeTypeComputeSharingProfile { param ( [parameter(mandatory=$False,HelpMessage='This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups**)')] [string] [ValidateSet('Private', 'Groups')] $permissions ) process { return $([SharingProfile]$PSBoundParameters) } } function New-AzureNativeComputeGallery { [Alias('azure_native_compute_gallery')] param ( [parameter(mandatory=$False,HelpMessage='The description of this Shared Image Gallery resource. This property is updatable.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Profile for gallery sharing to subscription or tenant)')] [SharingProfile] $sharingProfile, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.)')] [string] $galleryName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:Gallery") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'sharingProfile') { $resource.properties["sharingProfile"] = $sharingProfile } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'galleryName') { $resource.properties["galleryName"] = $galleryName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeRestorePoint { [Alias('azure_native_compute_restorepoint')] param ( [parameter(mandatory=$False,HelpMessage='List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.)')] $excludeDisks, [parameter(mandatory=$False,HelpMessage='Gets the creation time of the restore point.)')] [string] $timeCreated, [parameter(mandatory=$False,HelpMessage='The name of the restore point.)')] [string] $restorePointName, [parameter(mandatory=$False,HelpMessage='The name of the restore point collection.)')] [string] $restorePointCollectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:RestorePoint") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["restorePointCollectionName"] = $restorePointCollectionName if($PSBoundParameters.Keys -icontains 'excludeDisks') { $resource.properties["excludeDisks"] = $excludeDisks } if($PSBoundParameters.Keys -icontains 'timeCreated') { $resource.properties["timeCreated"] = $timeCreated } if($PSBoundParameters.Keys -icontains 'restorePointName') { $resource.properties["restorePointName"] = $restorePointName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeDedicatedHostGroup { [Alias('azure_native_compute_dedicatedhostgroup')] param ( [parameter(mandatory=$False,HelpMessage='Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.)')] [string[]] $zones, [parameter(mandatory=$False,HelpMessage='Number of fault domains that the host group can span.)')] [int] $platformFaultDomainCount, [parameter(mandatory=$False,HelpMessage='Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to ''false'' when not provided. <br><br>Minimum api-version: 2020-06-01.)')] [bool] $supportAutomaticPlacement, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the dedicated host group.)')] [string] $hostGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:DedicatedHostGroup") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["platformFaultDomainCount"] = $platformFaultDomainCount $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'zones') { $resource.properties["zones"] = $zones } if($PSBoundParameters.Keys -icontains 'supportAutomaticPlacement') { $resource.properties["supportAutomaticPlacement"] = $supportAutomaticPlacement } if($PSBoundParameters.Keys -icontains 'hostGroupName') { $resource.properties["hostGroupName"] = $hostGroupName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class ImageDiskReference { [int] $lun [string] $id } function New-AzureNativeTypeComputeImageDiskReference { param ( [parameter(mandatory=$False,HelpMessage='If the disk is created from an image''s data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.)')] [int] $lun, [parameter(mandatory=$False,HelpMessage='A relative uri containing either a Platform Image Repository or user image reference.)')] [string] $id ) process { return $([ImageDiskReference]$PSBoundParameters) } } class CreationData { [string] $storageAccountId [ArgumentCompletions('Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload')] [string] $createOption [int] $logicalSectorSize [string] $sourceResourceId [ImageDiskReference] $imageReference [string] $sourceUri [int] $uploadSizeBytes [ImageDiskReference] $galleryImageReference } function New-AzureNativeTypeComputeCreationData { param ( [parameter(mandatory=$False,HelpMessage='Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.)')] [string] $storageAccountId, [parameter(mandatory=$False,HelpMessage='This enumerates the possible sources of a disk''s creation.)')] [string] [ValidateSet('Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload')] $createOption, [parameter(mandatory=$False,HelpMessage='Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.)')] [int] $logicalSectorSize, [parameter(mandatory=$False,HelpMessage='If createOption is Copy, this is the ARM id of the source snapshot or disk.)')] [string] $sourceResourceId, [parameter(mandatory=$False,HelpMessage='Disk source information.)')] [ImageDiskReference] $imageReference, [parameter(mandatory=$False,HelpMessage='If createOption is Import, this is the URI of a blob to be imported into a managed disk.)')] [string] $sourceUri, [parameter(mandatory=$False,HelpMessage='If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).)')] [int] $uploadSizeBytes, [parameter(mandatory=$False,HelpMessage='Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.)')] [ImageDiskReference] $galleryImageReference ) process { return $([CreationData]$PSBoundParameters) } } class SourceVault { [string] $id } function New-AzureNativeTypeComputeSourceVault { param ( [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id ) process { return $([SourceVault]$PSBoundParameters) } } class KeyVaultAndKeyReference { [string] $keyUrl [SourceVault] $sourceVault } function New-AzureNativeTypeComputeKeyVaultAndKeyReference { param ( [parameter(mandatory=$False,HelpMessage='Url pointing to a key or secret in KeyVault)')] [string] $keyUrl, [parameter(mandatory=$False,HelpMessage='Resource id of the KeyVault containing the key or secret)')] [SourceVault] $sourceVault ) process { return $([KeyVaultAndKeyReference]$PSBoundParameters) } } class KeyVaultAndSecretReference { [SourceVault] $sourceVault [string] $secretUrl } function New-AzureNativeTypeComputeKeyVaultAndSecretReference { param ( [parameter(mandatory=$False,HelpMessage='Resource id of the KeyVault containing the key or secret)')] [SourceVault] $sourceVault, [parameter(mandatory=$False,HelpMessage='Url pointing to a key or secret in KeyVault)')] [string] $secretUrl ) process { return $([KeyVaultAndSecretReference]$PSBoundParameters) } } class EncryptionSettingsElement { [KeyVaultAndKeyReference] $keyEncryptionKey [KeyVaultAndSecretReference] $diskEncryptionKey } function New-AzureNativeTypeComputeEncryptionSettingsElement { param ( [parameter(mandatory=$False,HelpMessage='Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.)')] [KeyVaultAndKeyReference] $keyEncryptionKey, [parameter(mandatory=$False,HelpMessage='Key Vault Secret Url and vault id of the disk encryption key)')] [KeyVaultAndSecretReference] $diskEncryptionKey ) process { return $([EncryptionSettingsElement]$PSBoundParameters) } } class EncryptionSettingsCollection { [EncryptionSettingsElement[]] $encryptionSettings [bool] $enabled [string] $encryptionSettingsVersion } function New-AzureNativeTypeComputeEncryptionSettingsCollection { param ( [parameter(mandatory=$False,HelpMessage='A collection of encryption settings, one for each disk volume.)')] $encryptionSettings, [parameter(mandatory=$False,HelpMessage='Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. ''1.0'' corresponds to Azure Disk Encryption with AAD app.''1.1'' corresponds to Azure Disk Encryption.)')] [string] $encryptionSettingsVersion ) process { return $([EncryptionSettingsCollection]$PSBoundParameters) } } class PurchasePlan { [string] $publisher [string] $promotionCode [string] $name [string] $product } function New-AzureNativeTypeComputePurchasePlan { param ( [parameter(mandatory=$False,HelpMessage='The publisher ID.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The Offer Promotion Code.)')] [string] $promotionCode, [parameter(mandatory=$False,HelpMessage='The plan ID.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.)')] [string] $product ) process { return $([PurchasePlan]$PSBoundParameters) } } class SnapshotSku { [ArgumentCompletions('Standard_LRS', 'Premium_LRS', 'Standard_ZRS')] [string] $name } function New-AzureNativeTypeComputeSnapshotSku { param ( [parameter(mandatory=$False,HelpMessage='The sku name.)')] [string] [ValidateSet('Standard_LRS', 'Premium_LRS', 'Standard_ZRS')] $name ) process { return $([SnapshotSku]$PSBoundParameters) } } class Encryption { [string] $diskEncryptionSetId [ArgumentCompletions('EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', 'EncryptionAtRestWithPlatformAndCustomerKeys')] [string] $type } function New-AzureNativeTypeComputeEncryption { param ( [parameter(mandatory=$False,HelpMessage='ResourceId of the disk encryption set to use for enabling encryption at rest.)')] [string] $diskEncryptionSetId, [parameter(mandatory=$False,HelpMessage='The type of key used to encrypt the data of the disk.)')] [string] [ValidateSet('EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', 'EncryptionAtRestWithPlatformAndCustomerKeys')] $type ) process { return $([Encryption]$PSBoundParameters) } } function New-AzureNativeComputeSnapshot { [Alias('azure_native_compute_snapshot')] param ( [parameter(mandatory=$False,HelpMessage='The Operating System type.)')] $osType, [parameter(mandatory=$False,HelpMessage='Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.)')] [bool] $incremental, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the snapshot that is being created. The name can''t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.)')] [string] $snapshotName, [parameter(mandatory=$False,HelpMessage='Disk source information. CreationData information cannot be changed after the disk has been created.)')] [CreationData] $creationData, [parameter(mandatory=$False,HelpMessage='The extended location where the snapshot will be created. Extended location cannot be changed.)')] [ExtendedLocation] $extendedLocation, [parameter(mandatory=$False,HelpMessage='Policy for accessing the disk via network.)')] [string] [ValidateSet('AllowAll', 'AllowPrivate', 'DenyAll')] $networkAccessPolicy, [parameter(mandatory=$False,HelpMessage='Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.)')] [EncryptionSettingsCollection] $encryptionSettingsCollection, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Indicates the OS on a snapshot supports hibernation.)')] [bool] $supportsHibernation, [parameter(mandatory=$False,HelpMessage='The hypervisor generation of the Virtual Machine. Applicable to OS disks only.)')] [string] [ValidateSet('V1', 'V2')] $hyperVGeneration, [parameter(mandatory=$False,HelpMessage='Purchase plan information for the image from which the source disk for the snapshot was originally created.)')] [PurchasePlan] $purchasePlan, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot)')] [SnapshotSku] $sku, [parameter(mandatory=$False,HelpMessage='ARM id of the DiskAccess resource for using private endpoints on disks.)')] [string] $diskAccessId, [parameter(mandatory=$False,HelpMessage='If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk''s size.)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.)')] [Encryption] $encryption, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:Snapshot") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["creationData"] = $creationData $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'osType') { $resource.properties["osType"] = $osType } if($PSBoundParameters.Keys -icontains 'incremental') { $resource.properties["incremental"] = $incremental } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'snapshotName') { $resource.properties["snapshotName"] = $snapshotName } if($PSBoundParameters.Keys -icontains 'extendedLocation') { $resource.properties["extendedLocation"] = $extendedLocation } if($PSBoundParameters.Keys -icontains 'networkAccessPolicy') { $resource.properties["networkAccessPolicy"] = $networkAccessPolicy } if($PSBoundParameters.Keys -icontains 'encryptionSettingsCollection') { $resource.properties["encryptionSettingsCollection"] = $encryptionSettingsCollection } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'supportsHibernation') { $resource.properties["supportsHibernation"] = $supportsHibernation } if($PSBoundParameters.Keys -icontains 'hyperVGeneration') { $resource.properties["hyperVGeneration"] = $hyperVGeneration } if($PSBoundParameters.Keys -icontains 'purchasePlan') { $resource.properties["purchasePlan"] = $purchasePlan } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'diskAccessId') { $resource.properties["diskAccessId"] = $diskAccessId } if($PSBoundParameters.Keys -icontains 'diskSizeGB') { $resource.properties["diskSizeGB"] = $diskSizeGB } if($PSBoundParameters.Keys -icontains 'encryption') { $resource.properties["encryption"] = $encryption } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeDiskAccess { [Alias('azure_native_compute_diskaccess')] param ( [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the disk access resource that is being created. The name can''t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskAccessName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:DiskAccess") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'diskAccessName') { $resource.properties["diskAccessName"] = $diskAccessName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeVirtualMachineScaleSetExtension { [Alias('azure_native_compute_virtualmachinescalesetextension')] param ( [parameter(mandatory=$False,HelpMessage='The name of the VM scale set where the extension should be create or updated.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.)')] [bool] $enableAutomaticUpgrade, [parameter(mandatory=$False,HelpMessage='The name of the extension handler publisher.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The name of the extension.)')] [string] $name, [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='If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='Collection of extension names after which this extension needs to be provisioned.)')] [string[]] $provisionAfterExtensions, [parameter(mandatory=$False,HelpMessage='Json formatted public settings for the extension.)')] $settings, [parameter(mandatory=$False,HelpMessage='The name of the VM scale set extension.)')] [string] $vmssExtensionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the version of the script handler.)')] [string] $typeHandlerVersion, [parameter(mandatory=$False,HelpMessage='Specifies the type of the extension; an example is "CustomScriptExtension".)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.)')] $protectedSettings, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineScaleSetExtension") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'enableAutomaticUpgrade') { $resource.properties["enableAutomaticUpgrade"] = $enableAutomaticUpgrade } if($PSBoundParameters.Keys -icontains 'publisher') { $resource.properties["publisher"] = $publisher } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'autoUpgradeMinorVersion') { $resource.properties["autoUpgradeMinorVersion"] = $autoUpgradeMinorVersion } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } if($PSBoundParameters.Keys -icontains 'provisionAfterExtensions') { $resource.properties["provisionAfterExtensions"] = $provisionAfterExtensions } if($PSBoundParameters.Keys -icontains 'settings') { $resource.properties["settings"] = $settings } if($PSBoundParameters.Keys -icontains 'vmssExtensionName') { $resource.properties["vmssExtensionName"] = $vmssExtensionName } if($PSBoundParameters.Keys -icontains 'typeHandlerVersion') { $resource.properties["typeHandlerVersion"] = $typeHandlerVersion } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'protectedSettings') { $resource.properties["protectedSettings"] = $protectedSettings } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeCapacityReservationGroup { [Alias('azure_native_compute_capacityreservationgroup')] param ( [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones.)')] [string[]] $zones, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the capacity reservation group.)')] [string] $capacityReservationGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:CapacityReservationGroup") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'zones') { $resource.properties["zones"] = $zones } if($PSBoundParameters.Keys -icontains 'capacityReservationGroupName') { $resource.properties["capacityReservationGroupName"] = $capacityReservationGroupName } $global:pulumiresources += $resource return $resource } } class UserArtifactManage { [string] $install [string] $update [string] $remove } function New-AzureNativeTypeComputeUserArtifactManage { param ( [parameter(mandatory=$False,HelpMessage='Required. The path and arguments to install the gallery application. This is limited to 4096 characters.)')] [string] $install, [parameter(mandatory=$False,HelpMessage='Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove command on the previous version and install command on the current version of the gallery application. This is limited to 4096 characters.)')] [string] $update, [parameter(mandatory=$False,HelpMessage='Required. The path and arguments to remove the gallery application. This is limited to 4096 characters.)')] [string] $remove ) process { return $([UserArtifactManage]$PSBoundParameters) } } class OSDiskImageEncryption { [string] $diskEncryptionSetId } function New-AzureNativeTypeComputeOSDiskImageEncryption { param ( [parameter(mandatory=$False,HelpMessage='A relative URI containing the resource ID of the disk encryption set.)')] [string] $diskEncryptionSetId ) process { return $([OSDiskImageEncryption]$PSBoundParameters) } } class DataDiskImageEncryption { [string] $diskEncryptionSetId [int] $lun } function New-AzureNativeTypeComputeDataDiskImageEncryption { param ( [parameter(mandatory=$False,HelpMessage='A relative URI containing the resource ID of the disk encryption set.)')] [string] $diskEncryptionSetId, [parameter(mandatory=$False,HelpMessage='This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.)')] [int] $lun ) process { return $([DataDiskImageEncryption]$PSBoundParameters) } } class EncryptionImages { [OSDiskImageEncryption] $osDiskImage [DataDiskImageEncryption[]] $dataDiskImages } function New-AzureNativeTypeComputeEncryptionImages { param ( [parameter(mandatory=$False,HelpMessage='Contains encryption settings for an OS disk image.)')] [OSDiskImageEncryption] $osDiskImage, [parameter(mandatory=$False,HelpMessage='A list of encryption specifications for data disk images.)')] $dataDiskImages ) process { return $([EncryptionImages]$PSBoundParameters) } } class TargetRegion { [ArgumentCompletions('Standard_LRS', 'Standard_ZRS', 'Premium_LRS')] [string] $storageAccountType [int] $regionalReplicaCount [string] $name [EncryptionImages] $encryption } function New-AzureNativeTypeComputeTargetRegion { param ( [parameter(mandatory=$False,HelpMessage='Specifies the storage account type to be used to store the image. This property is not updatable.)')] [string] [ValidateSet('Standard_LRS', 'Standard_ZRS', 'Premium_LRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='The number of replicas of the Image Version to be created per region. This property is updatable.)')] [int] $regionalReplicaCount, [parameter(mandatory=$False,HelpMessage='The name of the region.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.)')] [EncryptionImages] $encryption ) process { return $([TargetRegion]$PSBoundParameters) } } class UserArtifactSource { [string] $mediaLink [string] $defaultConfigurationLink } function New-AzureNativeTypeComputeUserArtifactSource { param ( [parameter(mandatory=$False,HelpMessage='Required. The mediaLink of the artifact, must be a readable storage page blob.)')] [string] $mediaLink, [parameter(mandatory=$False,HelpMessage='Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.)')] [string] $defaultConfigurationLink ) process { return $([UserArtifactSource]$PSBoundParameters) } } class GalleryApplicationVersionPublishingProfile { [UserArtifactManage] $manageActions [TargetRegion[]] $targetRegions [bool] $excludeFromLatest [ArgumentCompletions('Standard_LRS', 'Standard_ZRS', 'Premium_LRS')] [string] $storageAccountType [UserArtifactSource] $source [bool] $enableHealthCheck [int] $replicaCount [string] $endOfLifeDate } function New-AzureNativeTypeComputeGalleryApplicationVersionPublishingProfile { param ( [parameter(mandatory=$False,HelpMessage=')')] [UserArtifactManage] $manageActions, [parameter(mandatory=$False,HelpMessage='The target regions where the Image Version is going to be replicated to. This property is updatable.)')] $targetRegions, [parameter(mandatory=$False,HelpMessage='If set to true, Virtual Machines deployed from the latest version of the Image Definition won''t use this Image Version.)')] [bool] $excludeFromLatest, [parameter(mandatory=$False,HelpMessage='Specifies the storage account type to be used to store the image. This property is not updatable.)')] [string] [ValidateSet('Standard_LRS', 'Standard_ZRS', 'Premium_LRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='The source image from which the Image Version is going to be created.)')] [UserArtifactSource] $source, [parameter(mandatory=$False,HelpMessage='Optional. Whether or not this application reports health.)')] [bool] $enableHealthCheck, [parameter(mandatory=$False,HelpMessage='The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.)')] [int] $replicaCount, [parameter(mandatory=$False,HelpMessage='The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.)')] [string] $endOfLifeDate ) process { return $([GalleryApplicationVersionPublishingProfile]$PSBoundParameters) } } function New-AzureNativeComputeGalleryApplicationVersion { [Alias('azure_native_compute_galleryapplicationversion')] param ( [parameter(mandatory=$False,HelpMessage='The publishing profile of a gallery image version.)')] [GalleryApplicationVersionPublishingProfile] $publishingProfile, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>)')] [string] $galleryApplicationVersionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the gallery Application Definition in which the Application Version is to be created.)')] [string] $galleryApplicationName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the Shared Application Gallery in which the Application Definition resides.)')] [string] $galleryName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:GalleryApplicationVersion") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["galleryApplicationName"] = $galleryApplicationName $resource.properties["galleryName"] = $galleryName $resource.properties["publishingProfile"] = $publishingProfile $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'galleryApplicationVersionName') { $resource.properties["galleryApplicationVersionName"] = $galleryApplicationVersionName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeSshPublicKey { [Alias('azure_native_compute_sshpublickey')] param ( [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.)')] [string] $publicKey, [parameter(mandatory=$False,HelpMessage='The name of the SSH public key.)')] [string] $sshPublicKeyName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:SshPublicKey") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'publicKey') { $resource.properties["publicKey"] = $publicKey } if($PSBoundParameters.Keys -icontains 'sshPublicKeyName') { $resource.properties["sshPublicKeyName"] = $sshPublicKeyName } $global:pulumiresources += $resource return $resource } } class InstanceViewStatus { [string] $code [ArgumentCompletions('Info', 'Warning', 'Error')] [object] $level [string] $displayStatus [string] $message [string] $time } function New-AzureNativeTypeComputeInstanceViewStatus { param ( [parameter(mandatory=$False,HelpMessage='The status code.)')] [string] $code, [parameter(mandatory=$False,HelpMessage='The level code.)')] $level, [parameter(mandatory=$False,HelpMessage='The short localizable label for the status.)')] [string] $displayStatus, [parameter(mandatory=$False,HelpMessage='The detailed status message, including for alerts and error messages.)')] [string] $message, [parameter(mandatory=$False,HelpMessage='The time of the status.)')] [string] $time ) process { return $([InstanceViewStatus]$PSBoundParameters) } } function New-AzureNativeComputeProximityPlacementGroup { [Alias('azure_native_compute_proximityplacementgroup')] param ( [parameter(mandatory=$False,HelpMessage='Describes colocation status of the Proximity Placement Group.)')] [InstanceViewStatus] $colocationStatus, [parameter(mandatory=$False,HelpMessage='Specifies the type of the proximity placement group. <br><br> Possible values are: <br><br> **Standard** : Co-locate resources within an Azure region or Availability Zone. <br><br> **Ultra** : For future use.)')] [string] [ValidateSet('Standard', 'Ultra')] $proximityPlacementGroupType, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the proximity placement group.)')] [string] $proximityPlacementGroupName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:ProximityPlacementGroup") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'colocationStatus') { $resource.properties["colocationStatus"] = $colocationStatus } if($PSBoundParameters.Keys -icontains 'proximityPlacementGroupType') { $resource.properties["proximityPlacementGroupType"] = $proximityPlacementGroupType } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'proximityPlacementGroupName') { $resource.properties["proximityPlacementGroupName"] = $proximityPlacementGroupName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class CloudServiceVaultAndSecretReference { [SubResource] $sourceVault [string] $secretUrl } function New-AzureNativeTypeComputeCloudServiceVaultAndSecretReference { param ( [parameter(mandatory=$False,HelpMessage=')')] [SubResource] $sourceVault, [parameter(mandatory=$False,HelpMessage=')')] [string] $secretUrl ) process { return $([CloudServiceVaultAndSecretReference]$PSBoundParameters) } } class CloudServiceExtensionProperties { [string] $forceUpdateTag [CloudServiceVaultAndSecretReference] $protectedSettingsFromKeyVault [string] $publisher [string] $protectedSettings [string[]] $rolesAppliedTo [string] $typeHandlerVersion [bool] $autoUpgradeMinorVersion [string] $type [string] $settings } function New-AzureNativeTypeComputeCloudServiceExtensionProperties { param ( [parameter(mandatory=$False,HelpMessage='Tag to force apply the provided public and protected settings. Changing the tag value allows for re-running the extension without changing any of the public or protected settings. If forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler. If neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and it is up to handler implementation whether to re-run it or not)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage=')')] [CloudServiceVaultAndSecretReference] $protectedSettingsFromKeyVault, [parameter(mandatory=$False,HelpMessage='The name of the extension handler publisher.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='Protected settings for the extension which are encrypted before sent to the role instance.)')] [string] $protectedSettings, [parameter(mandatory=$False,HelpMessage='Optional list of roles to apply this extension. If property is not specified or ''*'' is specified, extension is applied to all roles in the cloud service.)')] [string[]] $rolesAppliedTo, [parameter(mandatory=$False,HelpMessage='Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.)')] [string] $typeHandlerVersion, [parameter(mandatory=$False,HelpMessage='Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.)')] [bool] $autoUpgradeMinorVersion, [parameter(mandatory=$False,HelpMessage='Specifies the type of the extension.)')] [string] $type, [parameter(mandatory=$False,HelpMessage='Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.)')] [string] $settings ) process { return $([CloudServiceExtensionProperties]$PSBoundParameters) } } class Extension { [string] $name [CloudServiceExtensionProperties] $properties } function New-AzureNativeTypeComputeExtension { param ( [parameter(mandatory=$False,HelpMessage='The name of the extension.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Extension Properties.)')] [CloudServiceExtensionProperties] $properties ) process { return $([Extension]$PSBoundParameters) } } class CloudServiceExtensionProfile { [Extension[]] $extensions } function New-AzureNativeTypeComputeCloudServiceExtensionProfile { param ( [parameter(mandatory=$False,HelpMessage='List of extensions for the cloud service.)')] $extensions ) process { return $([CloudServiceExtensionProfile]$PSBoundParameters) } } class CloudServiceVaultCertificate { [string] $certificateUrl } function New-AzureNativeTypeComputeCloudServiceVaultCertificate { param ( [parameter(mandatory=$False,HelpMessage='This is the URL of a certificate that has been uploaded to Key Vault as a secret.)')] [string] $certificateUrl ) process { return $([CloudServiceVaultCertificate]$PSBoundParameters) } } class CloudServiceVaultSecretGroup { [CloudServiceVaultCertificate[]] $vaultCertificates [SubResource] $sourceVault } function New-AzureNativeTypeComputeCloudServiceVaultSecretGroup { param ( [parameter(mandatory=$False,HelpMessage='The list of key vault references in SourceVault which contain certificates.)')] $vaultCertificates, [parameter(mandatory=$False,HelpMessage='The relative URL of the Key Vault containing all of the certificates in VaultCertificates.)')] [SubResource] $sourceVault ) process { return $([CloudServiceVaultSecretGroup]$PSBoundParameters) } } class CloudServiceOsProfile { [CloudServiceVaultSecretGroup[]] $secrets } function New-AzureNativeTypeComputeCloudServiceOsProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies set of certificates that should be installed onto the role instances.)')] $secrets ) process { return $([CloudServiceOsProfile]$PSBoundParameters) } } class LoadBalancerFrontendIPConfigurationProperties { [SubResource] $subnet [SubResource] $publicIPAddress [string] $privateIPAddress } function New-AzureNativeTypeComputeLoadBalancerFrontendIPConfigurationProperties { param ( [parameter(mandatory=$False,HelpMessage='The reference to the virtual network subnet resource.)')] [SubResource] $subnet, [parameter(mandatory=$False,HelpMessage='The reference to the public ip address resource.)')] [SubResource] $publicIPAddress, [parameter(mandatory=$False,HelpMessage='The virtual network private IP address of the IP configuration.)')] [string] $privateIPAddress ) process { return $([LoadBalancerFrontendIPConfigurationProperties]$PSBoundParameters) } } class LoadBalancerFrontendIPConfiguration { [string] $name [LoadBalancerFrontendIPConfigurationProperties] $properties } function New-AzureNativeTypeComputeLoadBalancerFrontendIPConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Properties of load balancer frontend ip configuration.)')] [LoadBalancerFrontendIPConfigurationProperties] $properties ) process { return $([LoadBalancerFrontendIPConfiguration]$PSBoundParameters) } } class LoadBalancerConfigurationProperties { [LoadBalancerFrontendIPConfiguration[]] $frontendIPConfigurations } function New-AzureNativeTypeComputeLoadBalancerConfigurationProperties { param ( [parameter(mandatory=$False,HelpMessage='Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.)')] $frontendIPConfigurations ) process { return $([LoadBalancerConfigurationProperties]$PSBoundParameters) } } class LoadBalancerConfiguration { [LoadBalancerConfigurationProperties] $properties [string] $name [string] $id } function New-AzureNativeTypeComputeLoadBalancerConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Properties of the load balancer configuration.)')] [LoadBalancerConfigurationProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the Load balancer)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id ) process { return $([LoadBalancerConfiguration]$PSBoundParameters) } } class CloudServiceNetworkProfile { [LoadBalancerConfiguration[]] $loadBalancerConfigurations [SubResource] $swappableCloudService } function New-AzureNativeTypeComputeCloudServiceNetworkProfile { param ( [parameter(mandatory=$False,HelpMessage='List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.)')] $loadBalancerConfigurations, [parameter(mandatory=$False,HelpMessage='The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.)')] [SubResource] $swappableCloudService ) process { return $([CloudServiceNetworkProfile]$PSBoundParameters) } } class CloudServiceRoleSku { [string] $tier [string] $name [int] $capacity } function New-AzureNativeTypeComputeCloudServiceRoleSku { param ( [parameter(mandatory=$False,HelpMessage='Specifies the tier of the cloud service. Possible Values are <br /><br /> **Standard** <br /><br /> **Basic**)')] [string] $tier, [parameter(mandatory=$False,HelpMessage='The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the number of role instances in the cloud service.)')] [int] $capacity ) process { return $([CloudServiceRoleSku]$PSBoundParameters) } } class CloudServiceRoleProfileProperties { [string] $name [CloudServiceRoleSku] $sku } function New-AzureNativeTypeComputeCloudServiceRoleProfileProperties { param ( [parameter(mandatory=$False,HelpMessage='Resource name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Describes the cloud service role sku.)')] [CloudServiceRoleSku] $sku ) process { return $([CloudServiceRoleProfileProperties]$PSBoundParameters) } } class CloudServiceRoleProfile { [CloudServiceRoleProfileProperties[]] $roles } function New-AzureNativeTypeComputeCloudServiceRoleProfile { param ( [parameter(mandatory=$False,HelpMessage='List of roles for the cloud service.)')] $roles ) process { return $([CloudServiceRoleProfile]$PSBoundParameters) } } class CloudServiceProperties { [string] $packageUrl [ArgumentCompletions('Auto', 'Manual', 'Simultaneous')] [string] $upgradeMode [CloudServiceExtensionProfile] $extensionProfile [CloudServiceOsProfile] $osProfile [string] $configurationUrl [CloudServiceNetworkProfile] $networkProfile [string] $configuration [bool] $startCloudService [bool] $allowModelOverride [CloudServiceRoleProfile] $roleProfile } function New-AzureNativeTypeComputeCloudServiceProperties { param ( [parameter(mandatory=$False,HelpMessage='Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.)')] [string] $packageUrl, [parameter(mandatory=$False,HelpMessage='Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains. Possible Values are <br /><br />**Auto**<br /><br />**Manual** <br /><br />**Simultaneous**<br /><br /> If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.)')] [string] [ValidateSet('Auto', 'Manual', 'Simultaneous')] $upgradeMode, [parameter(mandatory=$False,HelpMessage='Describes a cloud service extension profile.)')] [CloudServiceExtensionProfile] $extensionProfile, [parameter(mandatory=$False,HelpMessage='Describes the OS profile for the cloud service.)')] [CloudServiceOsProfile] $osProfile, [parameter(mandatory=$False,HelpMessage='Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account. This is a write-only property and is not returned in GET calls.)')] [string] $configurationUrl, [parameter(mandatory=$False,HelpMessage='Network Profile for the cloud service.)')] [CloudServiceNetworkProfile] $networkProfile, [parameter(mandatory=$False,HelpMessage='Specifies the XML service configuration (.cscfg) for the cloud service.)')] [string] $configuration, [parameter(mandatory=$False,HelpMessage='(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`. If false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.)')] [bool] $startCloudService, [parameter(mandatory=$False,HelpMessage='(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively. The default value is `false`.)')] [bool] $allowModelOverride, [parameter(mandatory=$False,HelpMessage='Describes the role profile for the cloud service.)')] [CloudServiceRoleProfile] $roleProfile ) process { return $([CloudServiceProperties]$PSBoundParameters) } } function New-AzureNativeComputeCloudService { [Alias('azure_native_compute_cloudservice')] param ( [parameter(mandatory=$False,HelpMessage='Resource location.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Cloud service properties)')] [CloudServiceProperties] $properties, [parameter(mandatory=$False,HelpMessage='Name of the cloud service.)')] [string] $cloudServiceName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:CloudService") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'cloudServiceName') { $resource.properties["cloudServiceName"] = $cloudServiceName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class VirtualMachineScaleSetNetworkConfigurationDnsSettings { [string[]] $dnsServers } function New-AzureNativeTypeComputeVirtualMachineScaleSetNetworkConfigurationDnsSettings { param ( [parameter(mandatory=$False,HelpMessage='List of DNS servers IP addresses)')] [string[]] $dnsServers ) process { return $([VirtualMachineScaleSetNetworkConfigurationDnsSettings]$PSBoundParameters) } } class VirtualMachineScaleSetIpTag { [string] $tag [string] $ipTagType } function New-AzureNativeTypeComputeVirtualMachineScaleSetIpTag { param ( [parameter(mandatory=$False,HelpMessage='IP tag associated with the public IP. Example: SQL, Storage etc.)')] [string] $tag, [parameter(mandatory=$False,HelpMessage='IP tag type. Example: FirstPartyUsage.)')] [string] $ipTagType ) process { return $([VirtualMachineScaleSetIpTag]$PSBoundParameters) } } class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { [string] $domainNameLabel } function New-AzureNativeTypeComputeVirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { param ( [parameter(mandatory=$False,HelpMessage='The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created)')] [string] $domainNameLabel ) process { return $([VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings]$PSBoundParameters) } } class VirtualMachineScaleSetPublicIPAddressConfiguration { [PublicIPAddressSku] $sku [SubResource] $publicIPPrefix [string] $name [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [ArgumentCompletions('IPv4', 'IPv6')] [string] $publicIPAddressVersion [VirtualMachineScaleSetIpTag[]] $ipTags [VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings] $dnsSettings [int] $idleTimeoutInMinutes } function New-AzureNativeTypeComputeVirtualMachineScaleSetPublicIPAddressConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Describes the public IP Sku)')] [PublicIPAddressSku] $sku, [parameter(mandatory=$False,HelpMessage='The PublicIPPrefix from which to allocate publicIP addresses.)')] [SubResource] $publicIPPrefix, [parameter(mandatory=$False,HelpMessage='The publicIP address configuration name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specify what happens to the public IP when the VM is deleted)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ''IPv4'' and ''IPv6''.)')] [string] [ValidateSet('IPv4', 'IPv6')] $publicIPAddressVersion, [parameter(mandatory=$False,HelpMessage='The list of IP tags associated with the public IP address.)')] $ipTags, [parameter(mandatory=$False,HelpMessage='The dns settings to be applied on the publicIP addresses .)')] [VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings] $dnsSettings, [parameter(mandatory=$False,HelpMessage='The idle timeout of the public IP address.)')] [int] $idleTimeoutInMinutes ) process { return $([VirtualMachineScaleSetPublicIPAddressConfiguration]$PSBoundParameters) } } class ApiEntityReference { [string] $id } function New-AzureNativeTypeComputeApiEntityReference { param ( [parameter(mandatory=$False,HelpMessage='The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...)')] [string] $id ) process { return $([ApiEntityReference]$PSBoundParameters) } } class VirtualMachineScaleSetIPConfiguration { [SubResource[]] $applicationSecurityGroups [string] $id [SubResource[]] $loadBalancerInboundNatPools [VirtualMachineScaleSetPublicIPAddressConfiguration] $publicIPAddressConfiguration [bool] $primary [ApiEntityReference] $subnet [ArgumentCompletions('IPv4', 'IPv6')] [string] $privateIPAddressVersion [string] $name [SubResource[]] $loadBalancerBackendAddressPools [SubResource[]] $applicationGatewayBackendAddressPools } function New-AzureNativeTypeComputeVirtualMachineScaleSetIPConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Specifies an array of references to application security group.)')] $applicationSecurityGroups, [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.)')] $loadBalancerInboundNatPools, [parameter(mandatory=$False,HelpMessage='The publicIPAddressConfiguration.)')] [VirtualMachineScaleSetPublicIPAddressConfiguration] $publicIPAddressConfiguration, [parameter(mandatory=$False,HelpMessage='Specifies the primary network interface in case the virtual machine has more than 1 network interface.)')] [bool] $primary, [parameter(mandatory=$False,HelpMessage='Specifies the identifier of the subnet.)')] [ApiEntityReference] $subnet, [parameter(mandatory=$False,HelpMessage='Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: ''IPv4'' and ''IPv6''.)')] [string] [ValidateSet('IPv4', 'IPv6')] $privateIPAddressVersion, [parameter(mandatory=$False,HelpMessage='The IP configuration name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer.)')] $loadBalancerBackendAddressPools, [parameter(mandatory=$False,HelpMessage='Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway.)')] $applicationGatewayBackendAddressPools ) process { return $([VirtualMachineScaleSetIPConfiguration]$PSBoundParameters) } } class VirtualMachineScaleSetNetworkConfiguration { [bool] $enableAcceleratedNetworking [string] $id [bool] $enableFpga [VirtualMachineScaleSetNetworkConfigurationDnsSettings] $dnsSettings [bool] $primary [VirtualMachineScaleSetIPConfiguration[]] $ipConfigurations [string] $name [ArgumentCompletions('Delete', 'Detach')] [string] $deleteOption [SubResource] $networkSecurityGroup [bool] $enableIPForwarding } function New-AzureNativeTypeComputeVirtualMachineScaleSetNetworkConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether the network interface is accelerated networking-enabled.)')] [bool] $enableAcceleratedNetworking, [parameter(mandatory=$False,HelpMessage='Resource Id)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Specifies whether the network interface is FPGA networking-enabled.)')] [bool] $enableFpga, [parameter(mandatory=$False,HelpMessage='The dns settings to be applied on the network interfaces.)')] [VirtualMachineScaleSetNetworkConfigurationDnsSettings] $dnsSettings, [parameter(mandatory=$False,HelpMessage='Specifies the primary network interface in case the virtual machine has more than 1 network interface.)')] [bool] $primary, [parameter(mandatory=$False,HelpMessage='Specifies the IP configurations of the network interface.)')] $ipConfigurations, [parameter(mandatory=$False,HelpMessage='The network configuration name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specify what happens to the network interface when the VM is deleted)')] [string] [ValidateSet('Delete', 'Detach')] $deleteOption, [parameter(mandatory=$False,HelpMessage='The network security group.)')] [SubResource] $networkSecurityGroup, [parameter(mandatory=$False,HelpMessage='Whether IP forwarding enabled on this NIC.)')] [bool] $enableIPForwarding ) process { return $([VirtualMachineScaleSetNetworkConfiguration]$PSBoundParameters) } } class VirtualMachineScaleSetVMNetworkProfileConfiguration { [VirtualMachineScaleSetNetworkConfiguration[]] $networkInterfaceConfigurations } function New-AzureNativeTypeComputeVirtualMachineScaleSetVMNetworkProfileConfiguration { param ( [parameter(mandatory=$False,HelpMessage='The list of network configurations.)')] $networkInterfaceConfigurations ) process { return $([VirtualMachineScaleSetVMNetworkProfileConfiguration]$PSBoundParameters) } } class VirtualMachineScaleSetVMProtectionPolicy { [bool] $protectFromScaleIn [bool] $protectFromScaleSetActions } function New-AzureNativeTypeComputeVirtualMachineScaleSetVMProtectionPolicy { param ( [parameter(mandatory=$False,HelpMessage='Indicates that the virtual machine scale set VM shouldn''t be considered for deletion during a scale-in operation.)')] [bool] $protectFromScaleIn, [parameter(mandatory=$False,HelpMessage='Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.)')] [bool] $protectFromScaleSetActions ) process { return $([VirtualMachineScaleSetVMProtectionPolicy]$PSBoundParameters) } } function New-AzureNativeComputeVirtualMachineScaleSetVM { [Alias('azure_native_compute_virtualmachinescalesetvm')] param ( [parameter(mandatory=$False,HelpMessage='Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.)')] [Plan] $plan, [parameter(mandatory=$False,HelpMessage='Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.)')] [AdditionalCapabilities] $additionalCapabilities, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the Security related profile settings for the virtual machine.)')] [SecurityProfile] $securityProfile, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01)')] [string] $userData, [parameter(mandatory=$False,HelpMessage='Specifies the operating system settings for the virtual machine.)')] [OSProfile] $osProfile, [parameter(mandatory=$False,HelpMessage='Specifies the network profile configuration of the virtual machine.)')] [VirtualMachineScaleSetVMNetworkProfileConfiguration] $networkProfileConfiguration, [parameter(mandatory=$False,HelpMessage='Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). <br><br> For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates) <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.)')] [SubResource] $availabilitySet, [parameter(mandatory=$False,HelpMessage='Specifies the protection policy of the virtual machine.)')] [VirtualMachineScaleSetVMProtectionPolicy] $protectionPolicy, [parameter(mandatory=$False,HelpMessage='Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.)')] [DiagnosticsProfile] $diagnosticsProfile, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Specifies the storage settings for the virtual machine disks.)')] [StorageProfile] $storageProfile, [parameter(mandatory=$False,HelpMessage='The name of the VM scale set where the extension should be create or updated.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='Specifies the hardware settings for the virtual machine.)')] [HardwareProfile] $hardwareProfile, [parameter(mandatory=$False,HelpMessage='The instance ID of the virtual machine.)')] [string] $instanceId, [parameter(mandatory=$False,HelpMessage='Specifies the network interfaces of the virtual machine.)')] [NetworkProfile] $networkProfile, [parameter(mandatory=$False,HelpMessage='Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15)')] [string] $licenseType, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineScaleSetVM") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'additionalCapabilities') { $resource.properties["additionalCapabilities"] = $additionalCapabilities } if($PSBoundParameters.Keys -icontains 'securityProfile') { $resource.properties["securityProfile"] = $securityProfile } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'userData') { $resource.properties["userData"] = $userData } if($PSBoundParameters.Keys -icontains 'osProfile') { $resource.properties["osProfile"] = $osProfile } if($PSBoundParameters.Keys -icontains 'networkProfileConfiguration') { $resource.properties["networkProfileConfiguration"] = $networkProfileConfiguration } if($PSBoundParameters.Keys -icontains 'availabilitySet') { $resource.properties["availabilitySet"] = $availabilitySet } if($PSBoundParameters.Keys -icontains 'protectionPolicy') { $resource.properties["protectionPolicy"] = $protectionPolicy } if($PSBoundParameters.Keys -icontains 'diagnosticsProfile') { $resource.properties["diagnosticsProfile"] = $diagnosticsProfile } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'storageProfile') { $resource.properties["storageProfile"] = $storageProfile } if($PSBoundParameters.Keys -icontains 'hardwareProfile') { $resource.properties["hardwareProfile"] = $hardwareProfile } if($PSBoundParameters.Keys -icontains 'instanceId') { $resource.properties["instanceId"] = $instanceId } if($PSBoundParameters.Keys -icontains 'networkProfile') { $resource.properties["networkProfile"] = $networkProfile } if($PSBoundParameters.Keys -icontains 'licenseType') { $resource.properties["licenseType"] = $licenseType } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeVirtualMachineRunCommandByVirtualMachine { [Alias('azure_native_compute_virtualmachineruncommandbyvirtualmachine')] param ( [parameter(mandatory=$False,HelpMessage='Specifies the Azure storage blob where script error stream will be uploaded.)')] [string] $errorBlobUri, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the user account password on the VM when executing the run command.)')] [string] $runAsPassword, [parameter(mandatory=$False,HelpMessage='Specifies the user account on the VM when executing the run command.)')] [string] $runAsUser, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The timeout in seconds to execute the run command.)')] [int] $timeoutInSeconds, [parameter(mandatory=$False,HelpMessage='The parameters used by the script.)')] $parameters, [parameter(mandatory=$False,HelpMessage='Specifies the Azure storage blob where script output stream will be uploaded.)')] [string] $outputBlobUri, [parameter(mandatory=$False,HelpMessage='The source of the run command script.)')] [VirtualMachineRunCommandScriptSource] $source, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine where the run command should be created or updated.)')] [string] $vmName, [parameter(mandatory=$False,HelpMessage='Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete.)')] [bool] $asyncExecution, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine run command.)')] [string] $runCommandName, [parameter(mandatory=$False,HelpMessage='The parameters used by the script.)')] $protectedParameters, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineRunCommandByVirtualMachine") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["vmName"] = $vmName if($PSBoundParameters.Keys -icontains 'errorBlobUri') { $resource.properties["errorBlobUri"] = $errorBlobUri } if($PSBoundParameters.Keys -icontains 'runAsPassword') { $resource.properties["runAsPassword"] = $runAsPassword } if($PSBoundParameters.Keys -icontains 'runAsUser') { $resource.properties["runAsUser"] = $runAsUser } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'timeoutInSeconds') { $resource.properties["timeoutInSeconds"] = $timeoutInSeconds } if($PSBoundParameters.Keys -icontains 'parameters') { $resource.properties["parameters"] = $parameters } if($PSBoundParameters.Keys -icontains 'outputBlobUri') { $resource.properties["outputBlobUri"] = $outputBlobUri } if($PSBoundParameters.Keys -icontains 'source') { $resource.properties["source"] = $source } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'asyncExecution') { $resource.properties["asyncExecution"] = $asyncExecution } if($PSBoundParameters.Keys -icontains 'runCommandName') { $resource.properties["runCommandName"] = $runCommandName } if($PSBoundParameters.Keys -icontains 'protectedParameters') { $resource.properties["protectedParameters"] = $protectedParameters } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeGalleryApplication { [Alias('azure_native_compute_galleryapplication')] param ( [parameter(mandatory=$False,HelpMessage='The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.)')] [string] $galleryApplicationName, [parameter(mandatory=$False,HelpMessage='The name of the Shared Application Gallery in which the Application Definition is to be created.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The Eula agreement for the gallery Application Definition.)')] [string] $eula, [parameter(mandatory=$False,HelpMessage='This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**)')] $supportedOSType, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The privacy statement uri.)')] [string] $privacyStatementUri, [parameter(mandatory=$False,HelpMessage='The release note uri.)')] [string] $releaseNoteUri, [parameter(mandatory=$False,HelpMessage='The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.)')] [string] $endOfLifeDate, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The description of this gallery Application Definition resource. This property is updatable.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:GalleryApplication") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["galleryName"] = $galleryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["supportedOSType"] = $supportedOSType if($PSBoundParameters.Keys -icontains 'galleryApplicationName') { $resource.properties["galleryApplicationName"] = $galleryApplicationName } if($PSBoundParameters.Keys -icontains 'eula') { $resource.properties["eula"] = $eula } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'privacyStatementUri') { $resource.properties["privacyStatementUri"] = $privacyStatementUri } if($PSBoundParameters.Keys -icontains 'releaseNoteUri') { $resource.properties["releaseNoteUri"] = $releaseNoteUri } if($PSBoundParameters.Keys -icontains 'endOfLifeDate') { $resource.properties["endOfLifeDate"] = $endOfLifeDate } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } $global:pulumiresources += $resource return $resource } } class KeyForDiskEncryptionSet { [string] $keyUrl [SourceVault] $sourceVault } function New-AzureNativeTypeComputeKeyForDiskEncryptionSet { param ( [parameter(mandatory=$False,HelpMessage='Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.)')] [string] $keyUrl, [parameter(mandatory=$False,HelpMessage='Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.)')] [SourceVault] $sourceVault ) process { return $([KeyForDiskEncryptionSet]$PSBoundParameters) } } class EncryptionSetIdentity { [ArgumentCompletions('SystemAssigned', 'None')] [string] $type } function New-AzureNativeTypeComputeEncryptionSetIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys.)')] [string] [ValidateSet('SystemAssigned', 'None')] $type ) process { return $([EncryptionSetIdentity]$PSBoundParameters) } } function New-AzureNativeComputeDiskEncryptionSet { [Alias('azure_native_compute_diskencryptionset')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The key vault key which is currently used by this disk encryption set.)')] [KeyForDiskEncryptionSet] $activeKey, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.)')] [bool] $rotationToLatestKeyVersionEnabled, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the disk encryption set that is being created. The name can''t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskEncryptionSetName, [parameter(mandatory=$False,HelpMessage='The type of key used to encrypt the data of the disk.)')] [string] [ValidateSet('EncryptionAtRestWithCustomerKey', 'EncryptionAtRestWithPlatformAndCustomerKeys')] $encryptionType, [parameter(mandatory=$False,HelpMessage='The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.)')] [EncryptionSetIdentity] $identity, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:DiskEncryptionSet") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'activeKey') { $resource.properties["activeKey"] = $activeKey } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'rotationToLatestKeyVersionEnabled') { $resource.properties["rotationToLatestKeyVersionEnabled"] = $rotationToLatestKeyVersionEnabled } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'diskEncryptionSetName') { $resource.properties["diskEncryptionSetName"] = $diskEncryptionSetName } if($PSBoundParameters.Keys -icontains 'encryptionType') { $resource.properties["encryptionType"] = $encryptionType } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } $global:pulumiresources += $resource return $resource } } class VirtualMachineExtensionInstanceView { [string] $type [InstanceViewStatus[]] $substatuses [string] $typeHandlerVersion [string] $name [InstanceViewStatus[]] $statuses } function New-AzureNativeTypeComputeVirtualMachineExtensionInstanceView { param ( [parameter(mandatory=$False,HelpMessage='Specifies the type of the extension; an example is "CustomScriptExtension".)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The resource status information.)')] $substatuses, [parameter(mandatory=$False,HelpMessage='Specifies the version of the script handler.)')] [string] $typeHandlerVersion, [parameter(mandatory=$False,HelpMessage='The virtual machine extension name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The resource status information.)')] $statuses ) process { return $([VirtualMachineExtensionInstanceView]$PSBoundParameters) } } function New-AzureNativeComputeVirtualMachineScaleSetVMExtension { [Alias('azure_native_compute_virtualmachinescalesetvmextension')] param ( [parameter(mandatory=$False,HelpMessage='The virtual machine extension instance view.)')] [VirtualMachineExtensionInstanceView] $instanceView, [parameter(mandatory=$False,HelpMessage='Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.)')] [bool] $enableAutomaticUpgrade, [parameter(mandatory=$False,HelpMessage='The instance ID of the virtual machine.)')] [string] $instanceId, [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='How the extension handler should be forced to update even if the extension configuration has not changed.)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='Json formatted public settings for the extension.)')] $settings, [parameter(mandatory=$False,HelpMessage='The name of the VM scale set.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine extension.)')] [string] $vmExtensionName, [parameter(mandatory=$False,HelpMessage='The name of the extension handler publisher.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the version of the script handler.)')] [string] $typeHandlerVersion, [parameter(mandatory=$False,HelpMessage='Specifies the type of the extension; an example is "CustomScriptExtension".)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.)')] $protectedSettings, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineScaleSetVMExtension") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["instanceId"] = $instanceId $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["vmScaleSetName"] = $vmScaleSetName if($PSBoundParameters.Keys -icontains 'instanceView') { $resource.properties["instanceView"] = $instanceView } if($PSBoundParameters.Keys -icontains 'enableAutomaticUpgrade') { $resource.properties["enableAutomaticUpgrade"] = $enableAutomaticUpgrade } if($PSBoundParameters.Keys -icontains 'autoUpgradeMinorVersion') { $resource.properties["autoUpgradeMinorVersion"] = $autoUpgradeMinorVersion } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } if($PSBoundParameters.Keys -icontains 'settings') { $resource.properties["settings"] = $settings } if($PSBoundParameters.Keys -icontains 'vmExtensionName') { $resource.properties["vmExtensionName"] = $vmExtensionName } if($PSBoundParameters.Keys -icontains 'publisher') { $resource.properties["publisher"] = $publisher } if($PSBoundParameters.Keys -icontains 'typeHandlerVersion') { $resource.properties["typeHandlerVersion"] = $typeHandlerVersion } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'protectedSettings') { $resource.properties["protectedSettings"] = $protectedSettings } $global:pulumiresources += $resource return $resource } } class RestorePointCollectionSourceProperties { [string] $id } function New-AzureNativeTypeComputeRestorePointCollectionSourceProperties { param ( [parameter(mandatory=$False,HelpMessage='Resource Id of the source resource used to create this restore point collection)')] [string] $id ) process { return $([RestorePointCollectionSourceProperties]$PSBoundParameters) } } function New-AzureNativeComputeRestorePointCollection { [Alias('azure_native_compute_restorepointcollection')] param ( [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The properties of the source resource that this restore point collection is created from.)')] [RestorePointCollectionSourceProperties] $source, [parameter(mandatory=$False,HelpMessage='The name of the restore point collection.)')] [string] $restorePointCollectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:RestorePointCollection") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'source') { $resource.properties["source"] = $source } if($PSBoundParameters.Keys -icontains 'restorePointCollectionName') { $resource.properties["restorePointCollectionName"] = $restorePointCollectionName } $global:pulumiresources += $resource return $resource } } class Sku { [string] $tier [string] $name [int] $capacity } function New-AzureNativeTypeComputeSku { param ( [parameter(mandatory=$False,HelpMessage='Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**)')] [string] $tier, [parameter(mandatory=$False,HelpMessage='The sku name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the number of virtual machines in the scale set.)')] [int] $capacity ) process { return $([Sku]$PSBoundParameters) } } function New-AzureNativeComputeDedicatedHost { [Alias('azure_native_compute_dedicatedhost')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to ''true'' when not provided.)')] [bool] $autoReplaceOnFailure, [parameter(mandatory=$False,HelpMessage='The name of the dedicated host group.)')] [string] $hostGroupName, [parameter(mandatory=$False,HelpMessage='SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='Specifies the software license type that will be applied to the VMs deployed on the dedicated host. <br><br> Possible values are: <br><br> **None** <br><br> **Windows_Server_Hybrid** <br><br> **Windows_Server_Perpetual** <br><br> Default: **None**)')] $licenseType, [parameter(mandatory=$False,HelpMessage='The name of the dedicated host .)')] [string] $hostName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Fault domain of the dedicated host within a dedicated host group.)')] [int] $platformFaultDomain, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:DedicatedHost") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["hostGroupName"] = $hostGroupName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["sku"] = $sku if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'autoReplaceOnFailure') { $resource.properties["autoReplaceOnFailure"] = $autoReplaceOnFailure } if($PSBoundParameters.Keys -icontains 'licenseType') { $resource.properties["licenseType"] = $licenseType } if($PSBoundParameters.Keys -icontains 'hostName') { $resource.properties["hostName"] = $hostName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'platformFaultDomain') { $resource.properties["platformFaultDomain"] = $platformFaultDomain } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeVirtualMachineExtension { [Alias('azure_native_compute_virtualmachineextension')] param ( [parameter(mandatory=$False,HelpMessage='The virtual machine extension instance view.)')] [VirtualMachineExtensionInstanceView] $instanceView, [parameter(mandatory=$False,HelpMessage='Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.)')] [bool] $enableAutomaticUpgrade, [parameter(mandatory=$False,HelpMessage='The name of the extension handler publisher.)')] [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='How the extension handler should be forced to update even if the extension configuration has not changed.)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Json formatted public settings for the extension.)')] $settings, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine extension.)')] [string] $vmExtensionName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the virtual machine where the extension should be created or updated.)')] [string] $vmName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the version of the script handler.)')] [string] $typeHandlerVersion, [parameter(mandatory=$False,HelpMessage='Specifies the type of the extension; an example is "CustomScriptExtension".)')] [string] $type, [parameter(mandatory=$False,HelpMessage='The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.)')] $protectedSettings, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineExtension") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["vmName"] = $vmName if($PSBoundParameters.Keys -icontains 'instanceView') { $resource.properties["instanceView"] = $instanceView } if($PSBoundParameters.Keys -icontains 'enableAutomaticUpgrade') { $resource.properties["enableAutomaticUpgrade"] = $enableAutomaticUpgrade } if($PSBoundParameters.Keys -icontains 'publisher') { $resource.properties["publisher"] = $publisher } if($PSBoundParameters.Keys -icontains 'autoUpgradeMinorVersion') { $resource.properties["autoUpgradeMinorVersion"] = $autoUpgradeMinorVersion } if($PSBoundParameters.Keys -icontains 'forceUpdateTag') { $resource.properties["forceUpdateTag"] = $forceUpdateTag } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'settings') { $resource.properties["settings"] = $settings } if($PSBoundParameters.Keys -icontains 'vmExtensionName') { $resource.properties["vmExtensionName"] = $vmExtensionName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'typeHandlerVersion') { $resource.properties["typeHandlerVersion"] = $typeHandlerVersion } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'protectedSettings') { $resource.properties["protectedSettings"] = $protectedSettings } $global:pulumiresources += $resource return $resource } } class PrivateLinkServiceConnectionState { [string] $actionsRequired [string] $description [ArgumentCompletions('Pending', 'Approved', 'Rejected')] [string] $status } function New-AzureNativeTypeComputePrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] $actionsRequired, [parameter(mandatory=$False,HelpMessage='The reason for approval/rejection of the connection.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.)')] [string] [ValidateSet('Pending', 'Approved', 'Rejected')] $status ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } function New-AzureNativeComputeDiskAccessAPrivateEndpointConnection { [Alias('azure_native_compute_diskaccessaprivateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between DiskAccess and Virtual Network.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the disk access resource that is being created. The name can''t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskAccessName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:DiskAccessAPrivateEndpointConnection") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["diskAccessName"] = $diskAccessName $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } $global:pulumiresources += $resource return $resource } } class Disallowed { [string[]] $diskTypes } function New-AzureNativeTypeComputeDisallowed { param ( [parameter(mandatory=$False,HelpMessage='A list of disk types.)')] [string[]] $diskTypes ) process { return $([Disallowed]$PSBoundParameters) } } class GalleryImageIdentifier { [string] $publisher [string] $offer [string] $sku } function New-AzureNativeTypeComputeGalleryImageIdentifier { param ( [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition publisher.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition offer.)')] [string] $offer, [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition SKU.)')] [string] $sku ) process { return $([GalleryImageIdentifier]$PSBoundParameters) } } class ImagePurchasePlan { [string] $publisher [string] $name [string] $product } function New-AzureNativeTypeComputeImagePurchasePlan { param ( [parameter(mandatory=$False,HelpMessage='The publisher ID.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The plan ID.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The product ID.)')] [string] $product ) process { return $([ImagePurchasePlan]$PSBoundParameters) } } class ResourceRange { [int] $max [int] $min } function New-AzureNativeTypeComputeResourceRange { param ( [parameter(mandatory=$False,HelpMessage='The maximum number of the resource.)')] [int] $max, [parameter(mandatory=$False,HelpMessage='The minimum number of the resource.)')] [int] $min ) process { return $([ResourceRange]$PSBoundParameters) } } class RecommendedMachineConfiguration { [ResourceRange] $vCPUs [ResourceRange] $memory } function New-AzureNativeTypeComputeRecommendedMachineConfiguration { param ( [parameter(mandatory=$False,HelpMessage='Describes the resource range.)')] [ResourceRange] $vCPUs, [parameter(mandatory=$False,HelpMessage='Describes the resource range.)')] [ResourceRange] $memory ) process { return $([RecommendedMachineConfiguration]$PSBoundParameters) } } function New-AzureNativeComputeGalleryImage { [Alias('azure_native_compute_galleryimage')] param ( [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.)')] [string] $galleryImageName, [parameter(mandatory=$False,HelpMessage='This property allows the user to specify whether the virtual machines created under this image are ''Generalized'' or ''Specialized''.)')] $osState, [parameter(mandatory=$False,HelpMessage='Describes the disallowed disk types.)')] [Disallowed] $disallowed, [parameter(mandatory=$False,HelpMessage='This is the gallery image definition identifier.)')] [GalleryImageIdentifier] $identifier, [parameter(mandatory=$False,HelpMessage='Describes the gallery image definition purchase plan. This is used by marketplace images.)')] [ImagePurchasePlan] $purchasePlan, [parameter(mandatory=$False,HelpMessage='The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.)')] [string] $endOfLifeDate, [parameter(mandatory=$False,HelpMessage='The description of this gallery image definition resource. This property is updatable.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The Eula agreement for the gallery image definition.)')] [string] $eula, [parameter(mandatory=$False,HelpMessage='The release note uri.)')] [string] $releaseNoteUri, [parameter(mandatory=$False,HelpMessage='A list of gallery image features.)')] $features, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The privacy statement uri.)')] [string] $privacyStatementUri, [parameter(mandatory=$False,HelpMessage='The hypervisor generation of the Virtual Machine. Applicable to OS disks only.)')] [string] [ValidateSet('V1', 'V2')] $hyperVGeneration, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the Shared Image Gallery in which the Image Definition is to be created.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**)')] $osType, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.)')] [RecommendedMachineConfiguration] $recommended, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:GalleryImage") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["galleryName"] = $galleryName $resource.properties["identifier"] = $identifier $resource.properties["osState"] = $osState $resource.properties["osType"] = $osType $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'galleryImageName') { $resource.properties["galleryImageName"] = $galleryImageName } if($PSBoundParameters.Keys -icontains 'disallowed') { $resource.properties["disallowed"] = $disallowed } if($PSBoundParameters.Keys -icontains 'purchasePlan') { $resource.properties["purchasePlan"] = $purchasePlan } if($PSBoundParameters.Keys -icontains 'endOfLifeDate') { $resource.properties["endOfLifeDate"] = $endOfLifeDate } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'eula') { $resource.properties["eula"] = $eula } if($PSBoundParameters.Keys -icontains 'releaseNoteUri') { $resource.properties["releaseNoteUri"] = $releaseNoteUri } if($PSBoundParameters.Keys -icontains 'features') { $resource.properties["features"] = $features } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'privacyStatementUri') { $resource.properties["privacyStatementUri"] = $privacyStatementUri } if($PSBoundParameters.Keys -icontains 'hyperVGeneration') { $resource.properties["hyperVGeneration"] = $hyperVGeneration } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'recommended') { $resource.properties["recommended"] = $recommended } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeAvailabilitySet { [Alias('azure_native_compute_availabilityset')] param ( [parameter(mandatory=$False,HelpMessage='Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01.)')] [SubResource] $proximityPlacementGroup, [parameter(mandatory=$False,HelpMessage='The name of the availability set.)')] [string] $availabilitySetName, [parameter(mandatory=$False,HelpMessage='Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use ''Aligned'' for virtual machines with managed disks and ''Classic'' for virtual machines with unmanaged disks. Default value is ''Classic''.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Fault Domain count.)')] [int] $platformFaultDomainCount, [parameter(mandatory=$False,HelpMessage='Update Domain count.)')] [int] $platformUpdateDomainCount, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='A list of references to all virtual machines in the availability set.)')] $virtualMachines, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:AvailabilitySet") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'proximityPlacementGroup') { $resource.properties["proximityPlacementGroup"] = $proximityPlacementGroup } if($PSBoundParameters.Keys -icontains 'availabilitySetName') { $resource.properties["availabilitySetName"] = $availabilitySetName } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'platformFaultDomainCount') { $resource.properties["platformFaultDomainCount"] = $platformFaultDomainCount } if($PSBoundParameters.Keys -icontains 'platformUpdateDomainCount') { $resource.properties["platformUpdateDomainCount"] = $platformUpdateDomainCount } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'virtualMachines') { $resource.properties["virtualMachines"] = $virtualMachines } $global:pulumiresources += $resource return $resource } } function New-AzureNativeComputeCapacityReservation { [Alias('azure_native_compute_capacityreservation')] param ( [parameter(mandatory=$False,HelpMessage='The name of the capacity reservation.)')] [string] $capacityReservationName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the capacity reservation group.)')] [string] $capacityReservationGroupName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone.)')] [string[]] $zones, [parameter(mandatory=$False,HelpMessage='SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called ''CapacityReservationSupported'' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:CapacityReservation") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["capacityReservationGroupName"] = $capacityReservationGroupName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["sku"] = $sku if($PSBoundParameters.Keys -icontains 'capacityReservationName') { $resource.properties["capacityReservationName"] = $capacityReservationName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'zones') { $resource.properties["zones"] = $zones } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class VirtualMachineScaleSetManagedDiskParameters { [ArgumentCompletions('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] [string] $storageAccountType [DiskEncryptionSetParameters] $diskEncryptionSet } function New-AzureNativeTypeComputeVirtualMachineScaleSetManagedDiskParameters { param ( [parameter(mandatory=$False,HelpMessage='Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.)')] [string] [ValidateSet('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='Specifies the customer managed disk encryption set resource id for the managed disk.)')] [DiskEncryptionSetParameters] $diskEncryptionSet ) process { return $([VirtualMachineScaleSetManagedDiskParameters]$PSBoundParameters) } } class VirtualMachineScaleSetDataDisk { [int] $lun [string] $name [int] $diskMBpsReadWrite [int] $diskIOPSReadWrite [ArgumentCompletions('FromImage', 'Empty', 'Attach')] [string] $createOption [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [int] $diskSizeGB [bool] $writeAcceleratorEnabled [VirtualMachineScaleSetManagedDiskParameters] $managedDisk } function New-AzureNativeTypeComputeVirtualMachineScaleSetDataDisk { param ( [parameter(mandatory=$False,HelpMessage='Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.)')] [int] $lun, [parameter(mandatory=$False,HelpMessage='The disk name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.)')] [int] $diskMBpsReadWrite, [parameter(mandatory=$False,HelpMessage='Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.)')] [int] $diskIOPSReadWrite, [parameter(mandatory=$False,HelpMessage='The create option.)')] [string] [ValidateSet('FromImage', 'Empty', 'Attach')] $createOption, [parameter(mandatory=$False,HelpMessage='Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**)')] $caching, [parameter(mandatory=$False,HelpMessage='Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='Specifies whether writeAccelerator should be enabled or disabled on the disk.)')] [bool] $writeAcceleratorEnabled, [parameter(mandatory=$False,HelpMessage='The managed disk parameters.)')] [VirtualMachineScaleSetManagedDiskParameters] $managedDisk ) process { return $([VirtualMachineScaleSetDataDisk]$PSBoundParameters) } } class VirtualMachineScaleSetOSDisk { [string] $name [string[]] $vhdContainers [VirtualMachineScaleSetManagedDiskParameters] $managedDisk [ArgumentCompletions('Windows', 'Linux')] [object] $osType [ArgumentCompletions('FromImage', 'Empty', 'Attach')] [string] $createOption [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $caching [int] $diskSizeGB [bool] $writeAcceleratorEnabled [DiffDiskSettings] $diffDiskSettings [VirtualHardDisk] $image } function New-AzureNativeTypeComputeVirtualMachineScaleSetOSDisk { param ( [parameter(mandatory=$False,HelpMessage='The disk name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Specifies the container urls that are used to store operating system disks for the scale set.)')] [string[]] $vhdContainers, [parameter(mandatory=$False,HelpMessage='The managed disk parameters.)')] [VirtualMachineScaleSetManagedDiskParameters] $managedDisk, [parameter(mandatory=$False,HelpMessage='This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**)')] $osType, [parameter(mandatory=$False,HelpMessage='Specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** \u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described.)')] [string] [ValidateSet('FromImage', 'Empty', 'Attach')] $createOption, [parameter(mandatory=$False,HelpMessage='Specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**)')] $caching, [parameter(mandatory=$False,HelpMessage='Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='Specifies whether writeAccelerator should be enabled or disabled on the disk.)')] [bool] $writeAcceleratorEnabled, [parameter(mandatory=$False,HelpMessage='Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.)')] [DiffDiskSettings] $diffDiskSettings, [parameter(mandatory=$False,HelpMessage='Specifies information about the unmanaged user image to base the scale set on.)')] [VirtualHardDisk] $image ) process { return $([VirtualMachineScaleSetOSDisk]$PSBoundParameters) } } class VirtualMachineScaleSetStorageProfile { [VirtualMachineScaleSetDataDisk[]] $dataDisks [ImageReference] $imageReference [VirtualMachineScaleSetOSDisk] $osDisk } function New-AzureNativeTypeComputeVirtualMachineScaleSetStorageProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).)')] $dataDisks, [parameter(mandatory=$False,HelpMessage='Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.)')] [ImageReference] $imageReference, [parameter(mandatory=$False,HelpMessage='Specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).)')] [VirtualMachineScaleSetOSDisk] $osDisk ) process { return $([VirtualMachineScaleSetStorageProfile]$PSBoundParameters) } } class VirtualMachineScaleSetExtension { [bool] $enableAutomaticUpgrade [string] $forceUpdateTag [string] $name [string] $publisher [object] $protectedSettings [string[]] $provisionAfterExtensions [string] $typeHandlerVersion [bool] $autoUpgradeMinorVersion [string] $type [object] $settings } function New-AzureNativeTypeComputeVirtualMachineScaleSetExtension { param ( [parameter(mandatory=$False,HelpMessage='Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.)')] [bool] $enableAutomaticUpgrade, [parameter(mandatory=$False,HelpMessage='If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.)')] [string] $forceUpdateTag, [parameter(mandatory=$False,HelpMessage='The name of the extension.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The name of the extension handler publisher.)')] [string] $publisher, [parameter(mandatory=$False,HelpMessage='The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.)')] $protectedSettings, [parameter(mandatory=$False,HelpMessage='Collection of extension names after which this extension needs to be provisioned.)')] [string[]] $provisionAfterExtensions, [parameter(mandatory=$False,HelpMessage='Specifies the version of the script handler.)')] [string] $typeHandlerVersion, [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='Specifies the type of the extension; an example is "CustomScriptExtension".)')] [string] $type, [parameter(mandatory=$False,HelpMessage='Json formatted public settings for the extension.)')] $settings ) process { return $([VirtualMachineScaleSetExtension]$PSBoundParameters) } } class VirtualMachineScaleSetExtensionProfile { [string] $extensionsTimeBudget [VirtualMachineScaleSetExtension[]] $extensions } function New-AzureNativeTypeComputeVirtualMachineScaleSetExtensionProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). <br><br> Minimum api-version: 2020-06-01)')] [string] $extensionsTimeBudget, [parameter(mandatory=$False,HelpMessage='The virtual machine scale set child extension resources.)')] $extensions ) process { return $([VirtualMachineScaleSetExtensionProfile]$PSBoundParameters) } } class VirtualMachineScaleSetNetworkProfile { [ApiEntityReference] $healthProbe [ArgumentCompletions('2020-11-01')] [string] $networkApiVersion [VirtualMachineScaleSetNetworkConfiguration[]] $networkInterfaceConfigurations } function New-AzureNativeTypeComputeVirtualMachineScaleSetNetworkProfile { param ( [parameter(mandatory=$False,HelpMessage='A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}''.)')] [ApiEntityReference] $healthProbe, [parameter(mandatory=$False,HelpMessage='specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode ''Flexible'')')] [string] [ValidateSet('2020-11-01')] $networkApiVersion, [parameter(mandatory=$False,HelpMessage='The list of network configurations.)')] $networkInterfaceConfigurations ) process { return $([VirtualMachineScaleSetNetworkProfile]$PSBoundParameters) } } class VirtualMachineScaleSetOSProfile { [string] $adminUsername [VaultSecretGroup[]] $secrets [string] $customData [LinuxConfiguration] $linuxConfiguration [WindowsConfiguration] $windowsConfiguration [string] $computerNamePrefix [string] $adminPassword } function New-AzureNativeTypeComputeVirtualMachineScaleSetOSProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the name of the administrator account. <br><br> **Windows-only restriction:** Cannot end in "." <br><br> **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters)')] [string] $adminUsername, [parameter(mandatory=$False,HelpMessage='Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).)')] $secrets, [parameter(mandatory=$False,HelpMessage='Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. <br><br> For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init))')] [string] $customData, [parameter(mandatory=$False,HelpMessage='Specifies the Linux operating system settings on the virtual machine. <br><br>For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).)')] [LinuxConfiguration] $linuxConfiguration, [parameter(mandatory=$False,HelpMessage='Specifies Windows operating system settings on the virtual machine.)')] [WindowsConfiguration] $windowsConfiguration, [parameter(mandatory=$False,HelpMessage='Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long.)')] [string] $computerNamePrefix, [parameter(mandatory=$False,HelpMessage='Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection))')] [string] $adminPassword ) process { return $([VirtualMachineScaleSetOSProfile]$PSBoundParameters) } } class VirtualMachineScaleSetVMProfile { [ScheduledEventsProfile] $scheduledEventsProfile [VirtualMachineScaleSetStorageProfile] $storageProfile [BillingProfile] $billingProfile [ArgumentCompletions('Deallocate', 'Delete')] [string] $evictionPolicy [VirtualMachineScaleSetExtensionProfile] $extensionProfile [string] $licenseType [VirtualMachineScaleSetNetworkProfile] $networkProfile [string] $userData [VirtualMachineScaleSetOSProfile] $osProfile [ArgumentCompletions('Regular', 'Low', 'Spot')] [string] $priority [DiagnosticsProfile] $diagnosticsProfile [SecurityProfile] $securityProfile } function New-AzureNativeTypeComputeVirtualMachineScaleSetVMProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies Scheduled Event related configurations.)')] [ScheduledEventsProfile] $scheduledEventsProfile, [parameter(mandatory=$False,HelpMessage='Specifies the storage settings for the virtual machine disks.)')] [VirtualMachineScaleSetStorageProfile] $storageProfile, [parameter(mandatory=$False,HelpMessage='Specifies the billing related details of a Azure Spot VMSS. <br><br>Minimum api-version: 2019-03-01.)')] [BillingProfile] $billingProfile, [parameter(mandatory=$False,HelpMessage='Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. <br><br>For Azure Spot virtual machines, both ''Deallocate'' and ''Delete'' are supported and the minimum api-version is 2019-03-01. <br><br>For Azure Spot scale sets, both ''Deallocate'' and ''Delete'' are supported and the minimum api-version is 2017-10-30-preview.)')] [string] [ValidateSet('Deallocate', 'Delete')] $evictionPolicy, [parameter(mandatory=$False,HelpMessage='Specifies a collection of settings for extensions installed on virtual machines in the scale set.)')] [VirtualMachineScaleSetExtensionProfile] $extensionProfile, [parameter(mandatory=$False,HelpMessage='Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15)')] [string] $licenseType, [parameter(mandatory=$False,HelpMessage='Specifies properties of the network interfaces of the virtual machines in the scale set.)')] [VirtualMachineScaleSetNetworkProfile] $networkProfile, [parameter(mandatory=$False,HelpMessage='UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01)')] [string] $userData, [parameter(mandatory=$False,HelpMessage='Specifies the operating system settings for the virtual machines in the scale set.)')] [VirtualMachineScaleSetOSProfile] $osProfile, [parameter(mandatory=$False,HelpMessage='Specifies the priority for the virtual machines in the scale set. <br><br>Minimum api-version: 2017-10-30-preview)')] [string] [ValidateSet('Regular', 'Low', 'Spot')] $priority, [parameter(mandatory=$False,HelpMessage='Specifies the boot diagnostic settings state. <br><br>Minimum api-version: 2015-06-15.)')] [DiagnosticsProfile] $diagnosticsProfile, [parameter(mandatory=$False,HelpMessage='Specifies the Security related profile settings for the virtual machines in the scale set.)')] [SecurityProfile] $securityProfile ) process { return $([VirtualMachineScaleSetVMProfile]$PSBoundParameters) } } class RollingUpgradePolicy { [int] $maxBatchInstancePercent [int] $maxUnhealthyUpgradedInstancePercent [bool] $enableCrossZoneUpgrade [int] $maxUnhealthyInstancePercent [string] $pauseTimeBetweenBatches [bool] $prioritizeUnhealthyInstances } function New-AzureNativeTypeComputeRollingUpgradePolicy { param ( [parameter(mandatory=$False,HelpMessage='The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.)')] [int] $maxBatchInstancePercent, [parameter(mandatory=$False,HelpMessage='The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.)')] [int] $maxUnhealthyUpgradedInstancePercent, [parameter(mandatory=$False,HelpMessage='Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size.)')] [bool] $enableCrossZoneUpgrade, [parameter(mandatory=$False,HelpMessage='The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.)')] [int] $maxUnhealthyInstancePercent, [parameter(mandatory=$False,HelpMessage='The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).)')] [string] $pauseTimeBetweenBatches, [parameter(mandatory=$False,HelpMessage='Upgrade all unhealthy instances in a scale set before any healthy instances.)')] [bool] $prioritizeUnhealthyInstances ) process { return $([RollingUpgradePolicy]$PSBoundParameters) } } class AutomaticOSUpgradePolicy { [bool] $enableAutomaticOSUpgrade [bool] $disableAutomaticRollback } function New-AzureNativeTypeComputeAutomaticOSUpgradePolicy { param ( [parameter(mandatory=$False,HelpMessage='Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. <br><br> If this is set to true for Windows based scale sets, [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet) is automatically set to false and cannot be set to true.)')] [bool] $enableAutomaticOSUpgrade, [parameter(mandatory=$False,HelpMessage='Whether OS image rollback feature should be disabled. Default value is false.)')] [bool] $disableAutomaticRollback ) process { return $([AutomaticOSUpgradePolicy]$PSBoundParameters) } } class UpgradePolicy { [ArgumentCompletions('Automatic', 'Manual', 'Rolling')] [object] $mode [RollingUpgradePolicy] $rollingUpgradePolicy [AutomaticOSUpgradePolicy] $automaticOSUpgradePolicy } function New-AzureNativeTypeComputeUpgradePolicy { param ( [parameter(mandatory=$False,HelpMessage='Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time.)')] $mode, [parameter(mandatory=$False,HelpMessage='The configuration parameters used while performing a rolling upgrade.)')] [RollingUpgradePolicy] $rollingUpgradePolicy, [parameter(mandatory=$False,HelpMessage='Configuration parameters used for performing automatic OS Upgrade.)')] [AutomaticOSUpgradePolicy] $automaticOSUpgradePolicy ) process { return $([UpgradePolicy]$PSBoundParameters) } } class AutomaticRepairsPolicy { [bool] $enabled [string] $gracePeriod } function New-AzureNativeTypeComputeAutomaticRepairsPolicy { param ( [parameter(mandatory=$False,HelpMessage='Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.)')] [bool] $enabled, [parameter(mandatory=$False,HelpMessage='The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 30 minutes (PT30M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).)')] [string] $gracePeriod ) process { return $([AutomaticRepairsPolicy]$PSBoundParameters) } } class ScaleInPolicy { [string[]] $rules } function New-AzureNativeTypeComputeScaleInPolicy { param ( [parameter(mandatory=$False,HelpMessage='The rules to be followed when scaling-in a virtual machine scale set. <br><br> Possible values are: <br><br> **Default** When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not protected from scale-in. <br><br> **OldestVM** When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal. <br><br> **NewestVM** When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal. <br><br>)')] $rules ) process { return $([ScaleInPolicy]$PSBoundParameters) } } class VirtualMachineScaleSetIdentity { [ArgumentCompletions('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')] [object] $type [object] $userAssignedIdentities } function New-AzureNativeTypeComputeVirtualMachineScaleSetIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of identity used for the virtual machine scale set. The type ''SystemAssigned, UserAssigned'' includes both an implicitly created identity and a set of user assigned identities. The type ''None'' will remove any identities from the virtual machine scale set.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the virtual machine scale set. 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 $([VirtualMachineScaleSetIdentity]$PSBoundParameters) } } function New-AzureNativeComputeVirtualMachineScaleSet { [Alias('azure_native_compute_virtualmachinescaleset')] param ( [parameter(mandatory=$False,HelpMessage='The virtual machine profile.)')] [VirtualMachineScaleSetVMProfile] $virtualMachineProfile, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the VM scale set to create or update.)')] [string] $vmScaleSetName, [parameter(mandatory=$False,HelpMessage='The virtual machine scale set sku.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='The upgrade policy.)')] [UpgradePolicy] $upgradePolicy, [parameter(mandatory=$False,HelpMessage='Policy for automatic repairs.)')] [AutomaticRepairsPolicy] $automaticRepairsPolicy, [parameter(mandatory=$False,HelpMessage='Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.)')] [Plan] $plan, [parameter(mandatory=$False,HelpMessage='Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.)')] [bool] $zoneBalance, [parameter(mandatory=$False,HelpMessage='When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.)')] [bool] $singlePlacementGroup, [parameter(mandatory=$False,HelpMessage='Fault Domain count for each placement group.)')] [int] $platformFaultDomainCount, [parameter(mandatory=$False,HelpMessage='Specifies the scale-in policy that decides which virtual machines are chosen for removal when a Virtual Machine Scale Set is scaled-in.)')] [ScaleInPolicy] $scaleInPolicy, [parameter(mandatory=$False,HelpMessage='Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.)')] [AdditionalCapabilities] $additionalCapabilities, [parameter(mandatory=$False,HelpMessage='Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. <br><br>Minimum api-version: 2018-04-01.)')] [SubResource] $proximityPlacementGroup, [parameter(mandatory=$False,HelpMessage='Specifies the orchestration mode for the virtual machine scale set.)')] [string] [ValidateSet('Uniform', 'Flexible')] $orchestrationMode, [parameter(mandatory=$False,HelpMessage='The extended location of the Virtual Machine Scale Set.)')] [ExtendedLocation] $extendedLocation, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.)')] [bool] $doNotRunExtensionsOnOverprovisionedVMs, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Specifies information about the dedicated host group that the virtual machine scale set resides in. <br><br>Minimum api-version: 2020-06-01.)')] [SubResource] $hostGroup, [parameter(mandatory=$False,HelpMessage='The identity of the virtual machine scale set, if configured.)')] [VirtualMachineScaleSetIdentity] $identity, [parameter(mandatory=$False,HelpMessage='The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set)')] [string[]] $zones, [parameter(mandatory=$False,HelpMessage='Specifies whether the Virtual Machine Scale Set should be overprovisioned.)')] [bool] $overprovision, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:VirtualMachineScaleSet") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'virtualMachineProfile') { $resource.properties["virtualMachineProfile"] = $virtualMachineProfile } if($PSBoundParameters.Keys -icontains 'vmScaleSetName') { $resource.properties["vmScaleSetName"] = $vmScaleSetName } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'upgradePolicy') { $resource.properties["upgradePolicy"] = $upgradePolicy } if($PSBoundParameters.Keys -icontains 'automaticRepairsPolicy') { $resource.properties["automaticRepairsPolicy"] = $automaticRepairsPolicy } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'zoneBalance') { $resource.properties["zoneBalance"] = $zoneBalance } if($PSBoundParameters.Keys -icontains 'singlePlacementGroup') { $resource.properties["singlePlacementGroup"] = $singlePlacementGroup } if($PSBoundParameters.Keys -icontains 'platformFaultDomainCount') { $resource.properties["platformFaultDomainCount"] = $platformFaultDomainCount } if($PSBoundParameters.Keys -icontains 'scaleInPolicy') { $resource.properties["scaleInPolicy"] = $scaleInPolicy } if($PSBoundParameters.Keys -icontains 'additionalCapabilities') { $resource.properties["additionalCapabilities"] = $additionalCapabilities } if($PSBoundParameters.Keys -icontains 'proximityPlacementGroup') { $resource.properties["proximityPlacementGroup"] = $proximityPlacementGroup } if($PSBoundParameters.Keys -icontains 'orchestrationMode') { $resource.properties["orchestrationMode"] = $orchestrationMode } if($PSBoundParameters.Keys -icontains 'extendedLocation') { $resource.properties["extendedLocation"] = $extendedLocation } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'doNotRunExtensionsOnOverprovisionedVMs') { $resource.properties["doNotRunExtensionsOnOverprovisionedVMs"] = $doNotRunExtensionsOnOverprovisionedVMs } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'hostGroup') { $resource.properties["hostGroup"] = $hostGroup } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'zones') { $resource.properties["zones"] = $zones } if($PSBoundParameters.Keys -icontains 'overprovision') { $resource.properties["overprovision"] = $overprovision } $global:pulumiresources += $resource return $resource } } class DiskSecurityProfile { [ArgumentCompletions('TrustedLaunch')] [string] $securityType } function New-AzureNativeTypeComputeDiskSecurityProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the SecurityType of the VM. Applicable for OS disks only.)')] [string] [ValidateSet('TrustedLaunch')] $securityType ) process { return $([DiskSecurityProfile]$PSBoundParameters) } } class DiskSku { [ArgumentCompletions('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] [string] $name } function New-AzureNativeTypeComputeDiskSku { param ( [parameter(mandatory=$False,HelpMessage='The sku name.)')] [string] [ValidateSet('Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS', 'Premium_ZRS', 'StandardSSD_ZRS')] $name ) process { return $([DiskSku]$PSBoundParameters) } } function New-AzureNativeComputeDisk { [Alias('azure_native_compute_disk')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Logical zone list for Disk.)')] [string[]] $zones, [parameter(mandatory=$False,HelpMessage='Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks.)')] [bool] $burstingEnabled, [parameter(mandatory=$False,HelpMessage='Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks.)')] [string] $tier, [parameter(mandatory=$False,HelpMessage='The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.)')] [int] $maxShares, [parameter(mandatory=$False,HelpMessage='Purchase plan information for the the image from which the OS disk was created. E.g. - {name: 2019-Datacenter, publisher: MicrosoftWindowsServer, product: WindowsServer})')] [PurchasePlan] $purchasePlan, [parameter(mandatory=$False,HelpMessage='If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk''s size.)')] [int] $diskSizeGB, [parameter(mandatory=$False,HelpMessage='The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.)')] [int] $diskMBpsReadWrite, [parameter(mandatory=$False,HelpMessage='Indicates the OS on a disk supports hibernation.)')] [bool] $supportsHibernation, [parameter(mandatory=$False,HelpMessage='Encryption settings collection used for Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.)')] [EncryptionSettingsCollection] $encryptionSettingsCollection, [parameter(mandatory=$False,HelpMessage='Contains the security related information for the resource.)')] [DiskSecurityProfile] $securityProfile, [parameter(mandatory=$False,HelpMessage='Disk source information. CreationData information cannot be changed after the disk has been created.)')] [CreationData] $creationData, [parameter(mandatory=$False,HelpMessage='The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes.)')] [int] $diskIOPSReadWrite, [parameter(mandatory=$False,HelpMessage='ARM id of the DiskAccess resource for using private endpoints on disks.)')] [string] $diskAccessId, [parameter(mandatory=$False,HelpMessage='The extended location where the disk will be created. Extended location cannot be changed.)')] [ExtendedLocation] $extendedLocation, [parameter(mandatory=$False,HelpMessage='Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.)')] [Encryption] $encryption, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the managed disk that is being created. The name can''t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.)')] [string] $diskName, [parameter(mandatory=$False,HelpMessage='Policy for accessing the disk via network.)')] [string] [ValidateSet('AllowAll', 'AllowPrivate', 'DenyAll')] $networkAccessPolicy, [parameter(mandatory=$False,HelpMessage='The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10.)')] [int] $diskMBpsReadOnly, [parameter(mandatory=$False,HelpMessage='The Operating System type.)')] $osType, [parameter(mandatory=$False,HelpMessage='The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes.)')] [int] $diskIOPSReadOnly, [parameter(mandatory=$False,HelpMessage='The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS.)')] [DiskSku] $sku, [parameter(mandatory=$False,HelpMessage='The hypervisor generation of the Virtual Machine. Applicable to OS disks only.)')] [string] [ValidateSet('V1', 'V2')] $hyperVGeneration, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:Disk") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["creationData"] = $creationData $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'zones') { $resource.properties["zones"] = $zones } if($PSBoundParameters.Keys -icontains 'burstingEnabled') { $resource.properties["burstingEnabled"] = $burstingEnabled } if($PSBoundParameters.Keys -icontains 'tier') { $resource.properties["tier"] = $tier } if($PSBoundParameters.Keys -icontains 'maxShares') { $resource.properties["maxShares"] = $maxShares } if($PSBoundParameters.Keys -icontains 'purchasePlan') { $resource.properties["purchasePlan"] = $purchasePlan } if($PSBoundParameters.Keys -icontains 'diskSizeGB') { $resource.properties["diskSizeGB"] = $diskSizeGB } if($PSBoundParameters.Keys -icontains 'diskMBpsReadWrite') { $resource.properties["diskMBpsReadWrite"] = $diskMBpsReadWrite } if($PSBoundParameters.Keys -icontains 'supportsHibernation') { $resource.properties["supportsHibernation"] = $supportsHibernation } if($PSBoundParameters.Keys -icontains 'encryptionSettingsCollection') { $resource.properties["encryptionSettingsCollection"] = $encryptionSettingsCollection } if($PSBoundParameters.Keys -icontains 'securityProfile') { $resource.properties["securityProfile"] = $securityProfile } if($PSBoundParameters.Keys -icontains 'diskIOPSReadWrite') { $resource.properties["diskIOPSReadWrite"] = $diskIOPSReadWrite } if($PSBoundParameters.Keys -icontains 'diskAccessId') { $resource.properties["diskAccessId"] = $diskAccessId } if($PSBoundParameters.Keys -icontains 'extendedLocation') { $resource.properties["extendedLocation"] = $extendedLocation } if($PSBoundParameters.Keys -icontains 'encryption') { $resource.properties["encryption"] = $encryption } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'diskName') { $resource.properties["diskName"] = $diskName } if($PSBoundParameters.Keys -icontains 'networkAccessPolicy') { $resource.properties["networkAccessPolicy"] = $networkAccessPolicy } if($PSBoundParameters.Keys -icontains 'diskMBpsReadOnly') { $resource.properties["diskMBpsReadOnly"] = $diskMBpsReadOnly } if($PSBoundParameters.Keys -icontains 'osType') { $resource.properties["osType"] = $osType } if($PSBoundParameters.Keys -icontains 'diskIOPSReadOnly') { $resource.properties["diskIOPSReadOnly"] = $diskIOPSReadOnly } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'hyperVGeneration') { $resource.properties["hyperVGeneration"] = $hyperVGeneration } $global:pulumiresources += $resource return $resource } } class GalleryArtifactVersionSource { [string] $uri [string] $id } function New-AzureNativeTypeComputeGalleryArtifactVersionSource { param ( [parameter(mandatory=$False,HelpMessage='The uri of the gallery artifact version source. Currently used to specify vhd/blob source.)')] [string] $uri, [parameter(mandatory=$False,HelpMessage='The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.)')] [string] $id ) process { return $([GalleryArtifactVersionSource]$PSBoundParameters) } } class GalleryDataDiskImage { [int] $lun [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $hostCaching [GalleryArtifactVersionSource] $source } function New-AzureNativeTypeComputeGalleryDataDiskImage { param ( [parameter(mandatory=$False,HelpMessage='This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.)')] [int] $lun, [parameter(mandatory=$False,HelpMessage='The host caching of the disk. Valid values are ''None'', ''ReadOnly'', and ''ReadWrite'')')] $hostCaching, [parameter(mandatory=$False,HelpMessage='The gallery artifact version source.)')] [GalleryArtifactVersionSource] $source ) process { return $([GalleryDataDiskImage]$PSBoundParameters) } } class GalleryOSDiskImage { [GalleryArtifactVersionSource] $source [ArgumentCompletions('None', 'ReadOnly', 'ReadWrite')] [object] $hostCaching } function New-AzureNativeTypeComputeGalleryOSDiskImage { param ( [parameter(mandatory=$False,HelpMessage='The gallery artifact version source.)')] [GalleryArtifactVersionSource] $source, [parameter(mandatory=$False,HelpMessage='The host caching of the disk. Valid values are ''None'', ''ReadOnly'', and ''ReadWrite'')')] $hostCaching ) process { return $([GalleryOSDiskImage]$PSBoundParameters) } } class GalleryImageVersionStorageProfile { [GalleryDataDiskImage[]] $dataDiskImages [GalleryOSDiskImage] $osDiskImage [GalleryArtifactVersionSource] $source } function New-AzureNativeTypeComputeGalleryImageVersionStorageProfile { param ( [parameter(mandatory=$False,HelpMessage='A list of data disk images.)')] $dataDiskImages, [parameter(mandatory=$False,HelpMessage='This is the OS disk image.)')] [GalleryOSDiskImage] $osDiskImage, [parameter(mandatory=$False,HelpMessage='The gallery artifact version source.)')] [GalleryArtifactVersionSource] $source ) process { return $([GalleryImageVersionStorageProfile]$PSBoundParameters) } } class GalleryImageVersionPublishingProfile { [ArgumentCompletions('Standard_LRS', 'Standard_ZRS', 'Premium_LRS')] [string] $storageAccountType [TargetRegion[]] $targetRegions [int] $replicaCount [bool] $excludeFromLatest [string] $endOfLifeDate } function New-AzureNativeTypeComputeGalleryImageVersionPublishingProfile { param ( [parameter(mandatory=$False,HelpMessage='Specifies the storage account type to be used to store the image. This property is not updatable.)')] [string] [ValidateSet('Standard_LRS', 'Standard_ZRS', 'Premium_LRS')] $storageAccountType, [parameter(mandatory=$False,HelpMessage='The target regions where the Image Version is going to be replicated to. This property is updatable.)')] $targetRegions, [parameter(mandatory=$False,HelpMessage='The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.)')] [int] $replicaCount, [parameter(mandatory=$False,HelpMessage='If set to true, Virtual Machines deployed from the latest version of the Image Definition won''t use this Image Version.)')] [bool] $excludeFromLatest, [parameter(mandatory=$False,HelpMessage='The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.)')] [string] $endOfLifeDate ) process { return $([GalleryImageVersionPublishingProfile]$PSBoundParameters) } } function New-AzureNativeComputeGalleryImageVersion { [Alias('azure_native_compute_galleryimageversion')] param ( [parameter(mandatory=$False,HelpMessage='The name of the gallery image definition in which the Image Version is to be created.)')] [string] $galleryImageName, [parameter(mandatory=$False,HelpMessage='This is the storage profile of a Gallery Image Version.)')] [GalleryImageVersionStorageProfile] $storageProfile, [parameter(mandatory=$False,HelpMessage='The name of the Shared Image Gallery in which the Image Definition resides.)')] [string] $galleryName, [parameter(mandatory=$False,HelpMessage='The publishing profile of a gallery image Version.)')] [GalleryImageVersionPublishingProfile] $publishingProfile, [parameter(mandatory=$False,HelpMessage='The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>)')] [string] $galleryImageVersionName, [parameter(mandatory=$False,HelpMessage='Resource location)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags)')] [hashtable] $tags, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:compute:GalleryImageVersion") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["galleryImageName"] = $galleryImageName $resource.properties["galleryName"] = $galleryName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["storageProfile"] = $storageProfile if($PSBoundParameters.Keys -icontains 'publishingProfile') { $resource.properties["publishingProfile"] = $publishingProfile } if($PSBoundParameters.Keys -icontains 'galleryImageVersionName') { $resource.properties["galleryImageVersionName"] = $galleryImageVersionName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } |