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

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +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', '*'
FunctionsToExport = 'Disconnect-AzWvdUserSession', 'Expand-AzWvdMsixImage', 'Get-AzWvdActiveSessionHostConfiguration', '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-AzWvdSessionHostConfiguration', 'Get-AzWvdSessionHostManagement', 'Get-AzWvdSessionHostManagementsUpdateStatus', 'Get-AzWvdStartMenuItem', 'Get-AzWvdUserSession', 'Get-AzWvdWorkspace', 'Import-AzWvdAppAttachPackageInfo', 'Invoke-AzWvdControlSessionHostUpdate', 'Invoke-AzWvdInitiateSessionHostUpdate', 'Invoke-AzWvdRetrySessionHostProvisioning', 'New-AzWvdAppAttachPackage', 'New-AzWvdApplication', 'New-AzWvdApplicationGroup', 'New-AzWvdHostPool', 'New-AzWvdMsixPackage', 'New-AzWvdRegistrationInfo', 'New-AzWvdScalingPlan', 'New-AzWvdScalingPlanPersonalSchedule', 'New-AzWvdScalingPlanPooledSchedule', 'New-AzWvdSessionHostConfiguration', 'New-AzWvdSessionHostManagement', '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-AzWvdSessionHostConfiguration', 'Update-AzWvdSessionHostManagement', 'Update-AzWvdWorkspace', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{
Expand Down
46 changes: 44 additions & 2 deletions src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,19 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest

``` yaml
commit: 50175f111e9c899249e79eb082a75fb8a7aba0e2
commit: 6de4fd441872ef5a6d0cebf177988e8661410e04
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/preview/2024-04-08-preview/desktopvirtualization.json

module-version: 2.1.0
title: DesktopVirtualizationClient

nested-object-to-string: true

# 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"
Expand Down Expand Up @@ -100,4 +103,43 @@ directive:
parameter-name: Force
set:
parameter-description: 'Specify to force userSession deletion.'
- where:
parameter-name: ProgressSessionHostsInProgress
set:
parameter-name: SessionHostsInProgress
- where:
verb: Get
subject: AppAttachPackage
set:
preview-announcement:
preview-message: This cmdlet is currently in preview, behavior is subject to change.
estimated-ga-date: 2024-04-01
- where:
verb: Import
subject: AppAttachPackageInfo
set:
preview-announcement:
preview-message: This cmdlet is currently in preview, behavior is subject to change.
estimated-ga-date: 2024-04-01
- where:
verb: New
subject: AppAttachPackage
set:
preview-announcement:
preview-message: This cmdlet is currently in preview, behavior is subject to change.
estimated-ga-date: 2024-04-01
- where:
verb: Remove
subject: AppAttachPackage
set:
preview-announcement:
preview-message: This cmdlet is currently in preview, behavior is subject to change.
estimated-ga-date: 2024-04-01
- where:
verb: Update
subject: AppAttachPackage
set:
preview-announcement:
preview-message: This cmdlet is currently in preview, behavior is subject to change.
estimated-ga-date: 2024-04-01
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"resourceType": "appAttachPackages",
"apiVersion": "2024-04-08-preview",
"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]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "applicationGroups/applications",
"apiVersion": "2023-09-05",
"apiVersion": "2024-04-08-preview",
"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-08-preview",
"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-08-preview",
"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-08-preview",
"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-08-preview",
"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-08-preview",
"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-08-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization"
},
Expand Down Expand Up @@ -47,6 +47,49 @@
]
}
]
},
{
"name": "Invoke-AzWvdRetrySessionHostProvisioning",
"description": "Retry provisioning on a SessionHost.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/retryProvisioning",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.desktopvirtualization/invoke-azwvdretrysessionhostprovisioning"
},
"parameterSets": [
{
"parameters": [
"-HostPoolName <String>",
"-ResourceGroupName <String>",
"-SessionHostName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Retry provisioning on a SessionHost.",
"parameters": [
{
"name": "-HostPoolName",
"value": "[Path.hostPoolName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SessionHostName",
"value": "[Path.sessionHostName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Loading