Skip to content

Commit f226221

Browse files
[skip ci] Archive 6ad5ef8 (#27613)
1 parent f82b40e commit f226221

File tree

206 files changed

+15744
-6815
lines changed

Some content is hidden

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

206 files changed

+15744
-6815
lines changed

generated/GuestConfiguration/GuestConfiguration.Autorest/Az.GuestConfiguration.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>GuestConfiguration</PsModuleName>
44
<PsRootModuleName>GuestConfiguration</PsRootModuleName>
5+
<PsModuleFolder>GuestConfiguration.Autorest</PsModuleFolder>
56
</PropertyGroup>
67

78
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
89
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
9-
1010
</Project>

generated/GuestConfiguration/GuestConfiguration.Autorest/Az.GuestConfiguration.format.ps1xml

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

generated/GuestConfiguration/GuestConfiguration.Autorest/Az.GuestConfiguration.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.GuestConfiguration.private.dll'
1313
FormatsToProcess = './Az.GuestConfiguration.format.ps1xml'
14-
FunctionsToExport = 'Get-AzGuestConfigurationAssignment', 'Get-AzGuestConfigurationAssignmentReport', 'New-AzGuestConfigurationAssignment', 'Remove-AzGuestConfigurationAssignment', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzGuestConfigurationAssignment', 'Get-AzGuestConfigurationAssignmentReport', 'New-AzGuestConfigurationAssignment', 'Remove-AzGuestConfigurationAssignment', 'Update-AzGuestConfigurationAssignment'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'GuestConfiguration'
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 - GuestConfiguration")]
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("d3ea27e0-7f42-4605-98b4-31e50c6b3146")]
27-
[assembly: AssemblyVersion("0.11.2")]
28-
[assembly: AssemblyFileVersion("0.11.2")]
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 - GuestConfiguration")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.11.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.11.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/GuestConfiguration/GuestConfiguration.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/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignment.ps1

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Get-AzGuestConfigurationAssignment -ResourceGroupName test-rg
3333
Get-AzGuestConfigurationAssignment -SubscriptionId xxxxx-xxxx-xxxxx-xxx
3434
3535
.Outputs
36-
Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125.IGuestConfigurationAssignment
36+
Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment
3737
.Link
3838
https://learn.microsoft.com/powershell/module/az.guestconfiguration/get-azguestconfigurationassignment
3939
#>
4040
function Get-AzGuestConfigurationAssignment {
41-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125.IGuestConfigurationAssignment])]
41+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment])]
4242
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
4343
param(
4444
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -154,6 +154,15 @@ begin {
154154
$PSBoundParameters['OutBuffer'] = 1
155155
}
156156
$parameterSet = $PSCmdlet.ParameterSetName
157+
158+
$testPlayback = $false
159+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
160+
161+
$context = Get-AzContext
162+
if (-not $context -and -not $testPlayback) {
163+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
164+
exit
165+
}
157166

158167
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
159168
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -182,9 +191,7 @@ begin {
182191
List3 = 'Az.GuestConfiguration.private\Get-AzGuestConfigurationAssignment_List3';
183192
List4 = 'Az.GuestConfiguration.private\Get-AzGuestConfigurationAssignment_List4';
184193
}
185-
if (('Get', 'Get1', 'Get2', 'List', 'List1', 'List2', 'List3', 'List4') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
186-
$testPlayback = $false
187-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
194+
if (('Get', 'Get1', 'Get2', 'List', 'List1', 'List2', 'List3', 'List4') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
188195
if ($testPlayback) {
189196
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
190197
} else {
@@ -198,6 +205,9 @@ begin {
198205
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
199206
}
200207
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
208+
if ($wrappedCmd -eq $null) {
209+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
210+
}
201211
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
202212
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
203213
$steppablePipeline.Begin($PSCmdlet)

generated/GuestConfiguration/GuestConfiguration.Autorest/exports/Get-AzGuestConfigurationAssignmentReport.ps1

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ Get-AzGuestConfigurationAssignmentReport -GuestConfigurationAssignmentName test-
2525
Get-AzGuestConfigurationAssignmentReport -GuestConfigurationAssignmentName test-assignment -ResourceGroupName test-rg -VMName test-vm
2626
2727
.Outputs
28-
Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125.IGuestConfigurationAssignmentReport
28+
Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReport
29+
.Outputs
30+
Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportList
2931
.Link
3032
https://learn.microsoft.com/powershell/module/az.guestconfiguration/get-azguestconfigurationassignmentreport
3133
#>
3234
function Get-AzGuestConfigurationAssignmentReport {
33-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.Api20220125.IGuestConfigurationAssignmentReport])]
35+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReport], [Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignmentReportList])]
3436
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
3537
param(
3638
[Parameter(Mandatory)]
@@ -148,6 +150,15 @@ begin {
148150
$PSBoundParameters['OutBuffer'] = 1
149151
}
150152
$parameterSet = $PSCmdlet.ParameterSetName
153+
154+
$testPlayback = $false
155+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
156+
157+
$context = Get-AzContext
158+
if (-not $context -and -not $testPlayback) {
159+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
160+
exit
161+
}
151162

152163
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
153164
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -174,9 +185,7 @@ begin {
174185
List1 = 'Az.GuestConfiguration.private\Get-AzGuestConfigurationAssignmentReport_List1';
175186
List2 = 'Az.GuestConfiguration.private\Get-AzGuestConfigurationAssignmentReport_List2';
176187
}
177-
if (('Get', 'Get1', 'Get2', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
178-
$testPlayback = $false
179-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
188+
if (('Get', 'Get1', 'Get2', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
180189
if ($testPlayback) {
181190
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
182191
} else {
@@ -190,6 +199,9 @@ begin {
190199
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
191200
}
192201
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
202+
if ($wrappedCmd -eq $null) {
203+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
204+
}
193205
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
194206
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
195207
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)