Skip to content

Commit d5f6a1c

Browse files
azure-pipelines[bot]azure-powershell-botLei jin
authored
Migrate DesktopVirtualization from generation to main (#26413)
* Move DesktopVirtualization to main * Remove ProgressAction --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Lei jin <[email protected]>
1 parent 26f07f2 commit d5f6a1c

File tree

89 files changed

+149
-12
lines changed

Some content is hidden

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

89 files changed

+149
-12
lines changed

src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,46 @@ directive:
100100
parameter-name: Force
101101
set:
102102
parameter-description: 'Specify to force userSession deletion.'
103+
- where:
104+
verb: Register
105+
set:
106+
preview-announcement:
107+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
108+
estimated-ga-date: 2024-11-30
109+
- where:
110+
verb: Unregister
111+
set:
112+
preview-announcement:
113+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
114+
estimated-ga-date: 2024-11-30
115+
- where:
116+
verb: Send
117+
set:
118+
preview-announcement:
119+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
120+
estimated-ga-date: 2024-11-30
121+
- where:
122+
verb: Expand
123+
set:
124+
preview-announcement:
125+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
126+
estimated-ga-date: 2024-11-30
127+
- where:
128+
verb: Get
129+
set:
130+
preview-announcement:
131+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
132+
estimated-ga-date: 2024-11-30
133+
- where:
134+
verb: New
135+
set:
136+
preview-announcement:
137+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
138+
estimated-ga-date: 2024-11-30
139+
- where:
140+
verb: Update
141+
set:
142+
preview-announcement:
143+
preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)
144+
estimated-ga-date: 2024-11-30
103145
```

src/DesktopVirtualization/DesktopVirtualization.Autorest/build-module.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
15+
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -67,6 +67,8 @@ if(-not $Isolated -and -not $Debugger) {
6767
$binFolder = Join-Path $PSScriptRoot 'bin'
6868
$objFolder = Join-Path $PSScriptRoot 'obj'
6969

70+
$isAzure = [System.Convert]::ToBoolean('true')
71+
7072
if(-not $Debugger) {
7173
Write-Host -ForegroundColor Green 'Cleaning build folders...'
7274
$null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
@@ -143,7 +145,7 @@ if($NoDocs) {
143145
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
144146
}
145147
$null = New-Item -ItemType Directory -Force -Path $docsFolder
146-
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
148+
$addComplexInterfaceInfo = !$isAzure
147149
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
148150
}
149151

@@ -169,4 +171,13 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
169171
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
170172
}
171173

172-
Write-Host -ForegroundColor Green '-------------Done-------------'
174+
if (-not $DisableAfterBuildTasks){
175+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
176+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
177+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
178+
Write-Host -ForegroundColor Green 'Running after build tasks...'
179+
. $afterBuildTasksPath @afterBuildTasksArgs
180+
}
181+
}
182+
183+
Write-Host -ForegroundColor Green '-------------Done-------------'

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_Expand", SupportsShouldProcess = true)]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IExpandMsixImage))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandExpanded", SupportsShouldProcess = true)]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IExpandMsixImage))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaIdentity", SupportsShouldProcess = true)]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IExpandMsixImage))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaIdentityExpanded", SupportsShouldProcess = true)]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IExpandMsixImage))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_Get")]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IApplicationGroup))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application group.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_GetViaIdentity")]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IApplicationGroup))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application group.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_List")]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IApplicationGroup))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets
1313
/// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups"
1414
/// </remarks>
1515
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_List1")]
16+
[Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-30T00:00:00.000Z")]
1617
[global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20230905.IApplicationGroup))]
1718
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups in subscription.")]
1819
[global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated]

0 commit comments

Comments
 (0)