Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alecb/generation 20240403 Stable Release #25951

Merged
merged 21 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
537947d
built new module on stable, all tests pass
alec-baird Aug 28, 2024
77ca4e7
Updated examples
alec-baird Aug 29, 2024
143706e
Added missing custom powershell and tests, renamed Senerio to Scenario
alec-baird Aug 29, 2024
a4ef756
Ran tests after adding custom posh
alec-baird Aug 29, 2024
5e05c2d
Added breaking change supporessions for upgraded commonTypes from v2 …
alec-baird Sep 3, 2024
1d098b4
Ran autorest v4
alec-baird Sep 3, 2024
6b9a1ba
added v4 directives
alec-baird Sep 3, 2024
e361384
Committing work for v4 upgrade,
alec-baird Sep 4, 2024
f833ede
Updated custom cmdlets to use autorest v4, lost function exports for …
alec-baird Sep 5, 2024
fc65c2c
Updated custom to v4, removed PrivateLink from export
alec-baird Sep 5, 2024
e9ab424
Fixed PEC and PLR cmdlets, removed breaking change issues to check st…
alec-baird Sep 6, 2024
ebe613d
Added breakingChangeExceptions, all tests pass but RemoveSH
alec-baird Sep 6, 2024
a1eb332
All tests pass
alec-baird Sep 9, 2024
1c13802
Empty Commit to run CI again because I don't have run perms
alec-baird Sep 9, 2024
f50576e
added identity to readme
alec-baird Sep 10, 2024
a3c62cf
Empty commit to re-run CI
alec-baird Sep 12, 2024
dfea28c
Added Examples back that were lost from v4
alec-baird Sep 12, 2024
00c5dff
Removed BreakingChangeIssues to determine what changes we have
alec-baird Sep 23, 2024
3dfb95d
Added breaking change exceptions (largely due to autorest v3 -> v4 an…
alec-baird Sep 23, 2024
45bffd7
built module with removed directive and reverted versioning
alec-baird Nov 4, 2024
3d87157
Removed comment
alec-baird Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
19 changes: 12 additions & 7 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,29 @@ 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"
# use-extension:
# "@autorest/powershell": "3.x"
alec-baird marked this conversation as resolved.
Show resolved Hide resolved

#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