Skip to content

Commit 5327ecd

Browse files
[skip ci] Archive 1ccbf5b (#27333)
1 parent 1ccbf5b commit 5327ecd

File tree

373 files changed

+7608
-2667
lines changed

Some content is hidden

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

373 files changed

+7608
-2667
lines changed

generated/DesktopVirtualization/DesktopVirtualization.Autorest/Az.DesktopVirtualization.format.ps1xml

Lines changed: 318 additions & 68 deletions
Large diffs are not rendered by default.

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Disconnect-AzWvdUserSession.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,15 @@ begin {
205205
$PSBoundParameters['OutBuffer'] = 1
206206
}
207207
$parameterSet = $PSCmdlet.ParameterSetName
208+
209+
$testPlayback = $false
210+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
211+
212+
$context = Get-AzContext
213+
if (-not $context -and -not $testPlayback) {
214+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
215+
exit
216+
}
208217

209218
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
210219
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -230,8 +239,6 @@ begin {
230239
DisconnectViaIdentitySessionHost = 'Az.DesktopVirtualization.private\Disconnect-AzWvdUserSession_DisconnectViaIdentitySessionHost';
231240
}
232241
if (('Disconnect') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
233-
$testPlayback = $false
234-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
235242
if ($testPlayback) {
236243
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
237244
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Expand-AzWvdMsixImage.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ begin {
181181
$PSBoundParameters['OutBuffer'] = 1
182182
}
183183
$parameterSet = $PSCmdlet.ParameterSetName
184+
185+
$testPlayback = $false
186+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
187+
188+
$context = Get-AzContext
189+
if (-not $context -and -not $testPlayback) {
190+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
191+
exit
192+
}
184193

185194
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
186195
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -208,8 +217,6 @@ begin {
208217
ExpandViaJsonString = 'Az.DesktopVirtualization.private\Expand-AzWvdMsixImage_ExpandViaJsonString';
209218
}
210219
if (('Expand', 'ExpandExpanded', 'ExpandViaJsonFilePath', 'ExpandViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
211-
$testPlayback = $false
212-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
213220
if ($testPlayback) {
214221
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
215222
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdActiveSessionHostConfiguration.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ begin {
140140
$PSBoundParameters['OutBuffer'] = 1
141141
}
142142
$parameterSet = $PSCmdlet.ParameterSetName
143+
144+
$testPlayback = $false
145+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
146+
147+
$context = Get-AzContext
148+
if (-not $context -and -not $testPlayback) {
149+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
150+
exit
151+
}
143152

144153
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
145154
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -164,8 +173,6 @@ begin {
164173
List = 'Az.DesktopVirtualization.private\Get-AzWvdActiveSessionHostConfiguration_List';
165174
}
166175
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
167-
$testPlayback = $false
168-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
169176
if ($testPlayback) {
170177
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
171178
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdAppAttachPackage.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ begin {
155155
$PSBoundParameters['OutBuffer'] = 1
156156
}
157157
$parameterSet = $PSCmdlet.ParameterSetName
158+
159+
$testPlayback = $false
160+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
161+
162+
$context = Get-AzContext
163+
if (-not $context -and -not $testPlayback) {
164+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
165+
exit
166+
}
158167

159168
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
160169
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -180,8 +189,6 @@ begin {
180189
List1 = 'Az.DesktopVirtualization.private\Get-AzWvdAppAttachPackage_List1';
181190
}
182191
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
183-
$testPlayback = $false
184-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
185192
if ($testPlayback) {
186193
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
187194
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplication.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ begin {
192192
$PSBoundParameters['OutBuffer'] = 1
193193
}
194194
$parameterSet = $PSCmdlet.ParameterSetName
195+
196+
$testPlayback = $false
197+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
198+
199+
$context = Get-AzContext
200+
if (-not $context -and -not $testPlayback) {
201+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
202+
exit
203+
}
195204

196205
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
197206
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -217,8 +226,6 @@ begin {
217226
List = 'Az.DesktopVirtualization.private\Get-AzWvdApplication_List';
218227
}
219228
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
220-
$testPlayback = $false
221-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
222229
if ($testPlayback) {
223230
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
224231
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdApplicationGroup.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ begin {
169169
$PSBoundParameters['OutBuffer'] = 1
170170
}
171171
$parameterSet = $PSCmdlet.ParameterSetName
172+
173+
$testPlayback = $false
174+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
175+
176+
$context = Get-AzContext
177+
if (-not $context -and -not $testPlayback) {
178+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
179+
exit
180+
}
172181

173182
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
174183
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -194,8 +203,6 @@ begin {
194203
List1 = 'Az.DesktopVirtualization.private\Get-AzWvdApplicationGroup_List1';
195204
}
196205
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
197-
$testPlayback = $false
198-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
199206
if ($testPlayback) {
200207
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
201208
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdDesktop.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,15 @@ begin {
191191
$PSBoundParameters['OutBuffer'] = 1
192192
}
193193
$parameterSet = $PSCmdlet.ParameterSetName
194+
195+
$testPlayback = $false
196+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
197+
198+
$context = Get-AzContext
199+
if (-not $context -and -not $testPlayback) {
200+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
201+
exit
202+
}
194203

195204
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
196205
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -216,8 +225,6 @@ begin {
216225
List = 'Az.DesktopVirtualization.private\Get-AzWvdDesktop_List';
217226
}
218227
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
219-
$testPlayback = $false
220-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
221228
if ($testPlayback) {
222229
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
223230
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPool.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ begin {
164164
$PSBoundParameters['OutBuffer'] = 1
165165
}
166166
$parameterSet = $PSCmdlet.ParameterSetName
167+
168+
$testPlayback = $false
169+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
170+
171+
$context = Get-AzContext
172+
if (-not $context -and -not $testPlayback) {
173+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
174+
exit
175+
}
167176

168177
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
169178
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -189,8 +198,6 @@ begin {
189198
List1 = 'Az.DesktopVirtualization.private\Get-AzWvdHostPool_List1';
190199
}
191200
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
192-
$testPlayback = $false
193-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
194201
if ($testPlayback) {
195202
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
196203
} else {

generated/DesktopVirtualization/DesktopVirtualization.Autorest/exports/Get-AzWvdHostPoolRegistrationToken.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ begin {
142142
$PSBoundParameters['OutBuffer'] = 1
143143
}
144144
$parameterSet = $PSCmdlet.ParameterSetName
145+
146+
$testPlayback = $false
147+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
148+
149+
$context = Get-AzContext
150+
if (-not $context -and -not $testPlayback) {
151+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
152+
exit
153+
}
145154

146155
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
147156
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -166,8 +175,6 @@ begin {
166175
RetrieveViaIdentity = 'Az.DesktopVirtualization.private\Get-AzWvdHostPoolRegistrationToken_RetrieveViaIdentity';
167176
}
168177
if (('List', 'Retrieve') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
169-
$testPlayback = $false
170-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
171178
if ($testPlayback) {
172179
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
173180
} else {

0 commit comments

Comments
 (0)