Skip to content

Commit 9176a83

Browse files
committed
Merge branch 'main' of https://github.com/Azure/azure-powershell into azdev/github
2 parents 244efdf + 7dd3bc3 commit 9176a83

File tree

1,160 files changed

+171656
-41778
lines changed

Some content is hidden

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

1,160 files changed

+171656
-41778
lines changed

.github/policies/resourceManagement.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,40 +2290,6 @@ configuration:
22902290
- Azure/azure-iot-cli-triage
22912291
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
22922292
assignMentionees: False
2293-
- if:
2294-
- or:
2295-
- labelAdded:
2296-
label: Service Attention
2297-
- labelAdded:
2298-
label: IotCentral
2299-
- hasLabel:
2300-
label: Service Attention
2301-
- hasLabel:
2302-
label: IotCentral
2303-
then:
2304-
- mentionUsers:
2305-
mentionees:
2306-
- iluican
2307-
- jlian
2308-
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
2309-
assignMentionees: False
2310-
- if:
2311-
- or:
2312-
- labelAdded:
2313-
label: Service Attention
2314-
- labelAdded:
2315-
label: IotDPS
2316-
- hasLabel:
2317-
label: Service Attention
2318-
- hasLabel:
2319-
label: IotDPS
2320-
then:
2321-
- mentionUsers:
2322-
mentionees:
2323-
- iluican
2324-
- jlian
2325-
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
2326-
assignMentionees: False
23272293
- if:
23282294
- or:
23292295
- labelAdded:
@@ -3689,6 +3655,7 @@ configuration:
36893655
mentionees:
36903656
- shariq-mcs
36913657
- MSFTeegarden
3658+
- abhijitch25
36923659
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
36933660
assignMentionees: False
36943661
- if:

NuGet.Config

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,3 @@
1111
<clear />
1212
</disabledPackageSources>
1313
</configuration>
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
49-

eng/emitter-package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
"version": "0.1.0",
44
"type": "module",
55
"dependencies": {
6-
"@typespec/compiler": "1.3.0",
6+
"@typespec/compiler": "1.5.0",
77
"@azure-tools/typespec-powershell": "0.0.x",
8-
"@azure-tools/typespec-autorest": "0.59.0",
9-
"@azure-tools/typespec-azure-core": "0.59.0",
10-
"@azure-tools/typespec-azure-resource-manager": "0.59.0",
11-
"@azure-tools/typespec-client-generator-core": "0.59.0",
12-
"@azure-tools/typespec-azure-rulesets": "0.59.0",
13-
"@typespec/http": "1.3.0",
14-
"@typespec/openapi": "1.3.0",
15-
"@typespec/rest": "0.73.0",
16-
"@typespec/streams": "0.73.0",
17-
"@typespec/versioning": "0.73.0",
18-
"@typespec/xml": "0.73.0",
19-
"@azure-tools/typespec-liftr-base": "0.8.0"
8+
"@azure-tools/typespec-autorest": "0.61.0",
9+
"@azure-tools/typespec-azure-core": "0.61.0",
10+
"@azure-tools/typespec-azure-resource-manager": "0.61.0",
11+
"@azure-tools/typespec-client-generator-core": "0.61.0",
12+
"@azure-tools/typespec-azure-rulesets": "0.61.0",
13+
"@typespec/http": "1.5.0",
14+
"@typespec/openapi": "1.5.0",
15+
"@typespec/rest": "0.75.0",
16+
"@typespec/streams": "0.75.0",
17+
"@typespec/versioning": "0.75.0",
18+
"@typespec/xml": "0.75.0",
19+
"@azure-tools/typespec-liftr-base": "0.10.0"
2020
},
2121
"private": true
2222
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
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 - AksArc")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.4")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.4")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcCluster.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ begin {
107107
$PSBoundParameters['OutBuffer'] = 1
108108
}
109109
$parameterSet = $PSCmdlet.ParameterSetName
110+
111+
$testPlayback = $false
112+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
113+
114+
$context = Get-AzContext
115+
if (-not $context -and -not $testPlayback) {
116+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
117+
exit
118+
}
110119

