Skip to content

Commit bcdca63

Browse files
[skip ci] Archive d5220e9 (#27688)
1 parent 2530bb7 commit bcdca63

File tree

310 files changed

+17974
-9035
lines changed

Some content is hidden

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

310 files changed

+17974
-9035
lines changed

generated/AppConfiguration/AppConfiguration.Autorest/Az.AppConfiguration.format.ps1xml

Lines changed: 248 additions & 260 deletions
Large diffs are not rendered by default.

generated/AppConfiguration/AppConfiguration.Autorest/Az.AppConfiguration.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.AppConfiguration.private.dll'
1313
FormatsToProcess = './Az.AppConfiguration.format.ps1xml'
14-
FunctionsToExport = 'Clear-AzAppConfigurationDeletedStore', 'Get-AzAppConfigurationDeletedStore', 'Get-AzAppConfigurationStore', 'Get-AzAppConfigurationStoreKey', 'New-AzAppConfigurationStore', 'New-AzAppConfigurationStoreKey', 'Remove-AzAppConfigurationStore', 'Test-AzAppConfigurationStoreNameAvailability', 'Update-AzAppConfigurationStore', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Clear-AzAppConfigurationDeletedStore', 'Get-AzAppConfigurationDeletedStore', 'Get-AzAppConfigurationStore', 'Get-AzAppConfigurationStoreKey', 'New-AzAppConfigurationStore', 'New-AzAppConfigurationStoreKey', 'Remove-AzAppConfigurationStore', 'Test-AzAppConfigurationStoreNameAvailability', 'Update-AzAppConfigurationStore'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'AppConfiguration'

generated/AppConfiguration/AppConfiguration.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - AppConfiguration")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

generated/AppConfiguration/AppConfiguration.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
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]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

