Skip to content

Commit

Permalink
Alecb/generation 20240403 Stable Release (#25951)
Browse files Browse the repository at this point in the history
* built new module on stable, all tests pass

* Updated examples

* Added missing custom powershell and tests, renamed Senerio to Scenario

* Ran tests after adding custom posh

* Added breaking change supporessions for upgraded commonTypes from v2 to v5

* Ran autorest v4

* added v4 directives

* Committing work for v4 upgrade,

* Updated custom cmdlets to use autorest v4, lost function exports for PrivateLink

* Updated custom to v4, removed PrivateLink from export

* Fixed PEC and PLR cmdlets, removed breaking change issues to check status

* Added breakingChangeExceptions, all tests pass but RemoveSH

* All tests pass

* Empty Commit to run CI again because I don't have run perms

* added identity to readme

* Empty commit to re-run CI

* Added Examples back that were lost from v4

* Removed BreakingChangeIssues to determine what changes we have

* Added breaking change exceptions (largely due to autorest v3 -> v4 and swagger commontypes v2 -> v5

* built module with removed directive and reverted versioning

* Removed comment
  • Loading branch information
alec-baird authored Nov 5, 2024
1 parent 258c5d7 commit 6174dd5
Show file tree
Hide file tree
Showing 175 changed files with 15,292 additions and 6,915 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.DesktopVirtualization.private.dll'
FormatsToProcess = './Az.DesktopVirtualization.format.ps1xml'
FunctionsToExport = 'Disconnect-AzWvdUserSession', 'Expand-AzWvdMsixImage', 'Get-AzWvdApplication', 'Get-AzWvdApplicationGroup', 'Get-AzWvdDesktop', 'Get-AzWvdHostPool', 'Get-AzWvdHostPoolRegistrationToken', 'Get-AzWvdMsixPackage', 'Get-AzWvdPrivateEndpointConnection', 'Get-AzWvdPrivateLinkResource', 'Get-AzWvdRegistrationInfo', 'Get-AzWvdScalingPlan', 'Get-AzWvdScalingPlanPersonalSchedule', 'Get-AzWvdScalingPlanPooledSchedule', 'Get-AzWvdSessionHost', 'Get-AzWvdStartMenuItem', 'Get-AzWvdUserSession', 'Get-AzWvdWorkspace', 'New-AzWvdApplication', 'New-AzWvdApplicationGroup', 'New-AzWvdHostPool', 'New-AzWvdMsixPackage', 'New-AzWvdRegistrationInfo', 'New-AzWvdScalingPlan', 'New-AzWvdScalingPlanPersonalSchedule', 'New-AzWvdScalingPlanPooledSchedule', 'New-AzWvdWorkspace', 'Register-AzWvdApplicationGroup', 'Remove-AzWvdApplication', 'Remove-AzWvdApplicationGroup', 'Remove-AzWvdHostPool', 'Remove-AzWvdMsixPackage', 'Remove-AzWvdPrivateEndpointConnection', 'Remove-AzWvdRegistrationInfo', 'Remove-AzWvdScalingPlan', 'Remove-AzWvdScalingPlanPersonalSchedule', 'Remove-AzWvdScalingPlanPooledSchedule', 'Remove-AzWvdSessionHost', 'Remove-AzWvdUserSession', 'Remove-AzWvdWorkspace', 'Send-AzWvdUserSessionMessage', 'Unregister-AzWvdApplicationGroup', 'Update-AzWvdApplication', 'Update-AzWvdApplicationGroup', 'Update-AzWvdDesktop', 'Update-AzWvdHostPool', 'Update-AzWvdMsixPackage', 'Update-AzWvdScalingPlan', 'Update-AzWvdScalingPlanPersonalSchedule', 'Update-AzWvdScalingPlanPooledSchedule', 'Update-AzWvdSessionHost', 'Update-AzWvdWorkspace', '*'
AliasesToExport = '*'
FunctionsToExport = 'Disconnect-AzWvdUserSession', 'Expand-AzWvdMsixImage', 'Get-AzWvdAppAttachPackage', 'Get-AzWvdApplication', 'Get-AzWvdApplicationGroup', 'Get-AzWvdDesktop', 'Get-AzWvdHostPool', 'Get-AzWvdHostPoolRegistrationToken', 'Get-AzWvdMsixPackage', 'Get-AzWvdPrivateEndpointConnection', 'Get-AzWvdPrivateLinkResource', 'Get-AzWvdRegistrationInfo', 'Get-AzWvdScalingPlan', 'Get-AzWvdScalingPlanPersonalSchedule', 'Get-AzWvdScalingPlanPooledSchedule', 'Get-AzWvdSessionHost', 'Get-AzWvdStartMenuItem', 'Get-AzWvdUserSession', 'Get-AzWvdWorkspace', 'Import-AzWvdAppAttachPackageInfo', 'New-AzWvdAppAttachPackage', 'New-AzWvdApplication', 'New-AzWvdApplicationGroup', 'New-AzWvdHostPool', 'New-AzWvdMsixPackage', 'New-AzWvdRegistrationInfo', 'New-AzWvdScalingPlan', 'New-AzWvdScalingPlanPersonalSchedule', 'New-AzWvdScalingPlanPooledSchedule', 'New-AzWvdWorkspace', 'Register-AzWvdApplicationGroup', 'Remove-AzWvdAppAttachPackage', 'Remove-AzWvdApplication', 'Remove-AzWvdApplicationGroup', 'Remove-AzWvdHostPool', 'Remove-AzWvdMsixPackage', 'Remove-AzWvdPrivateEndpointConnection', 'Remove-AzWvdRegistrationInfo', 'Remove-AzWvdScalingPlan', 'Remove-AzWvdScalingPlanPersonalSchedule', 'Remove-AzWvdScalingPlanPooledSchedule', 'Remove-AzWvdSessionHost', 'Remove-AzWvdUserSession', 'Remove-AzWvdWorkspace', 'Send-AzWvdUserSessionMessage', 'Unregister-AzWvdApplicationGroup', 'Update-AzWvdAppAttachPackage', 'Update-AzWvdApplication', 'Update-AzWvdApplicationGroup', 'Update-AzWvdDesktop', 'Update-AzWvdHostPool', 'Update-AzWvdMsixPackage', 'Update-AzWvdScalingPlan', 'Update-AzWvdScalingPlanPersonalSchedule', 'Update-AzWvdScalingPlanPooledSchedule', 'Update-AzWvdSessionHost', 'Update-AzWvdWorkspace'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DesktopVirtualization'
Expand Down
18 changes: 10 additions & 8 deletions src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
This directory contains the PowerShell module for the DesktopVirtualization service.

---
## Status
[![Az.DesktopVirtualization](https://img.shields.io/powershellgallery/v/Az.DesktopVirtualization.svg?style=flat-square&label=Az.DesktopVirtualization "Az.DesktopVirtualization")](https://www.powershellgallery.com/packages/Az.DesktopVirtualization/)

## Info
- Modifiable: yes
- Generated: all
Expand Down Expand Up @@ -47,21 +44,26 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
commit: 50175f111e9c899249e79eb082a75fb8a7aba0e2
commit: 0feca76719343b0cb1e6a9d6064c7037827706ca
require:
- $(this-folder)/../../readme.azure.noprofile.md
sanitize-names: true
subject-prefix: 'Wvd'
input-file:
- $(repo)/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/desktopvirtualization.json
- $(repo)/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/desktopvirtualization.json

module-version: 2.1.0
title: DesktopVirtualizationClient
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

#v4 migration settings
keep-pec-and-plr: true
disable-transform-identity-type: true
flatten-userassignedidentity: false

directive:
- where:
variant: ^CreateViaIdentity.*$
remove: true
- where:
verb: New
subject: HostPool
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"resourceType": "appAttachPackages",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
"commands": [
{
"name": "Get-AzWvdAppAttachPackage",
"description": "Get an app attach package.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvdappattachpackage"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Get an app attach package.",
"parameters": [
{
"name": "-Name",
"value": "[Path.appAttachPackageName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzWvdAppAttachPackage",
"description": "Remove an App Attach Package.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization/remove-azwvdappattachpackage"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Remove an App Attach Package.",
"parameters": [
{
"name": "-Name",
"value": "[Path.appAttachPackageName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "applicationGroups/applications",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "applicationGroups/desktops",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "applicationGroups",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "hostPools/msixPackages",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "hostPools/privateEndpointConnections",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "hostPools/sessionHosts/userSessions",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "hostPools/sessionHosts",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,51 +1,13 @@
{
"resourceType": "hostPools",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
"commands": [
{
"name": "Expand-AzWvdMsixImage",
"description": "Expands and Lists MSIX packages in an Image, given the Image Path.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization/expand-azwvdmsiximage"
},
"parameterSets": [
{
"parameters": [
"-HostPoolName <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Expands and Lists MSIX packages in an Image, given the Image Path.",
"parameters": [
{
"name": "-HostPoolName",
"value": "[Path.hostPoolName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Get-AzWvdHostPoolRegistrationToken",
"description": "Registration token of the host pool.",
"description": "Operation to list the RegistrationTokens associated with the HostPool",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken",
"help": {
"learnMore": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "scalingPlans/personalSchedules",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "scalingPlans/pooledSchedules",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "scalingPlans",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "workspaces/privateEndpointConnections",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "workspaces",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-03",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Get the Windows virtual desktop registration info.
Get the Windows virtual desktop registration info.
#>
function Get-AzWvdRegistrationInfo {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.RegistrationInfo')]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.RegistrationInfo')]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter()]
Expand Down
Loading

0 comments on commit 6174dd5

Please sign in to comment.