Skip to content

Commit 8aa3b07

Browse files
committed
Merge branch 'dev' of https://github.com/Azure/azure-cli into feature-policy
2 parents 1f4af2f + 51d6b2c commit 8aa3b07

File tree

1,591 files changed

+2322869
-1290431
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,591 files changed

+2322869
-1290431
lines changed

.devcontainer/.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
AAZ_CLI_PATH=/workspaces/azure-cli
2+
AAZ_CLI_EXTENSION_PATH=/workspaces/azure-cli-extensions
3+
AAZ_SWAGGER_PATH=/workspaces/azure-rest-api-specs
4+
AAZ_PATH=/workspaces/aaz

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mcr.microsoft.com/devcontainers/python:3.12
2+
3+
# Copy binaries from the official
4+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
5+
6+
# Remove after production
7+
RUN pip install --no-cache-dir fastmcp

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Azure CLI Dev Container",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"features": {
7+
"ghcr.io/devcontainers/features/github-cli:1": {}
8+
},
9+
"workspaceFolder": "/workspaces",
10+
"onCreateCommand": "uv venv .venv --seed",
11+
"postCreateCommand": "REPO_NAME=$(basename $GITHUB_REPOSITORY) && cat $REPO_NAME/.devcontainer/init.sh >> ~/.bashrc && mkdir .vscode && cp $REPO_NAME/.devcontainer/mcp.json .vscode/",
12+
"hostRequirements": {
13+
"cpus": 16,
14+
"memory": "64gb",
15+
"storage": "128gb"
16+
},
17+
"runArgs": ["--env-file", ".devcontainer/.env"],
18+
}

.devcontainer/init.sh

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
source .venv/bin/activate
3+
4+
# Logout default account
5+
export GITHUB_TOKEN=
6+
7+
if [[ $- == *i* ]]; then # Interactive shell only
8+
# Check `repo` scope exists or not
9+
if gh auth status -a 2>/dev/null | grep "Token scopes: " | grep -q "repo"; then
10+
echo "You now have access to GitHub."
11+
else
12+
gh auth login -p https -w
13+
fi
14+
fi
15+
16+
# Check `aaz-dev` is available or not
17+
if ! command -v aaz-dev &> /dev/null; then
18+
GREEN="\033[0;32m"
19+
YELLOW="\033[0;33m"
20+
NC="\033[0m" # no color
21+
22+
set_or_add_remote() {
23+
local REPO=$1
24+
local REMOTE=$2
25+
local DIR="/workspaces/$REPO"
26+
local OWNER=$([ "$REMOTE" = "origin" ] && echo "$GITHUB_USER" || echo "Azure")
27+
local URL="https://github.com/$OWNER/$REPO.git"
28+
29+
git -C "$DIR" remote get-url "$REMOTE" &>/dev/null || git -C "$DIR" remote add "$REMOTE" "$URL"
30+
git -C "$DIR" remote set-url "$REMOTE" "$URL"
31+
}
32+
33+
setup_repo() {
34+
local REPO=$1
35+
local DIR="/workspaces/$REPO"
36+
37+
echo
38+
gh repo fork "Azure/$REPO" --clone=false --default-branch-only
39+
40+
if [ -d "$DIR" ]; then
41+
set_or_add_remote "$REPO" origin
42+
set_or_add_remote "$REPO" upstream
43+
else
44+
git clone "https://github.com/$GITHUB_USER/$REPO.git" --single-branch --no-tags
45+
set_or_add_remote "$REPO" upstream
46+
47+
# Synchronize with upstream
48+
BRANCH=$(git -C "$DIR" remote show upstream | grep "HEAD branch" | awk '{print $NF}')
49+
git -C "$DIR" pull -r upstream "$BRANCH"
50+
fi
51+
}
52+
53+
SECONDS=0
54+
55+
echo
56+
uv pip install aaz-dev --link-mode=copy
57+
58+
# `azdev` repositories
59+
setup_repo "azure-cli"
60+
setup_repo "azure-cli-extensions"
61+
62+
azdev setup -c -r ./azure-cli-extensions
63+
64+
# `aaz-dev` repositories
65+
setup_repo "aaz"
66+
setup_repo "azure-rest-api-specs"
67+
68+
ELAPSED_TIME=$SECONDS
69+
70+
echo -e "\n${YELLOW}Elapsed time: $((ELAPSED_TIME / 60))m $((ELAPSED_TIME % 60))s.${NC}"
71+
echo -e "\n${GREEN}Finished setup! Please launch the codegen tool via: aaz-dev run${NC}\n"
72+
else
73+
echo -e "\nPlease launch the codegen tool via: aaz-dev run\n"
74+
fi

