azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Migrate DesktopVirtualization from generation-DesktopVirtualization-preview to Az.DesktopVirtualization-preview

Open azure-powershell-bot opened this issue 1 year ago • 8 comments

Description

Migrate DesktopVirtualization from generation-DesktopVirtualization-preview to Az.DesktopVirtualization-preview The last commit of src/DesktopVirtualization in generation-DesktopVirtualization-preview is: commit 8a9078b0219645732d466606aa9c942df4d074f9 Author: Alec Baird [email protected] Date: Tue Feb 6 20:46:47 2024 -0700 Revert "Alecb 2024 01 16 preview (#24110)" (#24115) This reverts commit fdde82a4dce303e923dfec7dcd8d559fb5345efb.

Checklist

  • [x] Check this box to confirm: I have read the Submitting Changes section of CONTRIBUTING.md and reviewed the following information:
  • SHOULD select appropriate branch. Cmdlets from Autorest.PowerShell should go to generation branch.
  • SHOULD make the title of PR clear and informative, and in the present imperative tense.
  • SHOULD update ChangeLog.md file(s) appropriately
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense. Add changelog in description section if PR goes into generation branch.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD have approved design review for the changes in this repository (Microsoft internal only) with following situations
    • Create new module from scratch
    • Create new resource types which are not easy to conform to Azure PowerShell Design Guidelines
    • Create new resource type which name doesn't use module name as prefix
    • Have design question before implementation
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT introduce breaking changes in Az minor release except preview version.
  • SHOULD NOT adjust version of module manually in pull request

azure-powershell-bot avatar Feb 08 '24 05:02 azure-powershell-bot

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
❌Az.DesktopVirtualization
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️Signature Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ Get-AzWvdActiveSessionHostConfiguration Get-AzWvdActiveSessionHostConfiguration Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdActiveSessionHostConfiguration Get-AzWvdActiveSessionHostConfiguration changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdAppAttachPackage Get-AzWvdAppAttachPackage Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdAppAttachPackage Get-AzWvdAppAttachPackage changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdApplication Get-AzWvdApplication Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdApplication Get-AzWvdApplication changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdApplicationGroup Get-AzWvdApplicationGroup Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdApplicationGroup Get-AzWvdApplicationGroup changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdDesktop Get-AzWvdDesktop Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdDesktop Get-AzWvdDesktop changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdHostPool Get-AzWvdHostPool Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdHostPool Get-AzWvdHostPool changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdMsixPackage Get-AzWvdMsixPackage Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdMsixPackage Get-AzWvdMsixPackage changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdPrivateEndpointConnection Get-AzWvdPrivateEndpointConnection Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdPrivateEndpointConnection Get-AzWvdPrivateEndpointConnection changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdPrivateLinkResource Get-AzWvdPrivateLinkResource Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdPrivateLinkResource Get-AzWvdPrivateLinkResource changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdRegistrationInfo Get-AzWvdRegistrationInfo Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdRegistrationInfo Get-AzWvdRegistrationInfo changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdScalingPlan Get-AzWvdScalingPlan Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdScalingPlan Get-AzWvdScalingPlan changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdScalingPlanPersonalSchedule Get-AzWvdScalingPlanPersonalSchedule Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdScalingPlanPersonalSchedule Get-AzWvdScalingPlanPersonalSchedule changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdScalingPlanPooledSchedule Get-AzWvdScalingPlanPooledSchedule Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdScalingPlanPooledSchedule Get-AzWvdScalingPlanPooledSchedule changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHost Get-AzWvdSessionHost Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHost Get-AzWvdSessionHost changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostConfiguration Get-AzWvdSessionHostConfiguration Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostConfiguration Get-AzWvdSessionHostConfiguration changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostConfigurationsOperationStatus Get-AzWvdSessionHostConfigurationsOperationStatus Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostConfigurationsOperationStatus Get-AzWvdSessionHostConfigurationsOperationStatus changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostManagement Get-AzWvdSessionHostManagement Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostManagement Get-AzWvdSessionHostManagement changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostManagementsOperationStatus Get-AzWvdSessionHostManagementsOperationStatus Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostManagementsOperationStatus Get-AzWvdSessionHostManagementsOperationStatus changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdStartMenuItem Get-AzWvdStartMenuItem Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdStartMenuItem Get-AzWvdStartMenuItem changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdUserSession Get-AzWvdUserSession Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdUserSession Get-AzWvdUserSession changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdWorkspace Get-AzWvdWorkspace Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdWorkspace Get-AzWvdWorkspace changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️Windows PowerShell - Windows
Type Cmdlet Description Remediation
⚠️ Get-AzWvdActiveSessionHostConfiguration Get-AzWvdActiveSessionHostConfiguration Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdActiveSessionHostConfiguration Get-AzWvdActiveSessionHostConfiguration changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdAppAttachPackage Get-AzWvdAppAttachPackage Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdAppAttachPackage Get-AzWvdAppAttachPackage changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdApplication Get-AzWvdApplication Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdApplication Get-AzWvdApplication changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdApplicationGroup Get-AzWvdApplicationGroup Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdApplicationGroup Get-AzWvdApplicationGroup changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdDesktop Get-AzWvdDesktop Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdDesktop Get-AzWvdDesktop changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdHostPool Get-AzWvdHostPool Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdHostPool Get-AzWvdHostPool changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdMsixPackage Get-AzWvdMsixPackage Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdMsixPackage Get-AzWvdMsixPackage changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdPrivateEndpointConnection Get-AzWvdPrivateEndpointConnection Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdPrivateEndpointConnection Get-AzWvdPrivateEndpointConnection changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdPrivateLinkResource Get-AzWvdPrivateLinkResource Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdPrivateLinkResource Get-AzWvdPrivateLinkResource changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdRegistrationInfo Get-AzWvdRegistrationInfo Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdRegistrationInfo Get-AzWvdRegistrationInfo changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdScalingPlan Get-AzWvdScalingPlan Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdScalingPlan Get-AzWvdScalingPlan changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdScalingPlanPersonalSchedule Get-AzWvdScalingPlanPersonalSchedule Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdScalingPlanPersonalSchedule Get-AzWvdScalingPlanPersonalSchedule changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdScalingPlanPooledSchedule Get-AzWvdScalingPlanPooledSchedule Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdScalingPlanPooledSchedule Get-AzWvdScalingPlanPooledSchedule changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHost Get-AzWvdSessionHost Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHost Get-AzWvdSessionHost changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostConfiguration Get-AzWvdSessionHostConfiguration Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostConfiguration Get-AzWvdSessionHostConfiguration changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostConfigurationsOperationStatus Get-AzWvdSessionHostConfigurationsOperationStatus Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostConfigurationsOperationStatus Get-AzWvdSessionHostConfigurationsOperationStatus changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostManagement Get-AzWvdSessionHostManagement Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostManagement Get-AzWvdSessionHostManagement changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdSessionHostManagementsOperationStatus Get-AzWvdSessionHostManagementsOperationStatus Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdSessionHostManagementsOperationStatus Get-AzWvdSessionHostManagementsOperationStatus changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdStartMenuItem Get-AzWvdStartMenuItem Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdStartMenuItem Get-AzWvdStartMenuItem changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdUserSession Get-AzWvdUserSession Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdUserSession Get-AzWvdUserSession changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzWvdWorkspace Get-AzWvdWorkspace Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzWvdWorkspace Get-AzWvdWorkspace changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
❌Help Example Check
❌PowerShell Core - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
New-AzWvdRegistrationInfo 1 1 UnexpectedToken Unexpected token '12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log' in expression or statement. 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log Unexpected Error. Please check Trouble Shotting for Unexpected Errors in Example Issues for more details.
⚠️ New-AzWvdAppAttachPackage 1 12 Mismatched_Parameter_Value_Type New-AzWvdAppAttachPackage -ImagePackageApplication $apps is not an expected parameter value type. -ImagePackageApplication Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageApplications. Now the type is string.(Static).
⚠️ New-AzWvdAppAttachPackage 1 13 Mismatched_Parameter_Value_Type New-AzWvdAppAttachPackage -ImagePackageDependency $deps is not an expected parameter value type. -ImagePackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
⚠️ New-AzWvdAppAttachPackage 2 6 Mismatched_Parameter_Value_Type New-AzWvdAppAttachPackage -AppAttachPackage imageObject is not an expected parameter value type. -AppAttachPackage Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.AppAttachPackage. Now the type is string.(Static).
⚠️ New-AzWvdMsixPackage 2 12 Mismatched_Parameter_Value_Type New-AzWvdMsixPackage -PackageApplication $apps is not an expected parameter value type. -PackageApplication Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageApplications. Now the type is string.(Static).
⚠️ New-AzWvdMsixPackage 2 13 Mismatched_Parameter_Value_Type New-AzWvdMsixPackage -PackageDependency $deps is not an expected parameter value type. -PackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
⚠️ Update-AzWvdAppAttachPackage 1 11 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -ImagePackageApplication $apps is not an expected parameter value type. -ImagePackageApplication Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageApplications. Now the type is string.(Static).
⚠️ Update-AzWvdAppAttachPackage 1 12 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -ImagePackageDependency $deps is not an expected parameter value type. -ImagePackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
⚠️ Update-AzWvdAppAttachPackage 2 5 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -AppAttachPackage imageObject is not an expected parameter value type. -AppAttachPackage Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.AppAttachPackage. Now the type is string.(Static).
New-AzWvdRegistrationInfo 1 1 Invalid_Cmdlet 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log is not a valid command name. 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log out now, please.' -RampDownStopHostsWhen ZeroSessions -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakLoadBalancingAlgorithm DepthFirst } function DesktopVirtualization-New-AzWvdSessionHostConfiguration-1{ New-AzWvdSessionHostConfiguration -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -DiskInfoType 'Standard_LRS' -DomainInfoJoinType 'AzureActiveDirectory' -ImageInfoType 'Marketplace' -NetworkInfoSubnetId '/subscriptions/{subscriptionId}/resourceGroups/resourceGrouName/providers/Microsoft.Network/virtualNetworks/{vNetName}/subnets/default' -VMAdminCredentialsPasswordKeyvaultSecretUri 'PasswordSecretUri' -VMAdminCredentialsUserNameKeyvaultSecretUri 'PasswordUsernameUri' -VMNamePrefix 'createTest' -VMSizeId 'Standard_D2s_v3' -MarketplaceInfoExactVersion '22631.2715.231114' -MarketplaceInfoOffer 'office-365' -MarketplaceInfoPublisher 'microsoftwindowsdesktop' -MarketplaceInfoSku 'win11-23h2-avd-m365' -SecurityInfoSecureBootEnabled -SecurityInfoType 'TrustedLaunch' -SecurityInfoVTpmEnabled -VmLocation westus2 -VmResourceGroup ResourceGroupName } function DesktopVirtualization-New-AzWvdSessionHostManagement-1{ New-AzWvdSessionHostManagement -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -ScheduledDateTimeZone 'Alaskan Standard Time' -UpdateDeleteOriginalVm -UpdateMaxVmsRemoved 4 -UpdateLogOffDelayMinute 5 -UpdateLogOffMessage 'logging off for hostpool update.' } function DesktopVirtualization-New-AzWvdWorkspace-1{ New-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName -Location 'eastus' -FriendlyName 'Friendly Name' -ApplicationGroupReference $null -Description 'Description' } function DesktopVirtualization-New-AzWvdWorkspace-2{ New-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName -Location 'eastus' -FriendlyName 'Friendly Name' -ApplicationGroupReference '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName1','/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName2' -Description 'Description' } function DesktopVirtualization-Register-AzWvdApplicationGroup-1{ Register-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -WorkspaceName WorkspaceName -ApplicationGroupPath '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName' } function DesktopVirtualization-Remove-AzWvdAppAttachPackage-1{ Remove-AzWvdAppAttachPackage -ResourceGroupName ResourceGroupName -Name HostPoolName } function DesktopVirtualization-Remove-AzWvdApplication-1{ Remove-AzWvdApplication -ResourceGroupName ResourceGroupName -ApplicationGroupName ApplicationGroupName -Name ApplicationName } function DesktopVirtualization-Remove-AzWvdApplicationGroup-1{ Remove-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -Name ApplicationGroupName } function DesktopVirtualization-Remove-AzWvdHostPool-1{ Remove-AzWvdHostPool -ResourceGroupName ResourceGroupName -Name HostPoolName } function DesktopVirtualization-Remove-AzWvdMsixPackage-1{ Remove-AzWvdMsixPackage -HostPoolName HostPoolName -ResourceGroupName ResourceGroupName -SubscriptionId SubscriptionId -FullName PackageFullName } function DesktopVirtualization-Remove-AzWvdPrivateEndpointConnection-1{ Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -HostpoolName HostPoolName } function DesktopVirtualization-Remove-AzWvdPrivateEndpointConnection-2{ Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -WorkspaceName WorkspaceName } function DesktopVirtualization-Remove-AzWvdRegistrationInfo-1{ Remove-AzWvdRegistrationInfo -resourceGroupName rgName -hostpoolName hpName } function DesktopVirtualization-Remove-AzWvdScalingPlan-1{ Remove-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name scalingPlan1 } function DesktopVirtualization-Remove-AzWvdScalingPlanPersonalSchedule-1{ Remove-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName } function DesktopVirtualization-Remove-AzWvdScalingPlanPooledSchedule-1{ Remove-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName } function DesktopVirtualization-Remove-AzWvdSessionHost-1{ Remove-AzWvdSessionHost -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -Name SessionHostName } function DesktopVirtualization-Remove-AzWvdUserSession-1{ Remove-AzWvdUserSession -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -SessionHostName SessionHostName -Id 2 } function DesktopVirtualization-Remove-AzWvdWorkspace-1{ Remove-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName } function DesktopVirtualization-Send-AzWvdUserSessionMessage-1{ Send-AzWvdUserSessionMessage -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -SessionHostName SessionHostName -UserSessionId 4 -MessageBody 'Some Message' -MessageTitle 'Some Title' } function DesktopVirtualization-Unregister-AzWvdApplicationGroup-1{ Unregister-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -WorkspaceName WorkspaceName ` -ApplicationGroupPath '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName' } function DesktopVirtualization-Update-AzWvdAppAttachPackage-1{ ' Check the spell of 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log.
⚠️ Update-AzWvdAppAttachPackage 1 11 Unassigned_Variable Update-AzWvdAppAttachPackage -ImagePackageApplication $apps is a null-valued parameter value. -ImagePackageApplication Assign value for $apps.
⚠️ Update-AzWvdAppAttachPackage 1 12 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -ImagePackageDependency $deps is not an expected parameter value type. -ImagePackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
New-AzWvdSessionHostConfiguration 1 6 Invalid_Cmdlet subscriptionId is not a valid command name. subscriptionId Check the spell of subscriptionId.
New-AzWvdSessionHostConfiguration 1 6 Invalid_Cmdlet vNetName is not a valid command name. vNetName Check the spell of vNetName.
⚠️ Update-AzWvdAppAttachPackage 2 5 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -AppAttachPackage imageObject is not an expected parameter value type. -AppAttachPackage Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.AppAttachPackage. Now the type is string.(Static).
❌Windows PowerShell - Windows
Type Cmdlet Example Line RuleName Description Extent Remediation
New-AzWvdRegistrationInfo 1 1 UnexpectedToken Unexpected token '12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log' in expression or statement. 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log Unexpected Error. Please check Trouble Shotting for Unexpected Errors in Example Issues for more details.
⚠️ New-AzWvdAppAttachPackage 1 12 Mismatched_Parameter_Value_Type New-AzWvdAppAttachPackage -ImagePackageApplication $apps is not an expected parameter value type. -ImagePackageApplication Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageApplications. Now the type is string.(Static).
⚠️ New-AzWvdAppAttachPackage 1 13 Mismatched_Parameter_Value_Type New-AzWvdAppAttachPackage -ImagePackageDependency $deps is not an expected parameter value type. -ImagePackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
⚠️ New-AzWvdAppAttachPackage 2 6 Mismatched_Parameter_Value_Type New-AzWvdAppAttachPackage -AppAttachPackage imageObject is not an expected parameter value type. -AppAttachPackage Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.AppAttachPackage. Now the type is string.(Static).
⚠️ New-AzWvdMsixPackage 2 12 Mismatched_Parameter_Value_Type New-AzWvdMsixPackage -PackageApplication $apps is not an expected parameter value type. -PackageApplication Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageApplications. Now the type is string.(Static).
⚠️ New-AzWvdMsixPackage 2 13 Mismatched_Parameter_Value_Type New-AzWvdMsixPackage -PackageDependency $deps is not an expected parameter value type. -PackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
⚠️ Update-AzWvdAppAttachPackage 1 11 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -ImagePackageApplication $apps is not an expected parameter value type. -ImagePackageApplication Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageApplications. Now the type is string.(Static).
⚠️ Update-AzWvdAppAttachPackage 1 12 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -ImagePackageDependency $deps is not an expected parameter value type. -ImagePackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
⚠️ Update-AzWvdAppAttachPackage 2 5 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -AppAttachPackage imageObject is not an expected parameter value type. -AppAttachPackage Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.AppAttachPackage. Now the type is string.(Static).
New-AzWvdRegistrationInfo 1 1 Invalid_Cmdlet 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log is not a valid command name. 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log out now, please.' -RampDownStopHostsWhen ZeroSessions -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakLoadBalancingAlgorithm DepthFirst } function DesktopVirtualization-New-AzWvdSessionHostConfiguration-1{ New-AzWvdSessionHostConfiguration -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -DiskInfoType 'Standard_LRS' -DomainInfoJoinType 'AzureActiveDirectory' -ImageInfoType 'Marketplace' -NetworkInfoSubnetId '/subscriptions/{subscriptionId}/resourceGroups/resourceGrouName/providers/Microsoft.Network/virtualNetworks/{vNetName}/subnets/default' -VMAdminCredentialsPasswordKeyvaultSecretUri 'PasswordSecretUri' -VMAdminCredentialsUserNameKeyvaultSecretUri 'PasswordUsernameUri' -VMNamePrefix 'createTest' -VMSizeId 'Standard_D2s_v3' -MarketplaceInfoExactVersion '22631.2715.231114' -MarketplaceInfoOffer 'office-365' -MarketplaceInfoPublisher 'microsoftwindowsdesktop' -MarketplaceInfoSku 'win11-23h2-avd-m365' -SecurityInfoSecureBootEnabled -SecurityInfoType 'TrustedLaunch' -SecurityInfoVTpmEnabled -VmLocation westus2 -VmResourceGroup ResourceGroupName } function DesktopVirtualization-New-AzWvdSessionHostManagement-1{ New-AzWvdSessionHostManagement -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -ScheduledDateTimeZone 'Alaskan Standard Time' -UpdateDeleteOriginalVm -UpdateMaxVmsRemoved 4 -UpdateLogOffDelayMinute 5 -UpdateLogOffMessage 'logging off for hostpool update.' } function DesktopVirtualization-New-AzWvdWorkspace-1{ New-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName -Location 'eastus' -FriendlyName 'Friendly Name' -ApplicationGroupReference $null -Description 'Description' } function DesktopVirtualization-New-AzWvdWorkspace-2{ New-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName -Location 'eastus' -FriendlyName 'Friendly Name' -ApplicationGroupReference '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName1','/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName2' -Description 'Description' } function DesktopVirtualization-Register-AzWvdApplicationGroup-1{ Register-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -WorkspaceName WorkspaceName -ApplicationGroupPath '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName' } function DesktopVirtualization-Remove-AzWvdAppAttachPackage-1{ Remove-AzWvdAppAttachPackage -ResourceGroupName ResourceGroupName -Name HostPoolName } function DesktopVirtualization-Remove-AzWvdApplication-1{ Remove-AzWvdApplication -ResourceGroupName ResourceGroupName -ApplicationGroupName ApplicationGroupName -Name ApplicationName } function DesktopVirtualization-Remove-AzWvdApplicationGroup-1{ Remove-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -Name ApplicationGroupName } function DesktopVirtualization-Remove-AzWvdHostPool-1{ Remove-AzWvdHostPool -ResourceGroupName ResourceGroupName -Name HostPoolName } function DesktopVirtualization-Remove-AzWvdMsixPackage-1{ Remove-AzWvdMsixPackage -HostPoolName HostPoolName -ResourceGroupName ResourceGroupName -SubscriptionId SubscriptionId -FullName PackageFullName } function DesktopVirtualization-Remove-AzWvdPrivateEndpointConnection-1{ Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -HostpoolName HostPoolName } function DesktopVirtualization-Remove-AzWvdPrivateEndpointConnection-2{ Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -WorkspaceName WorkspaceName } function DesktopVirtualization-Remove-AzWvdRegistrationInfo-1{ Remove-AzWvdRegistrationInfo -resourceGroupName rgName -hostpoolName hpName } function DesktopVirtualization-Remove-AzWvdScalingPlan-1{ Remove-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name scalingPlan1 } function DesktopVirtualization-Remove-AzWvdScalingPlanPersonalSchedule-1{ Remove-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName } function DesktopVirtualization-Remove-AzWvdScalingPlanPooledSchedule-1{ Remove-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName } function DesktopVirtualization-Remove-AzWvdSessionHost-1{ Remove-AzWvdSessionHost -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -Name SessionHostName } function DesktopVirtualization-Remove-AzWvdUserSession-1{ Remove-AzWvdUserSession -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -SessionHostName SessionHostName -Id 2 } function DesktopVirtualization-Remove-AzWvdWorkspace-1{ Remove-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName } function DesktopVirtualization-Send-AzWvdUserSessionMessage-1{ Send-AzWvdUserSessionMessage -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -SessionHostName SessionHostName -UserSessionId 4 -MessageBody 'Some Message' -MessageTitle 'Some Title' } function DesktopVirtualization-Unregister-AzWvdApplicationGroup-1{ Unregister-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -WorkspaceName WorkspaceName ` -ApplicationGroupPath '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName' } function DesktopVirtualization-Update-AzWvdAppAttachPackage-1{ ' Check the spell of 12:00' } function DesktopVirtualization-New-AzWvdScalingPlan-1{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @() -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlan-2{ New-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name 'ScalingPlan1' -Location 'westcentralus' -Description 'Description' -FriendlyName 'Friendly Name' -HostPoolType 'Pooled' -TimeZone 'Pacific Standard Time' -Schedule @( @{ 'Name' = 'Work Week'; 'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'); 'RampUpStartTime' = @{ 'Hour' = 6 'Minute' = 0 }; 'RampUpLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampUpMinimumHostsPct' = 20; 'RampUpCapacityThresholdPct' = 20; 'PeakStartTime' = @{ 'Hour' = 8 'Minute' = 30 }; 'PeakLoadBalancingAlgorithm' = 'DepthFirst'; 'RampDownStartTime' = @{ 'Hour' = 16 'Minute' = 15 }; 'RampDownLoadBalancingAlgorithm' = 'BreadthFirst'; 'RampDownMinimumHostsPct' = 20; 'RampDownCapacityThresholdPct' = 20; 'RampDownForceLogoffUser' = $true; 'RampDownWaitTimeMinute' = 30; 'RampDownNotificationMessage' = 'Log out now, please.'; 'RampDownStopHostsWhen' = 'ZeroSessions'; 'OffPeakStartTime' = @{ 'Hour' = 18 'Minute' = 0 }; 'OffPeakLoadBalancingAlgorithm' = 'DepthFirst'; } ) -HostPoolReference @( @{ 'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName'; 'ScalingPlanEnabled' = $false; } ) } function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{ New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpAutoStartHost 'None' -RampUpStartVMOnConnect Enable -RampUpActionOnDisconnect None -RampUpMinutesToWaitOnDisconnect 10 -RampUpActionOnLogoff None -RampUpMinutesToWaitOnLogoff 10 -peakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakStartVMOnConnect Enable -PeakActionOnDisconnect None -PeakMinutesToWaitOnDisconnect 10 -PeakMinutesToWaitOnLogoff 10 -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownStartVMOnConnect Enable -RampDownActionOnDisconnect None -RampDownMinutesToWaitOnDisconnect 10 -RampDownMinutesToWaitOnLogoff 10 -RampDownActionOnLogoff None -OffPeakStartTimeHour 22 -OffPeakStartTimeMinute 45 -OffPeakStartVMOnConnect Enable -OffPeakActionOnDisconnect None -OffPeakMinutesToWaitOnDisconnect 10 -OffPeakActionOnLogoff Deallocate -OffPeakMinutesToWaitOnLogoff 10 } function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{ New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') -RampUpStartTimeHour 6 -RampUpStartTimeMinute 30 -RampUpLoadBalancingAlgorithm BreadthFirst -RampUpMinimumHostsPct 20 -RampUpCapacityThresholdPct 20 -PeakStartTimeHour 8 -PeakStartTimeMinute 30 -PeakLoadBalancingAlgorithm DepthFirst -RampDownStartTimeHour 16 -RampDownStartTimeMinute 0 -RampDownLoadBalancingAlgorithm BreadthFirst -RampDownMinimumHostsPct 20 -RampDownCapacityThresholdPct 20 -RampDownForceLogoffUser:$true -RampDownWaitTimeMinute 30 -RampDownNotificationMessage 'Log.
⚠️ Update-AzWvdAppAttachPackage 1 11 Unassigned_Variable Update-AzWvdAppAttachPackage -ImagePackageApplication $apps is a null-valued parameter value. -ImagePackageApplication Assign value for $apps.
⚠️ Update-AzWvdAppAttachPackage 1 12 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -ImagePackageDependency $deps is not an expected parameter value type. -ImagePackageDependency Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.IMsixPackageDependencies. Now the type is string.(Static).
New-AzWvdSessionHostConfiguration 1 6 Invalid_Cmdlet subscriptionId is not a valid command name. subscriptionId Check the spell of subscriptionId.
New-AzWvdSessionHostConfiguration 1 6 Invalid_Cmdlet vNetName is not a valid command name. vNetName Check the spell of vNetName.
⚠️ Update-AzWvdAppAttachPackage 2 5 Mismatched_Parameter_Value_Type Update-AzWvdAppAttachPackage -AppAttachPackage imageObject is not an expected parameter value type. -AppAttachPackage Use correct parameter value type. Expected Type is Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20231101Preview.AppAttachPackage. Now the type is string.(Static).
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
⚠️File Change Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ It is required to update ChangeLog.md if you want to release a new version for Az.DesktopVirtualization. Add a changelog record under Upcoming Release section with past tense.
⚠️Windows PowerShell - Windows
Type Cmdlet Description Remediation
⚠️ It is required to update ChangeLog.md if you want to release a new version for Az.DesktopVirtualization. Add a changelog record under Upcoming Release section with past tense.
❌UX Metadata Check
❌PowerShell Core - Windows
Type Module ResourceType SubResourceType Command Description
Az.DesktopVirtualization Microsoft.DesktopVirtualization hostPools Invoke-AzWvdControlSessionHostUpdate Cannot find a matched parameter set for example of Invoke-AzWvdControlSessionHostUpdate
❌Windows PowerShell - Windows
Type Module ResourceType SubResourceType Command Description
Az.DesktopVirtualization Microsoft.DesktopVirtualization hostPools Invoke-AzWvdControlSessionHostUpdate Cannot find a matched parameter set for example of Invoke-AzWvdControlSessionHostUpdate
️✔️Test
️✔️PowerShell Core - Linux
️✔️PowerShell Core - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

