Skip to content

Commit 6174dd5

Browse files
authored
Alecb/generation 20240403 Stable Release (#25951)
* 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
1 parent 258c5d7 commit 6174dd5

File tree

175 files changed

+15292
-6915
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+15292
-6915
lines changed

src/DesktopVirtualization/DesktopVirtualization.Autorest/Az.DesktopVirtualization.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.DesktopVirtualization.private.dll'
1313
FormatsToProcess = './Az.DesktopVirtualization.format.ps1xml'
14-
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', '*'
15-
AliasesToExport = '*'
14+
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'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DesktopVirtualization'

src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
This directory contains the PowerShell module for the DesktopVirtualization service.
44

55
---
6-
## Status
7-
[![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/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all
@@ -47,21 +44,26 @@ In this directory, run AutoRest:
4744
> see https://aka.ms/autorest
4845
4946
``` yaml
50-
commit: 50175f111e9c899249e79eb082a75fb8a7aba0e2
47+
commit: 0feca76719343b0cb1e6a9d6064c7037827706ca
5148
require:
5249
- $(this-folder)/../../readme.azure.noprofile.md
5350
sanitize-names: true
5451
subject-prefix: 'Wvd'
5552
input-file:
56-
- $(repo)/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2023-09-05/desktopvirtualization.json
53+
- $(repo)/specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/desktopvirtualization.json
5754

5855
module-version: 2.1.0
5956
title: DesktopVirtualizationClient
60-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
61-
use-extension:
62-
"@autorest/powershell": "3.x"
57+
58+
#v4 migration settings
59+
keep-pec-and-plr: true
60+
disable-transform-identity-type: true
61+
flatten-userassignedidentity: false
6362

6463
directive:
64+
- where:
65+
variant: ^CreateViaIdentity.*$
66+
remove: true
6567
- where:
6668
verb: New
6769
subject: HostPool
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"resourceType": "appAttachPackages",
3+
"apiVersion": "2024-04-03",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzWvdAppAttachPackage",
10+
"description": "Get an app attach package.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization/get-azwvdappattachpackage"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Get an app attach package.",
29+
"parameters": [
30+
{
31+
"name": "-Name",
32+
"value": "[Path.appAttachPackageName]"
33+
},
34+
{
35+
"name": "-ResourceGroupName",
36+
"value": "[Path.resourceGroupName]"
37+
},
38+
{
39+
"name": "-SubscriptionId",
40+
"value": "[Path.subscriptionId]"
41+
}
42+
]
43+
}
44+
]
45+
},
46+
{
47+
"name": "Remove-AzWvdAppAttachPackage",
48+
"description": "Remove an App Attach Package.",
49+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}",
50+
"help": {
51+
"learnMore": {
52+
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization/remove-azwvdappattachpackage"
53+
},
54+
"parameterSets": [
55+
{
56+
"parameters": [
57+
"-Name <String>",
58+
"-ResourceGroupName <String>",
59+
"[-SubscriptionId <String>]"
60+
]
61+
}
62+
]
63+
},
64+
"examples": [
65+
{
66+
"description": "Remove an App Attach Package.",
67+
"parameters": [
68+
{
69+
"name": "-Name",
70+
"value": "[Path.appAttachPackageName]"
71+
},
72+
{
73+
"name": "-ResourceGroupName",
74+
"value": "[Path.resourceGroupName]"
75+
},
76+
{
77+
"name": "-SubscriptionId",
78+
"value": "[Path.subscriptionId]"
79+
}
80+
]
81+
}
82+
]
83+
}
84+
]
85+
}

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/applicationGroups-applications.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "applicationGroups/applications",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/applicationGroups-desktops.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "applicationGroups/desktops",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/applicationGroups.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "applicationGroups",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/hostPools-msixPackages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "hostPools/msixPackages",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/hostPools-privateEndpointConnections.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "hostPools/privateEndpointConnections",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/hostPools-sessionHosts-userSessions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "hostPools/sessionHosts/userSessions",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

src/DesktopVirtualization/DesktopVirtualization.Autorest/UX/Microsoft.DesktopVirtualization/hostPools-sessionHosts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "hostPools/sessionHosts",
3-
"apiVersion": "2023-09-05",
3+
"apiVersion": "2024-04-03",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
66
},

0 commit comments

Comments
 (0)