.devcontainer/mcp.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"servers": {
3+
"AAZ Flow": {
4+
"command": "python",
5+
"args": [
6+
"azure-cli/tools/aaz-flow/src/aaz-flow/main.py"
7+
],
8+
}
9+
}
10+
}

.github/CODEOWNERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
/linter_exclusions.yml @jsntcy @kairu-ms @zhoxing-ms
88

9-
/doc/ @jiasli @kairu-ms @jsntcy
9+
/doc/ @jiasli @kairu-ms @jsntcy @necusjz @yanzhudd
1010
/tools/ @kairu-ms @jiasli @wangzelin007 @calvinhzy @bebound
11+
/tools/aaz-flow @a0x1ab @necusjz @yanzhudd
1112
/scripts/ @kairu-ms @jiasli @wangzelin007 @calvinhzy @bebound
1213
/scripts/live_test @kairu-ms @wangzelin007
1314
/src/azure-cli-testsdk/ @jsntcy @jiasli @kairu-ms @wangzelin007 @bebound
@@ -23,7 +24,7 @@
2324
/src/azure-cli/azure/cli/command_modules/acs/ @zhoxing-ms @zqingqing1 @gtracer @xizhamsft @andyliuliming @fumingzhang @jsntcy @yanzhudd
2425
/src/azure-cli/azure/cli/command_modules/advisor/ @jsntcy @Prasanna-Padmanabhan
2526
/src/azure-cli/azure/cli/command_modules/apim/ @jsntcy @kevinhillinger @jonlester
26-
/src/azure-cli/azure/cli/command_modules/appconfig/ @zhoxing-ms @jsntcy @yanzhudd @ChristineWanjau @albertofori @avanigupta
27+
/src/azure-cli/azure/cli/command_modules/appconfig/ @zhoxing-ms @jsntcy @yanzhudd @ChristineWanjau @albertofori @avanigupta @mrm9084
2728
/src/azure-cli/azure/cli/command_modules/appservice/ @jsntcy @zhoxing-ms @yanzhudd @panchagnula
2829
/src/azure-cli/azure/cli/command_modules/aro/ @jsntcy @bennerv @hawkowl @jewzaam @rogbas
2930
/src/azure-cli/azure/cli/command_modules/backup/ @zhoxing-ms @jsntcy @yanzhudd @dragonfly91 @akshayneema

.github/policies/resourceManagement.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ configuration:
632632
then:
633633
- mentionUsers:
634634
mentionees:
635-
- cabbpt
636-
- theelderwand
635+
- muazmian
636+
- us6193
637637
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
638638
assignMentionees: False
639639
- if:
@@ -1448,6 +1448,19 @@ configuration:
14481448
- NateB2
14491449
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
14501450
assignMentionees: False
1451+
- if:
1452+
- hasLabel:
1453+
label: Service Attention
1454+
- hasLabel:
1455+
label: Data Transfer
1456+
then:
1457+
- mentionUsers:
1458+
mentionees:
1459+
- fzkhan
1460+
- lasuredd-msft
1461+
- pkuma-msft
1462+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1463+
assignMentionees: False
14511464
- if:
14521465
- hasLabel:
14531466
label: Service Attention
@@ -1941,7 +1954,10 @@ configuration:
19411954
- mentionUsers:
19421955
mentionees:
19431956
- ambhatna
1944-
- savjani
1957+
- deepthiprasad
1958+
- akning-ms
1959+
- junsu-msft
1960+
- coffeemug
19451961
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
19461962
assignMentionees: False
19471963
- if:
@@ -2208,6 +2224,7 @@ configuration:
22082224
- mentionUsers:
22092225
mentionees:
22102226
- AzMonEssential
2227+
- LarryZhang19
22112228
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
22122229
assignMentionees: False
22132230
- if:
@@ -2280,7 +2297,10 @@ configuration:
22802297
- mentionUsers:
22812298
mentionees:
22822299
- ambhatna
2283-
- savjani
2300+
- deepthiprasad
2301+
- akning-ms
2302+
- junsu-msft
2303+
- coffeemug
22842304
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
22852305
assignMentionees: False
22862306
- if:
@@ -2293,6 +2313,10 @@ configuration:
22932313
mentionees:
22942314
- daeunyim
22952315
- rajsell
2316+
- deepthiprasad
2317+
- akning-ms
2318+
- junsu-msft
2319+
- coffeemug
22962320
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
22972321
assignMentionees: False
22982322
- if:

