pspulumiyaml.azurenative.desktopvirtualization.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionDesktopvirtualizationGetMSIXPackage { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the host pool within the specified resource group)')] [string] $hostPoolName, [parameter(mandatory=$False,HelpMessage='The version specific package full name of the MSIX package within specified hostpool)')] [string] $msixPackageFullName ) process { $arguments = @{} $arguments["hostPoolName"] = $hostPoolName $arguments["msixPackageFullName"] = $msixPackageFullName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getMSIXPackage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetPrivateEndpointConnectionByHostPool { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Azure resource)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the host pool within the specified resource group)')] [string] $hostPoolName ) process { $arguments = @{} $arguments["hostPoolName"] = $hostPoolName $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getPrivateEndpointConnectionByHostPool -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetPrivateEndpointConnectionByWorkspace { param ( [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Azure resource)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the workspace)')] [string] $workspaceName ) process { $arguments = @{} $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["workspaceName"] = $workspaceName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getPrivateEndpointConnectionByWorkspace -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetApplicationGroup { param ( [parameter(mandatory=$False,HelpMessage='The name of the application group)')] [string] $applicationGroupName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["applicationGroupName"] = $applicationGroupName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getApplicationGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetScalingPlan { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the scaling plan.)')] [string] $scalingPlanName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["scalingPlanName"] = $scalingPlanName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getScalingPlan -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetWorkspace { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the workspace)')] [string] $workspaceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["workspaceName"] = $workspaceName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getWorkspace -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetApplication { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the application group)')] [string] $applicationGroupName, [parameter(mandatory=$False,HelpMessage='The name of the application within the specified application group)')] [string] $applicationName ) process { $arguments = @{} $arguments["applicationGroupName"] = $applicationGroupName $arguments["applicationName"] = $applicationName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getApplication -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDesktopvirtualizationGetHostPool { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the host pool within the specified resource group)')] [string] $hostPoolName ) process { $arguments = @{} $arguments["hostPoolName"] = $hostPoolName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:desktopvirtualization:getHostPool -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class ResourceModelWithAllowedPropertySetPlan { [string] $promotionCode [string] $name [string] $product [string] $version [string] $publisher } function New-AzureNativeTypeDesktopvirtualizationResourceModelWithAllowedPropertySetPlan { param ( [parameter(mandatory=$False,HelpMessage='A publisher provided promotion code as provisioned in Data Market for the said product/artifact.)')] [string] $promotionCode, [parameter(mandatory=$False,HelpMessage='A user defined name of the 3rd Party Artifact that is being procured.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. )')] [string] $product, [parameter(mandatory=$False,HelpMessage='The version of the desired product/artifact.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic)')] [string] $publisher ) process { return $([ResourceModelWithAllowedPropertySetPlan]$PSBoundParameters) } } class ResourceModelWithAllowedPropertySetSku { [int] $capacity [string] $size [string] $family [ValidateSet('Free', 'Basic', 'Standard', 'Premium')] [object] $tier [ValidateSet('Free', 'Basic', 'Standard', 'Premium')] [string] $name } function New-AzureNativeTypeDesktopvirtualizationResourceModelWithAllowedPropertySetSku { param ( [parameter(mandatory=$False,HelpMessage='If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.)')] [int] $capacity, [parameter(mandatory=$False,HelpMessage='The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. )')] [string] $size, [parameter(mandatory=$False,HelpMessage='If the service has different generations of hardware, for the same SKU, then that can be captured here.)')] [string] $family, [parameter(mandatory=$False,HelpMessage='This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.)')] $tier, [parameter(mandatory=$False,HelpMessage='The name of the SKU. Ex - P3. It is typically a letter+number code)')] [string] $name ) process { return $([ResourceModelWithAllowedPropertySetSku]$PSBoundParameters) } } class RegistrationInfo { [ValidateSet('Delete', 'None', 'Update')] [string] $registrationTokenOperation [ValidateSet('Delete', 'None', 'Update')] [string] $token [ValidateSet('Delete', 'None', 'Update')] [string] $expirationTime } function New-AzureNativeTypeDesktopvirtualizationRegistrationInfo { param ( [parameter(mandatory=$False,HelpMessage='The type of resetting the token.)')] [string] [ValidateSet('Delete', 'None', 'Update')] $registrationTokenOperation, [parameter(mandatory=$False,HelpMessage='The registration token base64 encoded string.)')] [string] $token, [parameter(mandatory=$False,HelpMessage='Expiration time of registration token.)')] [string] $expirationTime ) process { return $([RegistrationInfo]$PSBoundParameters) } } class MigrationRequestProperties { [ValidateSet('Start', 'Revoke', 'Complete', 'Hide', 'Unhide')] [string] $operation [ValidateSet('Start', 'Revoke', 'Complete', 'Hide', 'Unhide')] [string] $migrationPath } function New-AzureNativeTypeDesktopvirtualizationMigrationRequestProperties { param ( [parameter(mandatory=$False,HelpMessage='The type of operation for migration.)')] [string] [ValidateSet('Start', 'Revoke', 'Complete', 'Hide', 'Unhide')] $operation, [parameter(mandatory=$False,HelpMessage='The path to the legacy object to migrate.)')] [string] $migrationPath ) process { return $([MigrationRequestProperties]$PSBoundParameters) } } class ResourceModelWithAllowedPropertySetIdentity { [ValidateSet('SystemAssigned')] [object] $type } function New-AzureNativeTypeDesktopvirtualizationResourceModelWithAllowedPropertySetIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] $type ) process { return $([ResourceModelWithAllowedPropertySetIdentity]$PSBoundParameters) } } function New-AzureNativeDesktopvirtualizationHostPool { [Alias('azure_native_desktopvirtualization_hostpool')] param ( [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetPlan] $plan, [parameter(mandatory=$False,HelpMessage='VM template for sessionhosts configuration within hostpool.)')] [string] $vmTemplate, [parameter(mandatory=$False,HelpMessage='Description of HostPool.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='PersonalDesktopAssignment type for HostPool.)')] [string] [ValidateSet('Automatic', 'Direct')] $personalDesktopAssignmentType, [parameter(mandatory=$False,HelpMessage='URL to customer ADFS server for signing WVD SSO certificates.)')] [string] $ssoadfsAuthority, [parameter(mandatory=$False,HelpMessage='Is validation environment.)')] [bool] $validationEnvironment, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetSku] $sku, [parameter(mandatory=$False,HelpMessage='Path to Azure KeyVault storing the secret used for communication to ADFS.)')] [string] $ssoClientSecretKeyVaultPath, [parameter(mandatory=$False,HelpMessage='HostPool type for desktop.)')] [string] [ValidateSet('Personal', 'Pooled', 'BYODesktop')] $hostPoolType, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The registration info of HostPool.)')] [RegistrationInfo] $registrationInfo, [parameter(mandatory=$False,HelpMessage='The max session limit of HostPool.)')] [int] $maxSessionLimit, [parameter(mandatory=$False,HelpMessage='The type of the load balancer.)')] [string] [ValidateSet('BreadthFirst', 'DepthFirst', 'Persistent')] $loadBalancerType, [parameter(mandatory=$False,HelpMessage='The type of preferred application group type, default to Desktop Application Group)')] [string] [ValidateSet('None', 'Desktop', 'RailApplications')] $preferredAppGroupType, [parameter(mandatory=$False,HelpMessage='The registration info of HostPool.)')] [MigrationRequestProperties] $migrationRequest, [parameter(mandatory=$False,HelpMessage='The name of the host pool within the specified resource group)')] [string] $hostPoolName, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetIdentity] $identity, [parameter(mandatory=$False,HelpMessage='ClientId for the registered Relying Party used to issue WVD SSO certificates.)')] [string] $ssoClientId, [parameter(mandatory=$False,HelpMessage='The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.)')] [string] $managedBy, [parameter(mandatory=$False,HelpMessage='The flag to turn on/off StartVMOnConnect feature.)')] [bool] $startVMOnConnect, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The type of single sign on Secret Type.)')] [string] [ValidateSet('SharedKey', 'Certificate', 'SharedKeyInKeyVault', 'CertificateInKeyVault')] $ssoSecretType, [parameter(mandatory=$False,HelpMessage='Custom rdp property of HostPool.)')] [string] $customRdpProperty, [parameter(mandatory=$False,HelpMessage='The ring number of HostPool.)')] [int] $ring, [parameter(mandatory=$False,HelpMessage='Friendly name of HostPool.)')] [string] $friendlyName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:HostPool") $resource.properties["hostPoolType"] = $hostPoolType $resource.properties["loadBalancerType"] = $loadBalancerType $resource.properties["preferredAppGroupType"] = $preferredAppGroupType $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'vmTemplate') { $resource.properties["vmTemplate"] = $vmTemplate } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'personalDesktopAssignmentType') { $resource.properties["personalDesktopAssignmentType"] = $personalDesktopAssignmentType } if($PSBoundParameters.Keys -icontains 'ssoadfsAuthority') { $resource.properties["ssoadfsAuthority"] = $ssoadfsAuthority } if($PSBoundParameters.Keys -icontains 'validationEnvironment') { $resource.properties["validationEnvironment"] = $validationEnvironment } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'ssoClientSecretKeyVaultPath') { $resource.properties["ssoClientSecretKeyVaultPath"] = $ssoClientSecretKeyVaultPath } if($PSBoundParameters.Keys -icontains 'registrationInfo') { $resource.properties["registrationInfo"] = $registrationInfo } if($PSBoundParameters.Keys -icontains 'maxSessionLimit') { $resource.properties["maxSessionLimit"] = $maxSessionLimit } if($PSBoundParameters.Keys -icontains 'migrationRequest') { $resource.properties["migrationRequest"] = $migrationRequest } if($PSBoundParameters.Keys -icontains 'hostPoolName') { $resource.properties["hostPoolName"] = $hostPoolName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'ssoClientId') { $resource.properties["ssoClientId"] = $ssoClientId } if($PSBoundParameters.Keys -icontains 'managedBy') { $resource.properties["managedBy"] = $managedBy } if($PSBoundParameters.Keys -icontains 'startVMOnConnect') { $resource.properties["startVMOnConnect"] = $startVMOnConnect } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'ssoSecretType') { $resource.properties["ssoSecretType"] = $ssoSecretType } if($PSBoundParameters.Keys -icontains 'customRdpProperty') { $resource.properties["customRdpProperty"] = $customRdpProperty } if($PSBoundParameters.Keys -icontains 'ring') { $resource.properties["ring"] = $ring } if($PSBoundParameters.Keys -icontains 'friendlyName') { $resource.properties["friendlyName"] = $friendlyName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDesktopvirtualizationApplication { [Alias('azure_native_desktopvirtualization_application')] param ( [parameter(mandatory=$False,HelpMessage='Path to icon.)')] [string] $iconPath, [parameter(mandatory=$False,HelpMessage='Command Line Arguments for Application.)')] [string] $commandLineArguments, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the package family name for MSIX applications)')] [string] $msixPackageFamilyName, [parameter(mandatory=$False,HelpMessage='Resource Type of Application.)')] [string] [ValidateSet('InBuilt', 'MsixApplication')] $applicationType, [parameter(mandatory=$False,HelpMessage='Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all.)')] [string] [ValidateSet('DoNotAllow', 'Allow', 'Require')] $commandLineSetting, [parameter(mandatory=$False,HelpMessage='Description of Application.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Index of the icon.)')] [int] $iconIndex, [parameter(mandatory=$False,HelpMessage='Specifies a path for the executable file for the application.)')] [string] $filePath, [parameter(mandatory=$False,HelpMessage='The name of the application within the specified application group)')] [string] $applicationName, [parameter(mandatory=$False,HelpMessage='Friendly name of Application.)')] [string] $friendlyName, [parameter(mandatory=$False,HelpMessage='Specifies the package application Id for MSIX applications)')] [string] $msixPackageApplicationId, [parameter(mandatory=$False,HelpMessage='Specifies whether to show the RemoteApp program in the RD Web Access server.)')] [bool] $showInPortal, [parameter(mandatory=$False,HelpMessage='The name of the application group)')] [string] $applicationGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:Application") $resource.properties["applicationGroupName"] = $applicationGroupName $resource.properties["commandLineSetting"] = $commandLineSetting $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'iconPath') { $resource.properties["iconPath"] = $iconPath } if($PSBoundParameters.Keys -icontains 'commandLineArguments') { $resource.properties["commandLineArguments"] = $commandLineArguments } if($PSBoundParameters.Keys -icontains 'msixPackageFamilyName') { $resource.properties["msixPackageFamilyName"] = $msixPackageFamilyName } if($PSBoundParameters.Keys -icontains 'applicationType') { $resource.properties["applicationType"] = $applicationType } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'iconIndex') { $resource.properties["iconIndex"] = $iconIndex } if($PSBoundParameters.Keys -icontains 'filePath') { $resource.properties["filePath"] = $filePath } if($PSBoundParameters.Keys -icontains 'applicationName') { $resource.properties["applicationName"] = $applicationName } if($PSBoundParameters.Keys -icontains 'friendlyName') { $resource.properties["friendlyName"] = $friendlyName } if($PSBoundParameters.Keys -icontains 'msixPackageApplicationId') { $resource.properties["msixPackageApplicationId"] = $msixPackageApplicationId } if($PSBoundParameters.Keys -icontains 'showInPortal') { $resource.properties["showInPortal"] = $showInPortal } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDesktopvirtualizationApplicationGroup { [Alias('azure_native_desktopvirtualization_applicationgroup')] param ( [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetSku] $sku, [parameter(mandatory=$False,HelpMessage='Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource Type of ApplicationGroup.)')] [string] [ValidateSet('RemoteApp', 'Desktop')] $applicationGroupType, [parameter(mandatory=$False,HelpMessage='The registration info of HostPool.)')] [MigrationRequestProperties] $migrationRequest, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetIdentity] $identity, [parameter(mandatory=$False,HelpMessage='Description of ApplicationGroup.)')] [string] $description, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetPlan] $plan, [parameter(mandatory=$False,HelpMessage='Friendly name of ApplicationGroup.)')] [string] $friendlyName, [parameter(mandatory=$False,HelpMessage='The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.)')] [string] $managedBy, [parameter(mandatory=$False,HelpMessage='The name of the application group)')] [string] $applicationGroupName, [parameter(mandatory=$False,HelpMessage='HostPool arm path of ApplicationGroup.)')] [string] $hostPoolArmPath, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:ApplicationGroup") $resource.properties["applicationGroupType"] = $applicationGroupType $resource.properties["hostPoolArmPath"] = $hostPoolArmPath $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'migrationRequest') { $resource.properties["migrationRequest"] = $migrationRequest } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'friendlyName') { $resource.properties["friendlyName"] = $friendlyName } if($PSBoundParameters.Keys -icontains 'managedBy') { $resource.properties["managedBy"] = $managedBy } if($PSBoundParameters.Keys -icontains 'applicationGroupName') { $resource.properties["applicationGroupName"] = $applicationGroupName } $global:pulumiresources += $resource return $resource } } class PrivateLinkServiceConnectionState { [string] $description [string] $actionsRequired [ValidateSet('Pending', 'Approved', 'Rejected')] [string] $status } function New-AzureNativeTypeDesktopvirtualizationPrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='The reason for approval/rejection of the connection.)')] [string] $description, [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='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-AzureNativeDesktopvirtualizationPrivateEndpointConnectionByHostPool { [Alias('azure_native_desktopvirtualization_privateendpointconnectionbyhostpool')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Azure resource)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the host pool within the specified resource group)')] [string] $hostPoolName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:PrivateEndpointConnectionByHostPool") $resource.properties["hostPoolName"] = $hostPoolName $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDesktopvirtualizationScalingPlan { [Alias('azure_native_desktopvirtualization_scalingplan')] param ( [parameter(mandatory=$False,HelpMessage='Description of scaling plan.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='User friendly name of scaling plan.)')] [string] $friendlyName, [parameter(mandatory=$False,HelpMessage='Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='HostPool type for desktop.)')] [string] [ValidateSet('Personal', 'Pooled', 'BYODesktop')] $hostPoolType, [parameter(mandatory=$False,HelpMessage='List of ScalingSchedule definitions.)')] $schedules, [parameter(mandatory=$False,HelpMessage='List of ScalingHostPoolReference definitions.)')] $hostPoolReferences, [parameter(mandatory=$False,HelpMessage='The name of the scaling plan.)')] [string] $scalingPlanName, [parameter(mandatory=$False,HelpMessage='The ring number of scaling plan.)')] [int] $ring, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Exclusion tag for scaling plan.)')] [string] $exclusionTag, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Timezone of the scaling plan.)')] [string] $timeZone, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetPlan] $plan, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetSku] $sku, [parameter(mandatory=$False,HelpMessage='The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.)')] [string] $managedBy, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetIdentity] $identity, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:ScalingPlan") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'friendlyName') { $resource.properties["friendlyName"] = $friendlyName } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'hostPoolType') { $resource.properties["hostPoolType"] = $hostPoolType } if($PSBoundParameters.Keys -icontains 'schedules') { $resource.properties["schedules"] = $schedules } if($PSBoundParameters.Keys -icontains 'hostPoolReferences') { $resource.properties["hostPoolReferences"] = $hostPoolReferences } if($PSBoundParameters.Keys -icontains 'scalingPlanName') { $resource.properties["scalingPlanName"] = $scalingPlanName } if($PSBoundParameters.Keys -icontains 'ring') { $resource.properties["ring"] = $ring } if($PSBoundParameters.Keys -icontains 'exclusionTag') { $resource.properties["exclusionTag"] = $exclusionTag } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'timeZone') { $resource.properties["timeZone"] = $timeZone } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'managedBy') { $resource.properties["managedBy"] = $managedBy } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDesktopvirtualizationWorkspace { [Alias('azure_native_desktopvirtualization_workspace')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Friendly name of Workspace.)')] [string] $friendlyName, [parameter(mandatory=$False,HelpMessage='Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.)')] [string] $managedBy, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetSku] $sku, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetPlan] $plan, [parameter(mandatory=$False,HelpMessage='The name of the workspace)')] [string] $workspaceName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Description of Workspace.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='List of applicationGroup resource Ids.)')] [string[]] $applicationGroupReferences, [parameter(mandatory=$False,HelpMessage=')')] [ResourceModelWithAllowedPropertySetIdentity] $identity, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:Workspace") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'friendlyName') { $resource.properties["friendlyName"] = $friendlyName } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'managedBy') { $resource.properties["managedBy"] = $managedBy } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'plan') { $resource.properties["plan"] = $plan } if($PSBoundParameters.Keys -icontains 'workspaceName') { $resource.properties["workspaceName"] = $workspaceName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'applicationGroupReferences') { $resource.properties["applicationGroupReferences"] = $applicationGroupReferences } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDesktopvirtualizationMSIXPackage { [Alias('azure_native_desktopvirtualization_msixpackage')] param ( [parameter(mandatory=$False,HelpMessage='Make this version of the package the active one across the hostpool. )')] [bool] $isActive, [parameter(mandatory=$False,HelpMessage='Date Package was last updated, found in the appxmanifest.xml. )')] [string] $lastUpdated, [parameter(mandatory=$False,HelpMessage='List of package applications. )')] $packageApplications, [parameter(mandatory=$False,HelpMessage='VHD/CIM image path on Network Share.)')] [string] $imagePath, [parameter(mandatory=$False,HelpMessage='The version specific package full name of the MSIX package within specified hostpool)')] [string] $msixPackageFullName, [parameter(mandatory=$False,HelpMessage='Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name. )')] [string] $packageFamilyName, [parameter(mandatory=$False,HelpMessage='Package Version found in the appxmanifest.xml. )')] [string] $version, [parameter(mandatory=$False,HelpMessage='Package Name from appxmanifest.xml. )')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the host pool within the specified resource group)')] [string] $hostPoolName, [parameter(mandatory=$False,HelpMessage='User friendly Name to be displayed in the portal. )')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='List of package dependencies. )')] $packageDependencies, [parameter(mandatory=$False,HelpMessage='Relative Path to the package inside the image. )')] [string] $packageRelativePath, [parameter(mandatory=$False,HelpMessage='Specifies how to register Package in feed.)')] [bool] $isRegularRegistration, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:MSIXPackage") $resource.properties["hostPoolName"] = $hostPoolName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'isActive') { $resource.properties["isActive"] = $isActive } if($PSBoundParameters.Keys -icontains 'lastUpdated') { $resource.properties["lastUpdated"] = $lastUpdated } if($PSBoundParameters.Keys -icontains 'packageApplications') { $resource.properties["packageApplications"] = $packageApplications } if($PSBoundParameters.Keys -icontains 'imagePath') { $resource.properties["imagePath"] = $imagePath } if($PSBoundParameters.Keys -icontains 'msixPackageFullName') { $resource.properties["msixPackageFullName"] = $msixPackageFullName } if($PSBoundParameters.Keys -icontains 'packageFamilyName') { $resource.properties["packageFamilyName"] = $packageFamilyName } if($PSBoundParameters.Keys -icontains 'version') { $resource.properties["version"] = $version } if($PSBoundParameters.Keys -icontains 'packageName') { $resource.properties["packageName"] = $packageName } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'packageDependencies') { $resource.properties["packageDependencies"] = $packageDependencies } if($PSBoundParameters.Keys -icontains 'packageRelativePath') { $resource.properties["packageRelativePath"] = $packageRelativePath } if($PSBoundParameters.Keys -icontains 'isRegularRegistration') { $resource.properties["isRegularRegistration"] = $isRegularRegistration } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDesktopvirtualizationPrivateEndpointConnectionByWorkspace { [Alias('azure_native_desktopvirtualization_privateendpointconnectionbyworkspace')] param ( [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Azure resource)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The name of the workspace)')] [string] $workspaceName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:desktopvirtualization:PrivateEndpointConnectionByWorkspace") $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["workspaceName"] = $workspaceName if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } $global:pulumiresources += $resource return $resource } } |