111120
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
112121
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -129,8 +138,6 @@ begin {
129138
Get = 'Az.AksArc.custom\Get-AzAksArcCluster';
130139
}
131140
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
132-
$testPlayback = $false
133-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
134141
if ($testPlayback) {
135142
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
136143
} else {
@@ -144,6 +151,9 @@ begin {
144151
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
145152
}
146153
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
154+
if ($wrappedCmd -eq $null) {
155+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
156+
}
147157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
148158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
149159
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcClusterAdminKubeconfig.ps1

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

122131
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
123132
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -140,8 +149,6 @@ begin {
140149
List = 'Az.AksArc.custom\Get-AzAksArcClusterAdminKubeconfig';
141150
}
142151
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
143-
$testPlayback = $false
144-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
145152
if ($testPlayback) {
146153
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
147154
} else {
@@ -155,6 +162,9 @@ begin {
155162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
156163
}
157164
$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+
}
158168
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
159169
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
160170
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcClusterUpgrade.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ begin {
9898
$PSBoundParameters['OutBuffer'] = 1
9999
}
100100
$parameterSet = $PSCmdlet.ParameterSetName
101+
102+
$testPlayback = $false
103+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
104+
105+
$context = Get-AzContext
106+
if (-not $context -and -not $testPlayback) {
107+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
108+
exit
109+
}
101110

102111
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
103112
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -120,8 +129,6 @@ begin {
120129
Get = 'Az.AksArc.custom\Get-AzAksArcClusterUpgrade';
121130
}
122131
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
123-
$testPlayback = $false
124-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
125132
if ($testPlayback) {
126133
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
127134
} else {
@@ -135,6 +142,9 @@ begin {
135142
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
136143
}
137144
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
145+
if ($wrappedCmd -eq $null) {
146+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
147+
}
138148
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
139149
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
140150
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcClusterUserKubeconfig.ps1

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

122131
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
123132
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -140,8 +149,6 @@ begin {
140149
List = 'Az.AksArc.custom\Get-AzAksArcClusterUserKubeconfig';
141150
}
142151
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
143-
$testPlayback = $false
144-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
145152
if ($testPlayback) {
146153
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
147154
} else {
@@ -155,6 +162,9 @@ begin {
155162
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
156163
}
157164
$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+
}
158168
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
159169
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
160170
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcKubernetesVersion.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ begin {
107107
$PSBoundParameters['OutBuffer'] = 1
108108
}
109109
$parameterSet = $PSCmdlet.ParameterSetName
110+
111+
$testPlayback = $false
112+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
113+
114+
$context = Get-AzContext
115+
if (-not $context -and -not $testPlayback) {
116+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
117+
exit
118+
}
110119

111120
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
112121
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -129,8 +138,6 @@ begin {
129138
Get = 'Az.AksArc.custom\Get-AzAksArcKubernetesVersion';
130139
}
131140
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
132-
$testPlayback = $false
133-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
134141
if ($testPlayback) {
135142
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
136143
} else {
@@ -144,6 +151,9 @@ begin {
144151
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
145152
}
146153
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
154+
if ($wrappedCmd -eq $null) {
155+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
156+
}
147157
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
148158
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
149159
$steppablePipeline.Begin($PSCmdlet)

generated/AksArc/AksArc.Autorest/exports/Get-AzAksArcLog.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ begin {
105105
$PSBoundParameters['OutBuffer'] = 1
106106
}
107107
$parameterSet = $PSCmdlet.ParameterSetName
108+
109+
$testPlayback = $false
110+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AksArc.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
111+
112+
$context = Get-AzContext
113+
if (-not $context -and -not $testPlayback) {
114+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
115+
exit
116+
}
108117

109118
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
110119
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -133,6 +142,9 @@ begin {
133142
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
134143
}
135144
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
145+
if ($wrappedCmd -eq $null) {
146+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
147+
}
136148
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
137149
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
138150
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)