Generated powershell cmdlets off api version 2023-11-01-preview. Includes support for the following operations:

Get-ActiveSessionHostConfiguration Create-SessionHostConfiguration Get-SessionHostConfiguration Update-SessionHostConfiguration Get-SessionHostConfigurationOperationStatus Create-SessionHostManagement Get-SessionHostManagement Update-SessionHostManagement Get-SessionHostManagementOperationStatus Invoke-ControlSessionHostUpdate Invoke-InitiateSessionHostUpdate

ryanosh avatar Feb 08 '24 06:02 ryanosh

@ryanosh could you submit a PR target generation-DesktopVirtualization-preview branch to fix the example and UX issues with reference to the message from the bot in this PR?

msJinLei avatar Feb 08 '24 07:02 msJinLei

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

github-actions[bot] avatar Feb 08 '24 07:02 github-actions[bot]

"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation"
  "Az.DesktopVirtualization","New-AzWvdRegistrationInfo","1","1","UnexpectedToken","5200","1","Unexpected token '12:00'  }  function DesktopVirtualization-New-AzWvdScalingPlan-1{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @() `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlan-2{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @(                  @{                      'Name'                           = 'Work Week';                      'DaysOfWeek'                     = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');                      'RampUpStartTime'                = @{                                                              'Hour' = 6                                                              'Minute' = 0                                                          };                      'RampUpLoadBalancingAlgorithm'   = 'BreadthFirst';                      'RampUpMinimumHostsPct'          = 20;                      'RampUpCapacityThresholdPct'     = 20;                        'PeakStartTime'                  = @{                                                              'Hour' = 8                                                              'Minute' = 30                                                          };                      'PeakLoadBalancingAlgorithm'     = 'DepthFirst';                        'RampDownStartTime'              = @{                                                              'Hour' = 16                                                              'Minute' = 15                                                          };                      'RampDownLoadBalancingAlgorithm' = 'BreadthFirst';                      'RampDownMinimumHostsPct'        = 20;                      'RampDownCapacityThresholdPct'   = 20;                      'RampDownForceLogoffUser'       = $true;                      'RampDownWaitTimeMinute'        = 30;                      'RampDownNotificationMessage'    = 'Log out now, please.';                      'RampDownStopHostsWhen'          = 'ZeroSessions';                        'OffPeakStartTime'               = @{                                                              'Hour' = 18                                                              'Minute' = 0                                                          };                      'OffPeakLoadBalancingAlgorithm'  = 'DepthFirst';                  }              ) `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{  New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpAutoStartHost 'None' `                                          -RampUpStartVMOnConnect Enable `                                          -RampUpActionOnDisconnect None `                                          -RampUpMinutesToWaitOnDisconnect 10 `                                          -RampUpActionOnLogoff None `                                          -RampUpMinutesToWaitOnLogoff 10 `                                          -peakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakStartVMOnConnect Enable `                                          -PeakActionOnDisconnect None `                                          -PeakMinutesToWaitOnDisconnect 10 `                                          -PeakMinutesToWaitOnLogoff 10 `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownStartVMOnConnect Enable `                                          -RampDownActionOnDisconnect None `                                          -RampDownMinutesToWaitOnDisconnect 10 `                                          -RampDownMinutesToWaitOnLogoff 10 `                                          -RampDownActionOnLogoff None `                                          -OffPeakStartTimeHour 22 `                                          -OffPeakStartTimeMinute 45 `                                          -OffPeakStartVMOnConnect Enable `                                          -OffPeakActionOnDisconnect None `                                          -OffPeakMinutesToWaitOnDisconnect 10 `                                          -OffPeakActionOnLogoff Deallocate `                                          -OffPeakMinutesToWaitOnLogoff 10  }  function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{  New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpLoadBalancingAlgorithm BreadthFirst `                                          -RampUpMinimumHostsPct 20 `                                          -RampUpCapacityThresholdPct 20 `                                          -PeakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakLoadBalancingAlgorithm DepthFirst `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownLoadBalancingAlgorithm BreadthFirst `                                          -RampDownMinimumHostsPct 20 `                                          -RampDownCapacityThresholdPct 20 `                                          -RampDownForceLogoffUser:$true `                                          -RampDownWaitTimeMinute 30 `                                          -RampDownNotificationMessage 'Log' in expression or statement.","12:00'  }  function DesktopVirtualization-New-AzWvdScalingPlan-1{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @() `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlan-2{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @(                  @{                      'Name'                           = 'Work Week';                      'DaysOfWeek'                     = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');                      'RampUpStartTime'                = @{                                                              'Hour' = 6                                                              'Minute' = 0                                                          };                      'RampUpLoadBalancingAlgorithm'   = 'BreadthFirst';                      'RampUpMinimumHostsPct'          = 20;                      'RampUpCapacityThresholdPct'     = 20;                        'PeakStartTime'                  = @{                                                              'Hour' = 8                                                              'Minute' = 30                                                          };                      'PeakLoadBalancingAlgorithm'     = 'DepthFirst';                        'RampDownStartTime'              = @{                                                              'Hour' = 16                                                              'Minute' = 15                                                          };                      'RampDownLoadBalancingAlgorithm' = 'BreadthFirst';                      'RampDownMinimumHostsPct'        = 20;                      'RampDownCapacityThresholdPct'   = 20;                      'RampDownForceLogoffUser'       = $true;                      'RampDownWaitTimeMinute'        = 30;                      'RampDownNotificationMessage'    = 'Log out now, please.';                      'RampDownStopHostsWhen'          = 'ZeroSessions';                        'OffPeakStartTime'               = @{                                                              'Hour' = 18                                                              'Minute' = 0                                                          };                      'OffPeakLoadBalancingAlgorithm'  = 'DepthFirst';                  }              ) `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{  New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpAutoStartHost 'None' `                                          -RampUpStartVMOnConnect Enable `                                          -RampUpActionOnDisconnect None `                                          -RampUpMinutesToWaitOnDisconnect 10 `                                          -RampUpActionOnLogoff None `                                          -RampUpMinutesToWaitOnLogoff 10 `                                          -peakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakStartVMOnConnect Enable `                                          -PeakActionOnDisconnect None `                                          -PeakMinutesToWaitOnDisconnect 10 `                                          -PeakMinutesToWaitOnLogoff 10 `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownStartVMOnConnect Enable `                                          -RampDownActionOnDisconnect None `                                          -RampDownMinutesToWaitOnDisconnect 10 `                                          -RampDownMinutesToWaitOnLogoff 10 `                                          -RampDownActionOnLogoff None `                                          -OffPeakStartTimeHour 22 `                                          -OffPeakStartTimeMinute 45 `                                          -OffPeakStartVMOnConnect Enable `                                          -OffPeakActionOnDisconnect None `                                          -OffPeakMinutesToWaitOnDisconnect 10 `                                          -OffPeakActionOnLogoff Deallocate `                                          -OffPeakMinutesToWaitOnLogoff 10  }  function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{  New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpLoadBalancingAlgorithm BreadthFirst `                                          -RampUpMinimumHostsPct 20 `                                          -RampUpCapacityThresholdPct 20 `                                          -PeakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakLoadBalancingAlgorithm DepthFirst `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownLoadBalancingAlgorithm BreadthFirst `                                          -RampDownMinimumHostsPct 20 `                                          -RampDownCapacityThresholdPct 20 `                                          -RampDownForceLogoffUser:$true `                                          -RampDownWaitTimeMinute 30 `                                          -RampDownNotificationMessage 'Log","Unexpected Error. Please check [Trouble Shotting for Unexpected Errors in Example Issues](https://github.com/Azure/azure-powershell/blob/main/documentation/Debugging-StaticAnalysis-Errors.md#Troubleshotting-Example-Issues) for more details."

