Skip to content

Commit 6cab32d

Browse files
author
Ashish Ranjan
committed
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions into ranjanashish/include-linux-nexus-identity
2 parents 51ff60d + aa86309 commit 6cab32d

File tree

73 files changed

+376
-294
lines changed

Some content is hidden

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

73 files changed

+376
-294
lines changed

.githooks/pre-commit.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ foreach ($file in $files) {
2828
# Check if the file contains secrets
2929
$detected = $(azdev scan -f $file | ConvertFrom-Json).secrets_detected
3030
if ($detected -eq "True") {
31-
Write-Host "Detected secrets from $file. You can run 'azdev mask' to remove secrets before commit." -ForegroundColor Red
31+
Write-Host "Detected secrets from $file. Please run the following command to mask it:" -ForegroundColor Red
32+
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++" -ForegroundColor Red
33+
Write-Host "azdev mask -f $file" -ForegroundColor Red
34+
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++" -ForegroundColor Red
3235
$hasSecrets = 1
3336
}
3437
}

.githooks/pre-commit.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ for FILE in `git diff --cached --name-only --diff-filter=AM $against` ; do
2424
# Check if the file contains secrets
2525
detected=$(azdev scan -f "$FILE" | python -c "import sys, json; print(json.load(sys.stdin)['secrets_detected'])")
2626
if [ "$detected" = "True" ]; then
27-
printf "\033[0;31mDetected secrets from %s, You can run 'azdev mask' to remove secrets before commit.\033[0m\n" "$FILE"
27+
printf "\033[0;31mDetected secrets from %s, Please run the following command to mask it:\033[0m\n" "$FILE"
28+
printf "\033[0;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++\033[0m\n"
29+
printf "\033[0;31mazdev mask -f %s\033[0m\n" "$FILE"
30+
printf "\033[0;31m+++++++++++++++++++++++++++++++++++++++++++++++++++++++\033[0m\n"
2831
has_secrets=1
2932
fi
3033
done

CodeQL.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
path_classifiers:
22
library:
33
- "src/**/vendored_sdks/"
4+
- "src/**/tests/"
45
- "src/k8s-extension/azext_k8s_extension/partner_extensions/*.py"
5-
- src/virtual-wan/azext_vwan/custom.py
6-
- src/k8s-configuration/azext_k8s_configuration/validators.py
7-
- src/connectedk8s/azext_connectedk8s/custom.py
86
- src/alias/azext_alias/custom.py
97
- src/alias/azext_alias/alias.py
10-
- src/dataprotection/azext_dataprotection/manual/helpers.py
118
- src/containerapp/azext_containerapp/_utils.py
12-
- "src/**/tests/"
9+
- src/connectedk8s/azext_connectedk8s/custom.py
10+
- src/dataprotection/azext_dataprotection/manual/helpers.py
11+
- src/k8s-configuration/azext_k8s_configuration/validators.py
12+
- src/virtual-wan/azext_vwan/custom.py
13+
generated:
14+
- "src/**/aaz/"

src/authV2/azext_authV2/_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def load_arguments(self, _):
209209
arg_group='Azure Active Directory', help="One or more token audiences (space-delimited).")
210210
c.argument('issuer', options_list=['--aad-token-issuer-url'],
211211
help='This url can be found in the JSON output returned from your active directory endpoint using your tenantID. The endpoint can be queried from `az cloud show` at \"endpoints.activeDirectory\". '
212-
'The tenantID can be found using `az account show`. Get the \"issuer\" from the JSON at <active directory endpoint>/<tenantId>/.well-known/openid-configuration.',
212+
'The tenantID can be found using `az account show`. Get the \"issuer\" from the JSON at `<active directory endpoint>/<tenantId>/.well-known/openid-configuration`.',
213213
arg_group='Azure Active Directory')
214214
c.argument('facebook_app_id', arg_group='Facebook',
215215
help="Application ID to integrate Facebook Sign-in into your web app")

