Skip to content

Commit 8aa7026

Browse files
[skip ci] Archive 7ce33fb (#27896)
1 parent 7ce33fb commit 8aa7026

9 files changed

+103
-32
lines changed

generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@
2323
[assembly: System.Reflection.AssemblyFileVersionAttribute("8.4.0")]
2424
[assembly: System.Reflection.AssemblyVersionAttribute("8.4.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26-
[assembly: System.CLSCompliantAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1

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

188197
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
189198
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -209,8 +218,6 @@ begin {
209218
List = 'Az.Storage.private\Get-AzStorageTaskAssignment_List';
210219
}
211220
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
212-
$testPlayback = $false
213-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
214221
if ($testPlayback) {
215222
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
216223
} else {

generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.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.Storage.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.Storage.private\Get-AzStorageTaskAssignmentInstancesReport_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.Storage.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/Storage/Storage.Autorest/exports/New-AzStorageTaskAssignment.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ begin {
220220
$PSBoundParameters['OutBuffer'] = 1
221221
}
222222
$parameterSet = $PSCmdlet.ParameterSetName
223+
224+
$testPlayback = $false
225+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
226+
227+
$context = Get-AzContext
228+
if (-not $context -and -not $testPlayback) {
229+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
230+
exit
231+
}
223232

224233
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
225234
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -242,8 +251,6 @@ begin {
242251
CreateExpanded = 'Az.Storage.private\New-AzStorageTaskAssignment_CreateExpanded';
243252
}
244253
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
245-
$testPlayback = $false
246-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
247254
if ($testPlayback) {
248255
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
249256
} else {

generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,15 @@ begin {
633633
$PSBoundParameters['OutBuffer'] = 1
634634
}
635635
$parameterSet = $PSCmdlet.ParameterSetName
636+
637+
$testPlayback = $false
638+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
639+
640+
$context = Get-AzContext
641+
if (-not $context -and -not $testPlayback) {
642+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
643+
exit
644+
}
636645

637646
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
638647
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -658,8 +667,6 @@ begin {
658667
List = 'Az.Storage.private\Get-AzStorageTaskAssignmentInstancesReport_List';
659668
}
660669
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
661-
$testPlayback = $false
662-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
663670
if ($testPlayback) {
664671
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
665672
} else {
@@ -889,6 +896,15 @@ begin {
889896
$PSBoundParameters['OutBuffer'] = 1
890897
}
891898
$parameterSet = $PSCmdlet.ParameterSetName
899+
900+
$testPlayback = $false
901+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
902+
903+
$context = Get-AzContext
904+
if (-not $context -and -not $testPlayback) {
905+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
906+
exit
907+
}
892908

893909
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
894910
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -914,8 +930,6 @@ begin {
914930
List = 'Az.Storage.private\Get-AzStorageTaskAssignment_List';
915931
}
916932
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
917-
$testPlayback = $false
918-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
919933
if ($testPlayback) {
920934
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
921935
} else {
@@ -1181,6 +1195,15 @@ begin {
11811195
$PSBoundParameters['OutBuffer'] = 1
11821196
}
11831197
$parameterSet = $PSCmdlet.ParameterSetName
1198+
1199+
$testPlayback = $false
1200+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
1201+
1202+
$context = Get-AzContext
1203+
if (-not $context -and -not $testPlayback) {
1204+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
1205+
exit
1206+
}
11841207

11851208
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
11861209
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1203,8 +1226,6 @@ begin {
12031226
CreateExpanded = 'Az.Storage.private\New-AzStorageTaskAssignment_CreateExpanded';
12041227
}
12051228
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
1206-
$testPlayback = $false
1207-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
12081229
if ($testPlayback) {
12091230
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
12101231
} else {
@@ -1441,6 +1462,15 @@ begin {
14411462
$PSBoundParameters['OutBuffer'] = 1
14421463
}
14431464
$parameterSet = $PSCmdlet.ParameterSetName
1465+
1466+
$testPlayback = $false
1467+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
1468+
1469+
$context = Get-AzContext
1470+
if (-not $context -and -not $testPlayback) {
1471+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
1472+
exit
1473+
}
14441474

14451475
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
14461476
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1465,8 +1495,6 @@ begin {
14651495
DeleteViaIdentityStorageAccount = 'Az.Storage.private\Remove-AzStorageTaskAssignment_DeleteViaIdentityStorageAccount';
14661496
}
14671497
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
1468-
$testPlayback = $false
1469-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
14701498
if ($testPlayback) {
14711499
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
14721500
} else {
@@ -1775,6 +1803,15 @@ begin {
17751803
$PSBoundParameters['OutBuffer'] = 1
17761804
}
17771805
$parameterSet = $PSCmdlet.ParameterSetName
1806+
1807+
$testPlayback = $false
1808+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
1809+
1810+
$context = Get-AzContext
1811+
if (-not $context -and -not $testPlayback) {
1812+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
1813+
exit
1814+
}
17781815

17791816
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
17801817
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1799,8 +1836,6 @@ begin {
17991836
UpdateViaIdentityStorageAccountExpanded = 'Az.Storage.private\Update-AzStorageTaskAssignment_UpdateViaIdentityStorageAccountExpanded';
18001837
}
18011838
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
1802-
$testPlayback = $false
1803-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
18041839
if ($testPlayback) {
18051840
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
18061841
} else {

generated/Storage/Storage.Autorest/exports/Remove-AzStorageTaskAssignment.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.Storage.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()
@@ -215,8 +224,6 @@ begin {
215224
DeleteViaIdentityStorageAccount = 'Az.Storage.private\Remove-AzStorageTaskAssignment_DeleteViaIdentityStorageAccount';
216225
}
217226
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
218-
$testPlayback = $false
219-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
220227
if ($testPlayback) {
221228
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
222229
} else {

generated/Storage/Storage.Autorest/exports/Update-AzStorageTaskAssignment.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ begin {
263263
$PSBoundParameters['OutBuffer'] = 1
264264
}
265265
$parameterSet = $PSCmdlet.ParameterSetName
266+
267+
$testPlayback = $false
268+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
269+
270+
$context = Get-AzContext
271+
if (-not $context -and -not $testPlayback) {
272+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
273+
exit
274+
}
266275

267276
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
268277
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -287,8 +296,6 @@ begin {
287296
UpdateViaIdentityStorageAccountExpanded = 'Az.Storage.private\Update-AzStorageTaskAssignment_UpdateViaIdentityStorageAccountExpanded';
288297
}
289298
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
290-
$testPlayback = $false
291-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
292299
if ($testPlayback) {
293300
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
294301
} else {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "544c18cb-b86d-4648-8739-5c0f5aaef502"
2+
"generate_Id": "f7f00e5d-16ab-461a-9d69-48862ad73a83"
33
}

0 commit comments

Comments
 (0)