https://github.com/Azure/azure-powershell/blob/main/src/DesktopVirtualization/DesktopVirtualization/help/New-AzWvdRegistrationInfo.md

msJinLei avatar Feb 12 '24 08:02 msJinLei

"Az.DesktopVirtualization","New-AzWvdRegistrationInfo","1","1","Invalid_Cmdlet","5000","1","12:00'  }  function DesktopVirtualization-New-AzWvdScalingPlan-1{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @() `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlan-2{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @(                  @{                      'Name'                           = 'Work Week';                      'DaysOfWeek'                     = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');                      'RampUpStartTime'                = @{                                                              'Hour' = 6                                                              'Minute' = 0                                                          };                      'RampUpLoadBalancingAlgorithm'   = 'BreadthFirst';                      'RampUpMinimumHostsPct'          = 20;                      'RampUpCapacityThresholdPct'     = 20;                        'PeakStartTime'                  = @{                                                              'Hour' = 8                                                              'Minute' = 30                                                          };                      'PeakLoadBalancingAlgorithm'     = 'DepthFirst';                        'RampDownStartTime'              = @{                                                              'Hour' = 16                                                              'Minute' = 15                                                          };                      'RampDownLoadBalancingAlgorithm' = 'BreadthFirst';                      'RampDownMinimumHostsPct'        = 20;                      'RampDownCapacityThresholdPct'   = 20;                      'RampDownForceLogoffUser'       = $true;                      'RampDownWaitTimeMinute'        = 30;                      'RampDownNotificationMessage'    = 'Log out now, please.';                      'RampDownStopHostsWhen'          = 'ZeroSessions';                        'OffPeakStartTime'               = @{                                                              'Hour' = 18                                                              'Minute' = 0                                                          };                      'OffPeakLoadBalancingAlgorithm'  = 'DepthFirst';                  }              ) `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{  New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpAutoStartHost 'None' `                                          -RampUpStartVMOnConnect Enable `                                          -RampUpActionOnDisconnect None `                                          -RampUpMinutesToWaitOnDisconnect 10 `                                          -RampUpActionOnLogoff None `                                          -RampUpMinutesToWaitOnLogoff 10 `                                          -peakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakStartVMOnConnect Enable `                                          -PeakActionOnDisconnect None `                                          -PeakMinutesToWaitOnDisconnect 10 `                                          -PeakMinutesToWaitOnLogoff 10 `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownStartVMOnConnect Enable `                                          -RampDownActionOnDisconnect None `                                          -RampDownMinutesToWaitOnDisconnect 10 `                                          -RampDownMinutesToWaitOnLogoff 10 `                                          -RampDownActionOnLogoff None `                                          -OffPeakStartTimeHour 22 `                                          -OffPeakStartTimeMinute 45 `                                          -OffPeakStartVMOnConnect Enable `                                          -OffPeakActionOnDisconnect None `                                          -OffPeakMinutesToWaitOnDisconnect 10 `                                          -OffPeakActionOnLogoff Deallocate `                                          -OffPeakMinutesToWaitOnLogoff 10  }  function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{  New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpLoadBalancingAlgorithm BreadthFirst `                                          -RampUpMinimumHostsPct 20 `                                          -RampUpCapacityThresholdPct 20 `                                          -PeakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakLoadBalancingAlgorithm DepthFirst `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownLoadBalancingAlgorithm BreadthFirst `                                          -RampDownMinimumHostsPct 20 `                                          -RampDownCapacityThresholdPct 20 `                                          -RampDownForceLogoffUser:$true `                                          -RampDownWaitTimeMinute 30 `                                          -RampDownNotificationMessage 'Log is not a valid command name.","12:00'  }  function DesktopVirtualization-New-AzWvdScalingPlan-1{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @() `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlan-2{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @(                  @{                      'Name'                           = 'Work Week';                      'DaysOfWeek'                     = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');                      'RampUpStartTime'                = @{                                                              'Hour' = 6                                                              'Minute' = 0                                                          };                      'RampUpLoadBalancingAlgorithm'   = 'BreadthFirst';                      'RampUpMinimumHostsPct'          = 20;                      'RampUpCapacityThresholdPct'     = 20;                        'PeakStartTime'                  = @{                                                              'Hour' = 8                                                              'Minute' = 30                                                          };                      'PeakLoadBalancingAlgorithm'     = 'DepthFirst';                        'RampDownStartTime'              = @{                                                              'Hour' = 16                                                              'Minute' = 15                                                          };                      'RampDownLoadBalancingAlgorithm' = 'BreadthFirst';                      'RampDownMinimumHostsPct'        = 20;                      'RampDownCapacityThresholdPct'   = 20;                      'RampDownForceLogoffUser'       = $true;                      'RampDownWaitTimeMinute'        = 30;                      'RampDownNotificationMessage'    = 'Log out now, please.';                      'RampDownStopHostsWhen'          = 'ZeroSessions';                        'OffPeakStartTime'               = @{                                                              'Hour' = 18                                                              'Minute' = 0                                                          };                      'OffPeakLoadBalancingAlgorithm'  = 'DepthFirst';                  }              ) `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{  New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpAutoStartHost 'None' `                                          -RampUpStartVMOnConnect Enable `                                          -RampUpActionOnDisconnect None `                                          -RampUpMinutesToWaitOnDisconnect 10 `                                          -RampUpActionOnLogoff None `                                          -RampUpMinutesToWaitOnLogoff 10 `                                          -peakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakStartVMOnConnect Enable `                                          -PeakActionOnDisconnect None `                                          -PeakMinutesToWaitOnDisconnect 10 `                                          -PeakMinutesToWaitOnLogoff 10 `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownStartVMOnConnect Enable `                                          -RampDownActionOnDisconnect None `                                          -RampDownMinutesToWaitOnDisconnect 10 `                                          -RampDownMinutesToWaitOnLogoff 10 `                                          -RampDownActionOnLogoff None `                                          -OffPeakStartTimeHour 22 `                                          -OffPeakStartTimeMinute 45 `                                          -OffPeakStartVMOnConnect Enable `                                          -OffPeakActionOnDisconnect None `                                          -OffPeakMinutesToWaitOnDisconnect 10 `                                          -OffPeakActionOnLogoff Deallocate `                                          -OffPeakMinutesToWaitOnLogoff 10  }  function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{  New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpLoadBalancingAlgorithm BreadthFirst `                                          -RampUpMinimumHostsPct 20 `                                          -RampUpCapacityThresholdPct 20 `                                          -PeakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakLoadBalancingAlgorithm DepthFirst `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownLoadBalancingAlgorithm BreadthFirst `                                          -RampDownMinimumHostsPct 20 `                                          -RampDownCapacityThresholdPct 20 `                                          -RampDownForceLogoffUser:$true `                                          -RampDownWaitTimeMinute 30 `                                          -RampDownNotificationMessage 'Log out now, please.' `                                          -RampDownStopHostsWhen ZeroSessions `                                          -OffPeakStartTimeHour 22 `                                          -OffPeakStartTimeMinute 45 `                                          -OffPeakLoadBalancingAlgorithm DepthFirst  }  function DesktopVirtualization-New-AzWvdSessionHostConfiguration-1{  New-AzWvdSessionHostConfiguration -ResourceGroupName ResourceGroupName `                              -HostPoolName HostPoolName `                              -DiskInfoType 'Standard_LRS' `                              -DomainInfoJoinType 'AzureActiveDirectory' `                              -ImageInfoType 'Marketplace' `                              -NetworkInfoSubnetId '/subscriptions/{subscriptionId}/resourceGroups/resourceGrouName/providers/Microsoft.Network/virtualNetworks/{vNetName}/subnets/default' `                              -VMAdminCredentialsPasswordKeyvaultSecretUri 'PasswordSecretUri' `                              -VMAdminCredentialsUserNameKeyvaultSecretUri 'PasswordUsernameUri' `                              -VMNamePrefix 'createTest' `                              -VMSizeId 'Standard_D2s_v3' `                              -MarketplaceInfoExactVersion '22631.2715.231114' `                              -MarketplaceInfoOffer 'office-365' `                              -MarketplaceInfoPublisher 'microsoftwindowsdesktop' `                              -MarketplaceInfoSku 'win11-23h2-avd-m365' `                              -SecurityInfoSecureBootEnabled `                              -SecurityInfoType 'TrustedLaunch' `                              -SecurityInfoVTpmEnabled `                              -VmLocation westus2 `                              -VmResourceGroup ResourceGroupName  }  function DesktopVirtualization-New-AzWvdSessionHostManagement-1{  New-AzWvdSessionHostManagement -ResourceGroupName ResourceGroupName `                              -HostPoolName HostPoolName `                              -ScheduledDateTimeZone 'Alaskan Standard Time' `                              -UpdateDeleteOriginalVm `                              -UpdateMaxVmsRemoved 4 `                              -UpdateLogOffDelayMinute 5 `                              -UpdateLogOffMessage 'logging off for hostpool update.'  }  function DesktopVirtualization-New-AzWvdWorkspace-1{  New-AzWvdWorkspace -ResourceGroupName ResourceGroupName `                          -Name WorkspaceName `                          -Location 'eastus' `                          -FriendlyName 'Friendly Name' `                          -ApplicationGroupReference $null `                          -Description 'Description'  }  function DesktopVirtualization-New-AzWvdWorkspace-2{  New-AzWvdWorkspace -ResourceGroupName ResourceGroupName `                          -Name WorkspaceName `                          -Location 'eastus' `                          -FriendlyName 'Friendly Name' `                          -ApplicationGroupReference '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName1','/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName2' `                          -Description 'Description'  }  function DesktopVirtualization-Register-AzWvdApplicationGroup-1{  Register-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName `                                      -WorkspaceName WorkspaceName `                                      -ApplicationGroupPath '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName'  }  function DesktopVirtualization-Remove-AzWvdAppAttachPackage-1{  Remove-AzWvdAppAttachPackage -ResourceGroupName ResourceGroupName -Name HostPoolName  }  function DesktopVirtualization-Remove-AzWvdApplication-1{  Remove-AzWvdApplication -ResourceGroupName ResourceGroupName -ApplicationGroupName ApplicationGroupName -Name ApplicationName  }  function DesktopVirtualization-Remove-AzWvdApplicationGroup-1{  Remove-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName -Name ApplicationGroupName  }  function DesktopVirtualization-Remove-AzWvdHostPool-1{  Remove-AzWvdHostPool -ResourceGroupName ResourceGroupName -Name HostPoolName  }  function DesktopVirtualization-Remove-AzWvdMsixPackage-1{  Remove-AzWvdMsixPackage -HostPoolName HostPoolName -ResourceGroupName ResourceGroupName -SubscriptionId SubscriptionId -FullName PackageFullName  }  function DesktopVirtualization-Remove-AzWvdPrivateEndpointConnection-1{  Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -HostpoolName HostPoolName  }  function DesktopVirtualization-Remove-AzWvdPrivateEndpointConnection-2{  Remove-AzWvdPrivateEndpointConnection -ResourceGroupName ResourceGroupName -Name WvdPrivateEndpointConnectionName -WorkspaceName WorkspaceName  }  function DesktopVirtualization-Remove-AzWvdRegistrationInfo-1{  Remove-AzWvdRegistrationInfo -resourceGroupName rgName -hostpoolName hpName  }  function DesktopVirtualization-Remove-AzWvdScalingPlan-1{  Remove-AzWvdScalingPlan -ResourceGroupName ResourceGroupName -Name scalingPlan1  }  function DesktopVirtualization-Remove-AzWvdScalingPlanPersonalSchedule-1{  Remove-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName  }  function DesktopVirtualization-Remove-AzWvdScalingPlanPooledSchedule-1{  Remove-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName -ScalingPlanName spName -ScalingPlanScheduleName scheduleName  }  function DesktopVirtualization-Remove-AzWvdSessionHost-1{  Remove-AzWvdSessionHost -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -Name SessionHostName  }  function DesktopVirtualization-Remove-AzWvdUserSession-1{  Remove-AzWvdUserSession -ResourceGroupName ResourceGroupName -HostPoolName HostPoolName -SessionHostName SessionHostName -Id 2  }  function DesktopVirtualization-Remove-AzWvdWorkspace-1{  Remove-AzWvdWorkspace -ResourceGroupName ResourceGroupName -Name WorkspaceName  }  function DesktopVirtualization-Send-AzWvdUserSessionMessage-1{  Send-AzWvdUserSessionMessage -ResourceGroupName ResourceGroupName `                                       -HostPoolName HostPoolName `                                       -SessionHostName SessionHostName `                                       -UserSessionId 4 `                                       -MessageBody 'Some Message' `                                       -MessageTitle 'Some Title'  }  function DesktopVirtualization-Unregister-AzWvdApplicationGroup-1{  Unregister-AzWvdApplicationGroup -ResourceGroupName ResourceGroupName `                                      -WorkspaceName WorkspaceName `                                      -ApplicationGroupPath '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/applicationGroups/ApplicationGroupName'  }  function DesktopVirtualization-Update-AzWvdAppAttachPackage-1{  '","Check the spell of 12:00'  }  function DesktopVirtualization-New-AzWvdScalingPlan-1{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @() `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlan-2{  New-AzWvdScalingPlan `              -ResourceGroupName ResourceGroupName `              -Name 'ScalingPlan1' `              -Location 'westcentralus' `              -Description 'Description' `              -FriendlyName 'Friendly Name' `              -HostPoolType 'Pooled' `              -TimeZone 'Pacific Standard Time' `              -Schedule @(                  @{                      'Name'                           = 'Work Week';                      'DaysOfWeek'                     = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');                      'RampUpStartTime'                = @{                                                              'Hour' = 6                                                              'Minute' = 0                                                          };                      'RampUpLoadBalancingAlgorithm'   = 'BreadthFirst';                      'RampUpMinimumHostsPct'          = 20;                      'RampUpCapacityThresholdPct'     = 20;                        'PeakStartTime'                  = @{                                                              'Hour' = 8                                                              'Minute' = 30                                                          };                      'PeakLoadBalancingAlgorithm'     = 'DepthFirst';                        'RampDownStartTime'              = @{                                                              'Hour' = 16                                                              'Minute' = 15                                                          };                      'RampDownLoadBalancingAlgorithm' = 'BreadthFirst';                      'RampDownMinimumHostsPct'        = 20;                      'RampDownCapacityThresholdPct'   = 20;                      'RampDownForceLogoffUser'       = $true;                      'RampDownWaitTimeMinute'        = 30;                      'RampDownNotificationMessage'    = 'Log out now, please.';                      'RampDownStopHostsWhen'          = 'ZeroSessions';                        'OffPeakStartTime'               = @{                                                              'Hour' = 18                                                              'Minute' = 0                                                          };                      'OffPeakLoadBalancingAlgorithm'  = 'DepthFirst';                  }              ) `              -HostPoolReference @(                  @{                      'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName';                      'ScalingPlanEnabled' = $false;                  }              )  }  function DesktopVirtualization-New-AzWvdScalingPlanPersonalSchedule-1{  New-AzWvdScalingPlanPersonalSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpAutoStartHost 'None' `                                          -RampUpStartVMOnConnect Enable `                                          -RampUpActionOnDisconnect None `                                          -RampUpMinutesToWaitOnDisconnect 10 `                                          -RampUpActionOnLogoff None `                                          -RampUpMinutesToWaitOnLogoff 10 `                                          -peakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakStartVMOnConnect Enable `                                          -PeakActionOnDisconnect None `                                          -PeakMinutesToWaitOnDisconnect 10 `                                          -PeakMinutesToWaitOnLogoff 10 `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownStartVMOnConnect Enable `                                          -RampDownActionOnDisconnect None `                                          -RampDownMinutesToWaitOnDisconnect 10 `                                          -RampDownMinutesToWaitOnLogoff 10 `                                          -RampDownActionOnLogoff None `                                          -OffPeakStartTimeHour 22 `                                          -OffPeakStartTimeMinute 45 `                                          -OffPeakStartVMOnConnect Enable `                                          -OffPeakActionOnDisconnect None `                                          -OffPeakMinutesToWaitOnDisconnect 10 `                                          -OffPeakActionOnLogoff Deallocate `                                          -OffPeakMinutesToWaitOnLogoff 10  }  function DesktopVirtualization-New-AzWvdScalingPlanPooledSchedule-1{  New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName `                                          -ScalingPlanName spName `                                          -ScalingPlanScheduleName scheduleName `                                          -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `                                          -RampUpStartTimeHour 6 `                                          -RampUpStartTimeMinute 30 `                                          -RampUpLoadBalancingAlgorithm BreadthFirst `                                          -RampUpMinimumHostsPct 20 `                                          -RampUpCapacityThresholdPct 20 `                                          -PeakStartTimeHour 8 `                                          -PeakStartTimeMinute 30 `                                          -PeakLoadBalancingAlgorithm DepthFirst `                                          -RampDownStartTimeHour 16 `                                          -RampDownStartTimeMinute 0 `                                          -RampDownLoadBalancingAlgorithm BreadthFirst `                                          -RampDownMinimumHostsPct 20 `                                          -RampDownCapacityThresholdPct 20 `                                          -RampDownForceLogoffUser:$true `                                          -RampDownWaitTimeMinute 30 `                                          -RampDownNotificationMessage 'Log."

msJinLei avatar Feb 12 '24 08:02 msJinLei

  "Az.DesktopVirtualization","New-AzWvdSessionHostConfiguration","1","6","Invalid_Cmdlet","5000","1","subscriptionId is not a valid command name.","subscriptionId","Check the spell of subscriptionId."
  "Az.DesktopVirtualization","New-AzWvdSessionHostConfiguration","1","6","Invalid_Cmdlet","5000","1","vNetName is not a valid command name.","vNetName","Check the spell of vNetName."

Please refer to inline comments

msJinLei avatar Feb 12 '24 09:02 msJinLei

  "Module","Severity","ResourceType","SubResourceType","Command","Description"
  "Az.DesktopVirtualization","1","Microsoft.DesktopVirtualization","hostPools","Invoke-AzWvdControlSessionHostUpdate","Cannot find a matched parameter set for example of Invoke-AzWvdControlSessionHostUpdate"

Refer to inline comments

msJinLei avatar Feb 12 '24 09:02 msJinLei

/azp run azure-powershell - powershell-core

msJinLei avatar Feb 22 '24 04:02 msJinLei

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Feb 22 '24 04:02 azure-pipelines[bot]