Skip to content

Commit b57fe10

Browse files
committed
Merge branch 'main' into joyer/monitor-sqr-migrate-v4
2 parents 34abfb7 + f7c0407 commit b57fe10

File tree

2,583 files changed

+410108
-98808
lines changed

Some content is hidden

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

2,583 files changed

+410108
-98808
lines changed

.azure-pipelines/PipelineSteps/BatchGeneration/analyse-modules.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ foreach ($moduleName in $moduleGroup) {
6262
{
6363
$FailedTasks += "UXMetadata"
6464
}
65-
.("$toolsDirectory/ExecuteCIStep.ps1") -StaticAnalysisCmdletDiff @Parameters 2>>$ErrorLogPath
66-
If (($LASTEXITCODE -ne 0) -and ($LASTEXITCODE -ne $null))
67-
{
68-
$FailedTasks += "CmdletDiff"
69-
}
7065
If ($FailedTasks.Length -ne 0)
7166
{
7267
Write-Host "There are failed tasks: $FailedTasks"

.azure-pipelines/sync-aliases.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,20 @@ jobs:
3434
dotnet tool install powershell --version 7.4.*
3535
displayName: Install PowerShell 7.4.x
3636
37+
- pwsh: |
38+
if (-not (Get-PackageProvider -Name NuGet -ErrorAction SilentlyContinue)) {
39+
Install-PackageProvider -Name NuGet -Force
40+
}
41+
Install-Package -Name YamlDotNet -RequiredVersion $(YamlDotNetVersion) -ProviderName NuGet -Force -ErrorAction Stop
42+
displayName: Install YamlDotNet NuGet Package
43+
retryCountOnTaskFailure: 5
44+
3745
- pwsh: |
3846
dotnet tool run pwsh -NoLogo -NoProfile -NonInteractive -File ./tools/Github/ParseServiceContactsList.ps1 -AccessToken $env:SYSTEM_ACCESSTOKEN
3947
env:
4048
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
4149
displayName: Update resourceManagement.yml file locally
50+
condition: succeeded()
4251
4352
- pwsh: |
4453
$hasChanges = git diff --name-only .github/policies

.azure-pipelines/test-coverage.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ parameters:
77
displayName: Test Framework
88
type: string
99
default: net8.0
10-
- name: testPoolName
11-
displayName: Test Pool Name
12-
type: string
13-
default: pool-windows-2019
14-
- name: testPoolVMImage
15-
displayName: Test Pool VM Image
16-
type: string
17-
default: ' '
10+
- name: updateBaseline
11+
displayName: Update Test Coverage Baseline?
12+
type: boolean
13+
default: false
1814

1915
variables:
2016
EnableTestCoverage: true
@@ -51,9 +47,7 @@ jobs:
5147
- job: TestCoverage
5248
dependsOn: Build
5349
timeoutInMinutes: 600
54-
pool:
55-
name: ${{ parameters.testPoolName }}
56-
vmImage: ${{ parameters.testPoolVMImage }}
50+
pool: pool-windows-2019
5751

5852
steps:
5953
- task: UseDotNet@2
@@ -85,7 +79,7 @@ jobs:
8579

8680
- task: PowerShell@2
8781
displayName: Test Autorest-Based Cmdlets
88-
condition: succeeded()
82+
condition: succeededOrFailed()
8983
inputs:
9084
pwsh: true
9185
targetType: inline
@@ -103,18 +97,20 @@ jobs:
10397
10498
- task: PowerShell@2
10599
displayName: Analyze Test Coverage
106-
condition: succeeded()
100+
condition: succeededOrFailed()
107101
inputs:
108102
pwsh: true
109103
targetType: filePath
110104
filePath: ./tools/TestFx/Coverage/AnalyzeTestCoverage.ps1
111-
arguments: -CalcBaseline
105+
arguments: '-CalcBaseline:$${{ parameters.updateBaseline }}'
112106

113107
- template: util/get-github-pat-steps.yml
108+
parameters:
109+
execCondition: and(succeeded(), ${{ parameters.updateBaseline }})
114110

115111
- task: PowerShell@2
116112
displayName: Update Test Coverage Baseline
117-
condition: succeeded()
113+
condition: and(succeeded(), ${{ parameters.updateBaseline }})
118114
inputs:
119115
pwsh: true
120116
targetType: inline

.azure-pipelines/util/get-github-pat-steps.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
parameters:
2+
- name: execCondition
3+
type: string
4+
default: succeeded()
5+
16
steps:
27
- task: AzurePowerShell@5
8+
displayName: Get GitHub PAT from Key Vault
9+
condition: ${{ parameters.execCondition }}
310
inputs:
411
pwsh: true
12+
azurePowerShellVersion: 'LatestVersion'
513
azureSubscription: '$(AzureSubscription)'
614
ScriptType: 'InlineScript'
715
Inline: |
816
$GithubToken = Get-AzKeyVaultSecret -VaultName $(GithubPATKeyVaultName) -Name $(GithubPATKeyVaultAccount) -AsPlainText
917
Write-Host "##vso[task.setvariable variable=GithubToken;issecret=true]$GithubToken"
10-
azurePowerShellVersion: 'LatestVersion'
11-
displayName: Get Github PAT from Key Vault

.github/CODEOWNERS

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# @wyunchi-ms @dolauli @isra-fel are from the Azure PowerShell team. Adding them ensures they can merge the PR for those modules.
22
# To make sure Network PRs go to the right branch, e.g. network-april
3-
/src/Compute/ @EdwinBernal1 @grizzlytheodore @ntangy @sandido @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
4-
/src/PolicyInsights/ @pilor @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
5-
/src/Batch/ @wiboris @dpwatrous @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
3+
/src/Compute/ @EdwinBernal1 @grizzlytheodore @ntangy @sandido @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
4+
/src/PolicyInsights/ @pilor @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
5+
/src/Batch/ @wiboris @dpwatrous @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
66

77
# Make sure Device Registry team gets notified of any DeviceRegistry PRs:
88
# PRLabel: %Device Registry
9-
/src/DeviceRegistry/ @marcodalessandro @rohankhandelwal @riteshrao @davidemontanari @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi @msJinLei
9+
/src/DeviceRegistry/ @marcodalessandro @rohankhandelwal @riteshrao @davidemontanari @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi
1010

1111
# Make sure changes to .github folder go through our team's double check
12-
/.github/ @wyunchi-ms @dolauli @isra-fel
12+
/.github/ @wyunchi-ms @dolauli @isra-fel @VeryEarly @YanaXu @vidai-msft @NoriZC @notyashhh @Pan-Qi

.github/policies/resourceManagement.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -669,13 +669,11 @@ configuration:
669669
then:
670670
- mentionUsers:
671671
mentionees:
672-
- mksuni
673-
- bgklein
674-
- mscurrell
675672
- dpwatrous
676-
- gingi
677-
- paterasMSFT
673+
- wiboris
678674
- cRui861
675+
- skapur12
676+
- wanghoppe
679677
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
680678
assignMentionees: False
681679
- if:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/powershell:ubuntu-20.04
1+
FROM mcr.microsoft.com/powershell:ubuntu-24.04
22
RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/*
33

44
ARG REPOSITORY=PSGallery
@@ -11,9 +11,9 @@ ARG BUILD_DATE=
1111
ARG VERSION=
1212
ARG LATEST=
1313
ARG BLOB_URL=
14-
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-ubuntu-20.04
14+
ARG IMAGE_NAME=mcr.microsoft.com/azure-powershell:${VERSION}-ubuntu-24.04
1515

16-
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-ubuntu-20.04"
16+
ENV AZUREPS_HOST_ENVIRONMENT="dockerImage/${VERSION}-ubuntu-24.04"
1717

1818
LABEL maintainer="Azure PowerShell Team <[email protected]>" \
1919
readme.md="http://aka.ms/azpsdockerreadme" \

eng/emitter-package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"version": "0.1.0",
44
"type": "module",
55
"dependencies": {
6-
"@typespec/compiler": "1.0.0",
6+
"@typespec/compiler": "1.2.1",
77
"@azure-tools/typespec-powershell": "0.0.x",
8-
"@azure-tools/typespec-autorest": "0.56.0",
9-
"@azure-tools/typespec-azure-core": "0.56.0",
10-
"@azure-tools/typespec-azure-resource-manager": "0.56.0",
11-
"@azure-tools/typespec-client-generator-core": "0.56.0",
12-
"@azure-tools/typespec-azure-rulesets": "0.56.0",
13-
"@typespec/http": "1.0.1",
14-
"@typespec/openapi": "1.0.0",
15-
"@typespec/rest": "0.70.0",
16-
"@typespec/streams": "0.70.0",
17-
"@typespec/versioning": "0.70.0",
18-
"@typespec/xml": "0.70.0",
8+
"@azure-tools/typespec-autorest": "0.58.0",
9+
"@azure-tools/typespec-azure-core": "0.58.0",
10+
"@azure-tools/typespec-azure-resource-manager": "0.58.0",
11+
"@azure-tools/typespec-client-generator-core": "0.58.0",
12+
"@azure-tools/typespec-azure-rulesets": "0.58.0",
13+
"@typespec/http": "1.2.1",
14+
"@typespec/openapi": "1.2.1",
15+
"@typespec/rest": "0.72.1",
16+
"@typespec/streams": "0.72.1",
17+
"@typespec/versioning": "0.72.1",
18+
"@typespec/xml": "0.72.1",
1919
"@azure-tools/typespec-liftr-base": "0.8.0"
2020
},
2121
"private": true

generated/ADDomainServices/ADDomainServices.Autorest/Az.ADDomainServices.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PsModuleName>ADDomainServices</PsModuleName>
44
<PsRootModuleName>ADDomainServices</PsRootModuleName>
55
<PsModuleFolder>ADDomainServices.Autorest</PsModuleFolder>
6+
<RootNamespace>Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices</RootNamespace>
67
</PropertyGroup>
78

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

generated/Advisor/Advisor.Autorest/Az.Advisor.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<PropertyGroup>
33
<PsModuleName>Advisor</PsModuleName>
44
<PsRootModuleName>Advisor</PsRootModuleName>
5+
<PsModuleFolder>Advisor.Autorest</PsModuleFolder>
6+
<RootNamespace>Microsoft.Azure.PowerShell.Cmdlets.Advisor</RootNamespace>
57
</PropertyGroup>
68

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

0 commit comments

Comments
 (0)