src/authV2/azext_authV2/tests/latest/recordings/test_authV2_auth.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ interactions:
6565
- AZURECLI/2.46.0 azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31)
6666
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0
6767
method: PUT
68-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003?api-version=2022-03-01
68+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003?api-version=2023-01-01
6969
response:
7070
body:
71-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003","name":"webapp-authentication-plan000003","type":"Microsoft.Web/serverfarms","kind":"app","location":"westus","properties":{"serverFarmId":9148,"name":"webapp-authentication-plan000003","sku":{"name":"S1","tier":"Standard","size":"S1","family":"S","capacity":1},"workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_authV2000001-WestUSwebspace","subscription":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":0,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West
71+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003","name":"webapp-authentication-plan000003","type":"Microsoft.Web/serverfarms","kind":"app","location":"westus","properties":{"serverFarmId":9148,"name":"webapp-authentication-plan000003","sku":{"name":"S1","tier":"Standard","size":"S1","family":"S","capacity":1},"workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_authV2000001-WestUSwebspace","subscription":"00000000-0000-0000-0000-000000000000","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":0,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West
7272
US","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"cli_test_authV2000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-bay-223_9148","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false},"sku":{"name":"S1","tier":"Standard","size":"S1","family":"S","capacity":1}}'
7373
headers:
7474
cache-control:
@@ -121,11 +121,11 @@ interactions:
121121
- AZURECLI/2.46.0 azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31)
122122
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0
123123
method: GET
124-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003?api-version=2022-03-01
124+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003?api-version=2023-01-01
125125
response:
126126
body:
127127
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/serverfarms/webapp-authentication-plan000003","name":"webapp-authentication-plan000003","type":"Microsoft.Web/serverfarms","kind":"app","location":"West
128-
US","properties":{"serverFarmId":9148,"name":"webapp-authentication-plan000003","workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_authV2000001-WestUSwebspace","subscription":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":10,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West
128+
US","properties":{"serverFarmId":9148,"name":"webapp-authentication-plan000003","workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_authV2000001-WestUSwebspace","subscription":"00000000-0000-0000-0000-000000000000","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":10,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West
129129
US","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"cli_test_authV2000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-bay-223_9148","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false},"sku":{"name":"S1","tier":"Standard","size":"S1","family":"S","capacity":1}}'
130130
headers:
131131
cache-control:
@@ -178,7 +178,7 @@ interactions:
178178
- AZURECLI/2.46.0 azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31)
179179
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0
180180
method: POST
181-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2022-03-01
181+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2023-01-01
182182
response:
183183
body:
184184
string: '{"nameAvailable":true,"reason":"","message":""}'
@@ -229,7 +229,7 @@ interactions:
229229
- AZURECLI/2.46.0 azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31)
230230
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0
231231
method: GET
232-
uri: https://management.azure.com/providers/Microsoft.Web/webAppStacks?api-version=2022-03-01
232+
uri: https://management.azure.com/providers/Microsoft.Web/webAppStacks?api-version=2023-01-01
233233
response:
234234
body:
235235
string: '{"value":[{"id":null,"name":"dotnet","type":"Microsoft.Web/webAppStacks?stackOsType=All","properties":{"displayText":".NET","value":"dotnet","preferredOs":"windows","majorVersions":[{"displayText":".NET
@@ -511,7 +511,7 @@ interactions:
511511
- AZURECLI/2.46.0 azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31)
512512
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0
513513
method: PUT
514-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/sites/webapp-authentication-test000002?api-version=2022-03-01
514+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/sites/webapp-authentication-test000002?api-version=2023-01-01
515515
response:
516516
body:
517517
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/sites/webapp-authentication-test000002","name":"webapp-authentication-test000002","type":"Microsoft.Web/sites","kind":"app","location":"West
@@ -573,7 +573,7 @@ interactions:
573573
- AZURECLI/2.46.0 azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Linux-5.15.0-1034-azure-x86_64-with-glibc2.31)
574574
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_261_0
575575
method: POST
576-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/sites/webapp-authentication-test000002/publishxml?api-version=2022-03-01
576+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_authV2000001/providers/Microsoft.Web/sites/webapp-authentication-test000002/publishxml?api-version=2023-01-01
577577
response:
578578
body:
579579
string: <publishData><publishProfile profileName="webapp-authentication-test000002

0 commit comments

Comments
 (0)