azure-pipelines.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
227227
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
228228
displayName: 'SBOM'
229-
continueOnError: true
229+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
230230
inputs:
231231
BuildDropPath: 'build_scripts/windows/out/'
232232

@@ -271,7 +271,7 @@ jobs:
271271
272272
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
273273
displayName: 'SBOM'
274-
continueOnError: true
274+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
275275
inputs:
276276
BuildDropPath: 'build_scripts/windows/out/'
277277

@@ -372,7 +372,7 @@ jobs:
372372
373373
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
374374
displayName: 'SBOM'
375-
continueOnError: true
375+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
376376
inputs:
377377
BuildDropPath: $(Build.ArtifactStagingDirectory)
378378
DockerImagesToScan: 'clibuild$BUILD_BUILDNUMBER:latest'
@@ -454,7 +454,7 @@ jobs:
454454
455455
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
456456
displayName: 'SBOM'
457-
continueOnError: true
457+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
458458
inputs:
459459
BuildDropPath: $(Build.ArtifactStagingDirectory)
460460

@@ -625,7 +625,7 @@ jobs:
625625
626626
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
627627
displayName: 'SBOM'
628-
continueOnError: true
628+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
629629
inputs:
630630
BuildDropPath: $(Build.ArtifactStagingDirectory)
631631

@@ -668,7 +668,12 @@ jobs:
668668
brew uninstall azure-cli
669669
670670
echo == Install azure-cli.rb formula ==
671-
brew install --build-from-source $SYSTEM_ARTIFACTSDIRECTORY/homebrew/azure-cli.rb
671+
# Need to create a dummy homebrew tap to install the formula
672+
git config --global user.email "you@example.com"
673+
git config --global user.name "Your Name"
674+
brew tap-new dev/azure-cli
675+
cp $SYSTEM_ARTIFACTSDIRECTORY/homebrew/azure-cli.rb $(brew --repository)/Library/Taps/dev/homebrew-azure-cli/Formula/
676+
brew install --build-from-source dev/homebrew-azure-cli/azure-cli
672677
673678
echo == Az Version ==
674679
az --version
@@ -737,7 +742,7 @@ jobs:
737742

738743
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
739744
displayName: 'SBOM'
740-
continueOnError: true
745+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
741746
inputs:
742747
BuildDropPath: $(Build.ArtifactStagingDirectory)
743748

@@ -834,7 +839,7 @@ jobs:
834839
filePath: scripts/release/rpm/pipeline.sh
835840
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
836841
displayName: 'SBOM'
837-
continueOnError: true
842+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
838843
inputs:
839844
BuildDropPath: $(Build.ArtifactStagingDirectory)
840845
- task: PublishPipelineArtifact@0
@@ -962,7 +967,7 @@ jobs:
962967

963968
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
964969
displayName: 'SBOM'
965-
continueOnError: true
970+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/release')
966971
inputs:
967972
BuildDropPath: $(Build.ArtifactStagingDirectory)
968973

build_scripts/windows/scripts/build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if "%ARCH%"=="x86" (
3030
echo Please set ARCH to "x86" or "x64"
3131
goto ERROR
3232
)
33-
set PYTHON_VERSION=3.13.7
33+
set PYTHON_VERSION=3.13.9
3434

3535
set WIX_DOWNLOAD_URL="https://azurecliprod.blob.core.windows.net/msi/wix310-binaries-mirror.zip"
3636
set PYTHON_DOWNLOAD_URL="https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%-embed-%PYTHON_ARCH%.zip"

0 commit comments

Comments
 (0)