Skip to content

Commit cc2f73e

Browse files
[skip ci] Archive 34630bd (#27576)
1 parent a0d7df0 commit cc2f73e

File tree

160 files changed

+11438
-2818
lines changed

Some content is hidden

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

160 files changed

+11438
-2818
lines changed

generated/CustomProviders/CustomProviders.Autorest/Az.CustomProviders.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>CustomProviders</PsModuleName>
44
<PsRootModuleName>CustomProviders</PsRootModuleName>
5+
<PsModuleFolder>CustomProviders.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/CustomProviders/CustomProviders.Autorest/Az.CustomProviders.format.ps1xml

+80-68
Large diffs are not rendered by default.

generated/CustomProviders/CustomProviders.Autorest/Az.CustomProviders.psd1

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.CustomProviders.private.dll'
1313
FormatsToProcess = './Az.CustomProviders.format.ps1xml'
14-
FunctionsToExport = 'Get-AzCustomProvider', 'Get-AzCustomProviderAssociation', 'New-AzCustomProvider', 'New-AzCustomProviderAssociation', 'Remove-AzCustomProvider', 'Remove-AzCustomProviderAssociation', 'Update-AzCustomProvider', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzCustomProvider', 'Get-AzCustomProviderAssociation', 'New-AzCustomProvider', 'New-AzCustomProviderAssociation', 'Remove-AzCustomProvider', 'Remove-AzCustomProviderAssociation', 'Update-AzCustomProvider', 'Update-AzCustomProviderAssociation'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'CustomProviders'
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 - CustomProviders")]
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("01fe683e-d13f-4059-98c4-dd84dd28e6be")]
27-
[assembly: AssemblyVersion("0.1.2")]
28-
[assembly: AssemblyFileVersion("0.1.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 - CustomProviders")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

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

+3-3
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/CustomProviders/CustomProviders.Autorest/exports/Get-AzCustomProvider.ps1

+15-6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Get-AzCustomProvider -ResourceGroupName myRg -Name Namespace.Type | Format-List
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpManifest
30+
Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpManifest
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
@@ -44,7 +44,7 @@ INPUTOBJECT <ICustomProvidersIdentity>: Identity Parameter
4444
https://learn.microsoft.com/powershell/module/az.customproviders/get-azcustomprovider
4545
#>
4646
function Get-AzCustomProvider {
47-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpManifest])]
47+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpManifest])]
4848
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
4949
param(
5050
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -76,7 +76,6 @@ param(
7676
[Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Category('Path')]
7777
[Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity]
7878
# Identity Parameter
79-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8079
${InputObject},
8180

8281
[Parameter()]
@@ -135,6 +134,15 @@ begin {
135134
$PSBoundParameters['OutBuffer'] = 1
136135
}
137136
$parameterSet = $PSCmdlet.ParameterSetName
137+
138+
$testPlayback = $false
139+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.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+
}
138146

139147
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
140148
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -159,9 +167,7 @@ begin {
159167
List = 'Az.CustomProviders.private\Get-AzCustomProvider_List';
160168
List1 = 'Az.CustomProviders.private\Get-AzCustomProvider_List1';
161169
}
162-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
163-
$testPlayback = $false
164-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
170+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
165171
if ($testPlayback) {
166172
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
167173
} else {
@@ -175,6 +181,9 @@ begin {
175181
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
176182
}
177183
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
184+
if ($wrappedCmd -eq $null) {
185+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
186+
}
178187
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
179188
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
180189
$steppablePipeline.Begin($PSCmdlet)

generated/CustomProviders/CustomProviders.Autorest/exports/Get-AzCustomProviderAssociation.ps1

+14-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Get-AzCustomProviderAssociation -Scope $resourceId -Name MyAssoc
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IAssociation
30+
Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.IAssociation
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
@@ -44,7 +44,7 @@ INPUTOBJECT <ICustomProvidersIdentity>: Identity Parameter
4444
https://learn.microsoft.com/powershell/module/az.customproviders/get-azcustomproviderassociation
4545
#>
4646
function Get-AzCustomProviderAssociation {
47-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IAssociation])]
47+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.IAssociation])]
4848
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
4949
param(
5050
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -65,7 +65,6 @@ param(
6565
[Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Category('Path')]
6666
[Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity]
6767
# Identity Parameter
68-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
6968
${InputObject},
7069

7170
[Parameter()]
@@ -124,6 +123,15 @@ begin {
124123
$PSBoundParameters['OutBuffer'] = 1
125124
}
126125
$parameterSet = $PSCmdlet.ParameterSetName
126+
127+
$testPlayback = $false
128+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
129+
130+
$context = Get-AzContext
131+
if (-not $context -and -not $testPlayback) {
132+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
133+
exit
134+
}
127135

128136
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
129137
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -154,6 +162,9 @@ begin {
154162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
155163
}
156164
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
165+
if ($wrappedCmd -eq $null) {
166+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
167+
}
157168
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
158169
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
159170
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)