File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494 tenant-id : ${{ secrets.AZURE_TENANT_ID }}
9595 subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
9696
97+ - name : Validate Azure Region
98+ shell : bash
99+ run : |
100+ LOCATION="${{ inputs.location }}"
101+ if [[ -z "$LOCATION" ]]; then LOCATION="centralus"; fi
102+ VALID_LOCATIONS=$(az account list-locations --query "[].name" -o tsv)
103+ if ! echo "$VALID_LOCATIONS" | grep -qx "$LOCATION"; then
104+ echo "::error::Invalid Azure region: '$LOCATION'. Run 'az account list-locations --query [].name' to see valid options."
105+ exit 1
106+ fi
107+
97108 - name : Run redaction integration test
98109 shell : pwsh
99110 env :
Original file line number Diff line number Diff line change 4444 type : string
4545 default : ' centralus'
4646 log_level :
47- description : ' PowerShell log level (Info, Verbose, Debug) '
47+ description : ' Log level'
4848 required : false
49- type : string
49+ type : choice
50+ options :
51+ - Info
52+ - Verbose
53+ - Debug
5054 default : Verbose
5155
5256 workflow_call :
6266 type : string
6367 default : ' centralus'
6468 log_level :
65- description : ' PowerShell log level (Info, Verbose, Debug) '
69+ description : ' Log level'
6670 required : false
6771 type : string
6872 default : Verbose
@@ -118,6 +122,17 @@ jobs:
118122 tenant-id : ${{ secrets.AZURE_TENANT_ID }}
119123 subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
120124
125+ - name : Validate Azure Region
126+ shell : bash
127+ run : |
128+ LOCATION="${{ inputs.location }}"
129+ if [[ -z "$LOCATION" ]]; then LOCATION="centralus"; fi
130+ VALID_LOCATIONS=$(az account list-locations --query "[].name" -o tsv)
131+ if ! echo "$VALID_LOCATIONS" | grep -qx "$LOCATION"; then
132+ echo "::error::Invalid Azure region: '$LOCATION'. Run 'az account list-locations --query [].name' to see valid options."
133+ exit 1
134+ fi
135+
121136 - name : Run Round-Trip Phase 1 (Deploy)
122137 id : phase1
123138 shell : pwsh
Original file line number Diff line number Diff line change 3131 type : string
3232 default : ' centralus'
3333 log_level :
34- description : ' Log level for all-types integration test (Info, Verbose, Debug) '
34+ description : ' Log level'
3535 required : false
36- type : string
36+ type : choice
37+ options :
38+ - Info
39+ - Verbose
40+ - Debug
41+ default : Verbose
3742 default : Verbose
3843
3944permissions :
You can’t perform that action at this time.
0 commit comments