This directory contains the PowerShell module for the DesktopVirtualization service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 2.7.5 or greater
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
For information on how to develop for Az.DesktopVirtualization
, see how-to.md.
Use of the beta version of autorest.powershell
generator requires the following:
- NodeJS LTS (10.15.x LTS preferred)
- Note: It will not work with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes.
If you want an easy way to install and update Node, NVS - Node Version Switcher or NVM - Node Version Manager is recommended.
- AutoRest v3 beta
npm install -g autorest@beta
- PowerShell 6.0 or greater
- If you don't have it installed, you can use the cross-platform npm package
npm install -g pwsh
- If you don't have it installed, you can use the cross-platform npm package
- .NET Core SDK 2.0 or greater
- If you don't have it installed, you can use the cross-platform npm package
npm install -g dotnet-sdk-2.2
- If you don't have it installed, you can use the cross-platform npm package
In this directory, run AutoRest:
autorest
commit: 0feca76719343b0cb1e6a9d6064c7037827706ca
require:
- $(this-folder)/../../readme.azure.noprofile.md
sanitize-names: true
subject-prefix: 'Wvd'
input-file:
- $(repo)/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/desktopvirtualization.json
module-version: 2.1.0
title: DesktopVirtualizationClient
#v4 migration settings
keep-pec-and-plr: true
disable-transform-identity-type: true
flatten-userassignedidentity: false
directive:
- where:
variant: ^CreateViaIdentity.*$
remove: true
- where:
verb: New
subject: HostPool
parameter-name: RegistrationInfoRegistrationTokenOperation
set:
parameter-name: RegistrationTokenOperation
- where:
verb: New
subject: HostPool
parameter-name: RegistrationInfoExpirationTime
set:
parameter-name: ExpirationTime
- where:
parameter-name: SubscriptionId
set:
default:
script: '(Get-AzContext).Subscription.Id'
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Send$|^SendViaIdentity$
remove: true
- where:
verb: Set
remove: true
- where:
verb: Get
subject: Operation
remove: true
- where:
verb: Invoke
subject: LevelApplicationGroupAssignment
remove: true
- where:
verb: Get
subject: ActiveApplication
remove: true
- where:
verb: Remove
subject: UserSession
parameter-name: Force
set:
parameter-description: 'Specify to force userSession deletion.'