3333 default : ' codespace'
3434
3535 azure_location :
36- description : ' Azure Location For Deployment '
36+ description : ' Azure Region (Non-AI Services) '
3737 required : false
3838 default : ' australiaeast'
3939 type : choice
4242 - ' centralus'
4343 - ' eastasia'
4444 - ' eastus'
45+ - ' eastus2'
4546 - ' japaneast'
4647 - ' northeurope'
4748 - ' southeastasia'
5455 required : false
5556 default : ' '
5657 type : string
58+
59+ build_docker_image :
60+ description : ' Build & Use Custom Images (Optional)'
61+ required : false
62+ default : false
63+ type : boolean
5764
5865 waf_enabled :
59- description : ' Enable WAF'
66+ description : ' Deploy WAF'
6067 required : false
6168 default : false
6269 type : boolean
6370 EXP :
64- description : ' Enable EXP'
71+ description : ' Deploy EXP'
6572 required : false
6673 default : false
6774 type : boolean
68- build_docker_image :
69- description : ' Build And Push Docker Image (Optional)'
75+
76+ enable_scalability :
77+ description : ' Enable Scalability (WAF only)'
7078 required : false
7179 default : false
7280 type : boolean
7381
7482 cleanup_resources :
75- description : ' Cleanup Deployed Resources '
83+ description : ' Auto Delete RG '
7684 required : false
7785 default : false
7886 type : boolean
8896 - ' None'
8997
9098 AZURE_ENV_EXISTING_LOG_ANALYTICS_WORKSPACE_RID :
91- description : ' Log Analytics Workspace ID (Optional)'
99+ description : ' Existing Log Analytics Workspace Resource ID (Optional)'
92100 required : false
93101 default : ' '
94102 type : string
95103 AZURE_EXISTING_AIPROJECT_RESOURCE_ID :
96- description : ' AI Project Resource ID (Optional)'
104+ description : ' Existing AI Project Resource ID (Optional)'
97105 required : false
98106 default : ' '
99107 type : string
100108 existing_webapp_url :
101- description : ' Existing WebApp URL (Skips Deployment )'
109+ description : ' Run Tests Against Existing RG (Provide Web App URL )'
102110 required : false
103111 default : ' '
104112 type : string
@@ -128,6 +136,7 @@ jobs:
128136 azure_location : ${{ steps.validate.outputs.azure_location }}
129137 resource_group_name : ${{ steps.validate.outputs.resource_group_name }}
130138 waf_enabled : ${{ steps.validate.outputs.waf_enabled }}
139+ enable_scalability : ${{ steps.validate.outputs.enable_scalability }}
131140 exp : ${{ steps.validate.outputs.exp }}
132141 build_docker_image : ${{ steps.validate.outputs.build_docker_image }}
133142 cleanup_resources : ${{ steps.validate.outputs.cleanup_resources }}
@@ -145,6 +154,7 @@ jobs:
145154 INPUT_AZURE_LOCATION : ${{ github.event.inputs.azure_location }}
146155 INPUT_RESOURCE_GROUP_NAME : ${{ github.event.inputs.resource_group_name }}
147156 INPUT_WAF_ENABLED : ${{ github.event.inputs.waf_enabled }}
157+ INPUT_ENABLE_SCALABILITY : ${{ github.event.inputs.enable_scalability }}
148158 INPUT_EXP : ${{ github.event.inputs.EXP }}
149159 INPUT_BUILD_DOCKER_IMAGE : ${{ github.event.inputs.build_docker_image }}
150160 INPUT_CLEANUP_RESOURCES : ${{ github.event.inputs.cleanup_resources }}
@@ -208,6 +218,18 @@ jobs:
208218 echo "✅ waf_enabled: '$WAF_ENABLED' is valid"
209219 fi
210220
221+ # Validate enable_scalability (boolean, defaults to false; only meaningful when waf_enabled=true)
222+ ENABLE_SCALABILITY="${INPUT_ENABLE_SCALABILITY:-false}"
223+ if [[ "$ENABLE_SCALABILITY" != "true" && "$ENABLE_SCALABILITY" != "false" ]]; then
224+ echo "❌ ERROR: enable_scalability must be 'true' or 'false', got: '$ENABLE_SCALABILITY'"
225+ VALIDATION_FAILED=true
226+ else
227+ echo "✅ enable_scalability: '$ENABLE_SCALABILITY' is valid"
228+ fi
229+ if [[ "$ENABLE_SCALABILITY" == "true" && "$WAF_ENABLED" != "true" ]]; then
230+ echo "ℹ️ Note: enable_scalability=true is only applied when waf_enabled=true; it will be ignored for non-WAF deployments."
231+ fi
232+
211233 # Validate EXP (boolean)
212234 EXP_ENABLED="${INPUT_EXP:-false}"
213235 if [[ "$EXP_ENABLED" != "true" && "$EXP_ENABLED" != "false" ]]; then
@@ -300,6 +322,7 @@ jobs:
300322 echo "azure_location=$LOCATION" >> $GITHUB_OUTPUT
301323 echo "resource_group_name=$INPUT_RESOURCE_GROUP_NAME" >> $GITHUB_OUTPUT
302324 echo "waf_enabled=$WAF_ENABLED" >> $GITHUB_OUTPUT
325+ echo "enable_scalability=$ENABLE_SCALABILITY" >> $GITHUB_OUTPUT
303326 echo "exp=$EXP_ENABLED" >> $GITHUB_OUTPUT
304327 echo "build_docker_image=$BUILD_DOCKER" >> $GITHUB_OUTPUT
305328 echo "cleanup_resources=$CLEANUP_RESOURCES" >> $GITHUB_OUTPUT
@@ -327,6 +350,7 @@ jobs:
327350 azure_location : ${{ needs.validate-inputs.outputs.azure_location || 'australiaeast' }}
328351 resource_group_name : ${{ needs.validate-inputs.outputs.resource_group_name || '' }}
329352 waf_enabled : ${{ needs.validate-inputs.outputs.waf_enabled == 'true' }}
353+ enable_scalability : ${{ needs.validate-inputs.outputs.enable_scalability == 'true' }}
330354 EXP : ${{ needs.validate-inputs.outputs.exp == 'true' }}
331355 build_docker_image : ${{ needs.validate-inputs.outputs.build_docker_image == 'true' }}
332356 cleanup_resources : ${{ needs.validate-inputs.outputs.cleanup_resources == 'true' }}
0 commit comments