Skip to content

Commit 3d63335

Browse files
[skip ci] Archive d646e04 (#28121)
1 parent 85f8737 commit 3d63335

26 files changed

+322
-44
lines changed

generated/AppConfiguration/AppConfigurationData.Autorest/Az.AppConfigurationData.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<PsModuleName>AppConfigurationdata</PsModuleName>
44
<PsRootModuleName>AppConfiguration</PsRootModuleName>
5-
<PsModuleFolder>AppConfigurationData.Autorest</PsModuleFolder>
5+
<PsModuleFolder>AppConfigurationdata.Autorest</PsModuleFolder>
66
</PropertyGroup>
77

88
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
// ----------------------------------------------------------------------------------
2-
//
3-
// Copyright Microsoft Corporation
4-
// Licensed under the Apache License, Version 2.0 (the "License");
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
53
// you may not use this file except in compliance with the License.
64
// You may obtain a copy of the License at
75
// http://www.apache.org/licenses/LICENSE-2.0
86
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
108
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
// See the License for the specific language governing permissions and
1210
// limitations under the License.
13-
// ----------------------------------------------------------------------------------
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
1413

1514
using System;
1615
using System.Reflection;
16+
using System.Runtime.CompilerServices;
1717
using System.Runtime.InteropServices;
1818

19-
[assembly: AssemblyTitle("Microsoft Azure Powershell - AppConfigurationData")]
20-
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
21-
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
22-
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
23-
24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("2262061b-996b-4f6c-9295-ae09c475c41b")]
27-
[assembly: AssemblyVersion("1.4.0")]
28-
[assembly: AssemblyFileVersion("1.4.0")]
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - AppConfigurationdata")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/AppConfiguration/AppConfigurationData.Autorest/exports/Get-AzAppConfigurationKey.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ begin {
119119
$PSBoundParameters['OutBuffer'] = 1
120120
}
121121
$parameterSet = $PSCmdlet.ParameterSetName
122+
123+
$testPlayback = $false
124+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
125+
126+
$context = Get-AzContext
127+
if (-not $context -and -not $testPlayback) {
128+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
129+
exit
130+
}
122131

123132
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
124133
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -147,6 +156,9 @@ begin {
147156
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
148157
}
149158
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
159+
if ($wrappedCmd -eq $null) {
160+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
161+
}
150162
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
151163
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
152164
$steppablePipeline.Begin($PSCmdlet)

generated/AppConfiguration/AppConfigurationData.Autorest/exports/Get-AzAppConfigurationKeyValue.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ begin {
148148
$PSBoundParameters['OutBuffer'] = 1
149149
}
150150
$parameterSet = $PSCmdlet.ParameterSetName
151+
152+
$testPlayback = $false
153+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
154+
155+
$context = Get-AzContext
156+
if (-not $context -and -not $testPlayback) {
157+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
158+
exit
159+
}
151160

152161
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
153162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -177,6 +186,9 @@ begin {
177186
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
178187
}
179188
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
189+
if ($wrappedCmd -eq $null) {
190+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
191+
}
180192
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
181193
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
182194
$steppablePipeline.Begin($PSCmdlet)

generated/AppConfiguration/AppConfigurationData.Autorest/exports/Get-AzAppConfigurationLabel.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ begin {
126126
$PSBoundParameters['OutBuffer'] = 1
127127
}
128128
$parameterSet = $PSCmdlet.ParameterSetName
129+
130+
$testPlayback = $false
131+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
132+
133+
$context = Get-AzContext
134+
if (-not $context -and -not $testPlayback) {
135+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
136+
exit
137+
}
129138

130139
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
131140
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -154,6 +163,9 @@ begin {
154163
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
155164
}
156165
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
166+
if ($wrappedCmd -eq $null) {
167+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
168+
}
157169
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
158170
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
159171
$steppablePipeline.Begin($PSCmdlet)

generated/AppConfiguration/AppConfigurationData.Autorest/exports/Get-AzAppConfigurationRevision.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ begin {
134134
$PSBoundParameters['OutBuffer'] = 1
135135
}
136136
$parameterSet = $PSCmdlet.ParameterSetName
137+
138+
$testPlayback = $false
139+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppConfigurationdata.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
140+
141+
$context = Get-AzContext
142+
if (-not $context -and -not $testPlayback) {
143+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
144+
exit
145+
}
137146

138147
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
139148
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -162,6 +171,9 @@ begin {
162171
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
163172
}
164173
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
174+
if ($wrappedCmd -eq $null) {
175+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
176+
}
165177
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
166178
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
167179
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)