generated/AppConfiguration/AppConfiguration.Autorest/exports/Clear-AzAppConfigurationDeletedStore.ps1

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ param(
7070
[Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Category('Path')]
7171
[Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity]
7272
# Identity Parameter
73-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
7473
${InputObject},
7574

7675
[Parameter()]
@@ -147,6 +146,15 @@ begin {
147146
$PSBoundParameters['OutBuffer'] = 1
148147
}
149148
$parameterSet = $PSCmdlet.ParameterSetName
149+
150+
$testPlayback = $false
151+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
152+
153+
$context = Get-AzContext
154+
if (-not $context -and -not $testPlayback) {
155+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
156+
exit
157+
}
150158

151159
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
152160
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -169,9 +177,7 @@ begin {
169177
Purge = 'Az.AppConfiguration.private\Clear-AzAppConfigurationDeletedStore_Purge';
170178
PurgeViaIdentity = 'Az.AppConfiguration.private\Clear-AzAppConfigurationDeletedStore_PurgeViaIdentity';
171179
}
172-
if (('Purge') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
173-
$testPlayback = $false
174-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
180+
if (('Purge') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
175181
if ($testPlayback) {
176182
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
177183
} else {
@@ -185,6 +191,9 @@ begin {
185191
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
186192
}
187193
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
194+
if ($wrappedCmd -eq $null) {
195+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
196+
}
188197
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
189198
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
190199
$steppablePipeline.Begin($PSCmdlet)

generated/AppConfiguration/AppConfiguration.Autorest/exports/Get-AzAppConfigurationDeletedStore.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzAppConfigurationDeletedStore -Location eastus -Name azpstestappstore
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IDeletedConfigurationStore
32+
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IDeletedConfigurationStore
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -48,7 +48,7 @@ INPUTOBJECT <IAppConfigurationIdentity>: Identity Parameter
4848
https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationdeletedstore
4949
#>
5050
function Get-AzAppConfigurationDeletedStore {
51-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IDeletedConfigurationStore])]
51+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IDeletedConfigurationStore])]
5252
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5353
param(
5454
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -75,7 +75,6 @@ param(
7575
[Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Category('Path')]
7676
[Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity]
7777
# Identity Parameter
78-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
7978
${InputObject},
8079

8180
[Parameter()]
@@ -134,6 +133,15 @@ begin {
134133
$PSBoundParameters['OutBuffer'] = 1
135134
}
136135
$parameterSet = $PSCmdlet.ParameterSetName
136+
137+
$testPlayback = $false
138+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
139+
140+
$context = Get-AzContext
141+
if (-not $context -and -not $testPlayback) {
142+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
143+
exit
144+
}
137145

138146
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
139147
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -157,9 +165,7 @@ begin {
157165
GetViaIdentity = 'Az.AppConfiguration.private\Get-AzAppConfigurationDeletedStore_GetViaIdentity';
158166
List = 'Az.AppConfiguration.private\Get-AzAppConfigurationDeletedStore_List';
159167
}
160-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
161-
$testPlayback = $false
162-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
168+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
163169
if ($testPlayback) {
164170
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
165171
} else {
@@ -173,6 +179,9 @@ begin {
173179
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
174180
}
175181
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
182+
if ($wrappedCmd -eq $null) {
183+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
184+
}
176185
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
177186
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
178187
$steppablePipeline.Begin($PSCmdlet)

generated/AppConfiguration/AppConfiguration.Autorest/exports/Get-AzAppConfigurationStore.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzAppConfigurationStore -Name azpstest-appstore -ResourceGroupName azpstest_
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IConfigurationStore
32+
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IConfigurationStore
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -48,7 +48,7 @@ INPUTOBJECT <IAppConfigurationIdentity>: Identity Parameter
4848
https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationstore
4949
#>
5050
function Get-AzAppConfigurationStore {
51-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IConfigurationStore])]
51+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IConfigurationStore])]
5252
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5353
param(
5454
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -77,7 +77,6 @@ param(
7777
[Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Category('Path')]
7878
[Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IAppConfigurationIdentity]
7979
# Identity Parameter
80-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8180
${InputObject},
8281

8382
[Parameter()]
@@ -136,6 +135,15 @@ begin {
136135
$PSBoundParameters['OutBuffer'] = 1
137136
}
138137
$parameterSet = $PSCmdlet.ParameterSetName
138+
139+
$testPlayback = $false
140+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
141+
142+
$context = Get-AzContext
143+
if (-not $context -and -not $testPlayback) {
144+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
145+
exit
146+
}
139147

140148
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
141149
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -160,9 +168,7 @@ begin {
160168
List = 'Az.AppConfiguration.private\Get-AzAppConfigurationStore_List';
161169
List1 = 'Az.AppConfiguration.private\Get-AzAppConfigurationStore_List1';
162170
}
163-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
164-
$testPlayback = $false
165-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
171+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
166172
if ($testPlayback) {
167173
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
168174
} else {
@@ -176,6 +182,9 @@ begin {
176182
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
177183
}
178184
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
185+
if ($wrappedCmd -eq $null) {
186+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
187+
}
179188
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
180189
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
181190
$steppablePipeline.Begin($PSCmdlet)

generated/AppConfiguration/AppConfiguration.Autorest/exports/Get-AzAppConfigurationStoreKey.ps1

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Lists the access key for the specified configuration store.
2323
Get-AzAppConfigurationStoreKey -Name azpstest-appstore -ResourceGroupName azpstest_gp
2424
2525
.Outputs
26-
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IApiKey
26+
Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IApiKey
2727
.Link
2828
https://learn.microsoft.com/powershell/module/az.appconfiguration/get-azappconfigurationstorekey
2929
#>
3030
function Get-AzAppConfigurationStoreKey {
31-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IApiKey])]
31+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.IApiKey])]
3232
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3333
param(
3434
[Parameter(Mandatory)]
@@ -106,6 +106,15 @@ begin {
106106
$PSBoundParameters['OutBuffer'] = 1
107107
}
108108
$parameterSet = $PSCmdlet.ParameterSetName
109+
110+
$testPlayback = $false
111+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
112+
113+
$context = Get-AzContext
114+
if (-not $context -and -not $testPlayback) {
115+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
116+
exit
117+
}
109118

110119
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
111120
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -127,9 +136,7 @@ begin {
127136
$mapping = @{
128137
List = 'Az.AppConfiguration.private\Get-AzAppConfigurationStoreKey_List';
129138
}
130-
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
131-
$testPlayback = $false
132-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
139+
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
133140
if ($testPlayback) {
134141
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
135142
} else {
@@ -143,6 +150,9 @@ begin {
143150
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
144151
}
145152
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
153+
if ($wrappedCmd -eq $null) {
154+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
155+
}
146156
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
147157
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
148158
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)