Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1242dcb
Enhance deploy workflow with new branch and region logic
Vemarthula-Microsoft Sep 17, 2025
97750c9
Update deploy workflow for Azure OpenAI integration
Vemarthula-Microsoft Sep 18, 2025
2925875
pipeline changes
Vemarthula-Microsoft Sep 18, 2025
e8582e2
latest changes adding branach name
Vemarthula-Microsoft Sep 18, 2025
fe0119b
pipeline changes
Vemarthula-Microsoft Sep 18, 2025
91665a2
fixing of deploy cleanup failure
Vemarthula-Microsoft Sep 18, 2025
f2e0295
fixing cleanup deployment failure
Vemarthula-Microsoft Sep 18, 2025
ebf397f
azure template trigger
Vemarthula-Microsoft Sep 18, 2025
f314454
azure template validation fix
Vemarthula-Microsoft Sep 18, 2025
6302ffc
test template validation
Vemarthula-Microsoft Sep 18, 2025
4e41258
deploy yml file changes for template validation
Vemarthula-Microsoft Sep 18, 2025
ca177fe
revert deploy yml file
Vemarthula-Microsoft Sep 18, 2025
4c72c25
added list key val step
Vemarthula-Microsoft Sep 18, 2025
30223e7
deploy failed fix
Vemarthula-Microsoft Sep 18, 2025
d6ea884
validation template fix
Vemarthula-Microsoft Sep 18, 2025
9f1296e
template fix
Vemarthula-Microsoft Sep 18, 2025
bfa33aa
login fix
Vemarthula-Microsoft Sep 18, 2025
a9201fa
login fix template
Vemarthula-Microsoft Sep 18, 2025
427d54a
template fix login
Vemarthula-Microsoft Sep 18, 2025
d01abcf
latest fix
Vemarthula-Microsoft Sep 18, 2025
de9cc79
add branach name for trigger
Vemarthula-Microsoft Sep 18, 2025
7e235fa
Removing Local Branch Name in All Pipelines
Vemarthula-Microsoft Sep 23, 2025
94d25da
dev to production change
Vemarthula-Microsoft Sep 23, 2025
332ea2b
removing waf param
Vemarthula-Microsoft Sep 24, 2025
53001c5
waf removal
Vemarthula-Microsoft Sep 24, 2025
2c184ef
usewaf set and declartion
Vemarthula-Microsoft Sep 24, 2025
29ff906
pipeline changes add auth
Vemarthula-Microsoft Sep 25, 2025
5aab02f
add auth and reverted changes and removed waf
Vemarthula-Microsoft Sep 25, 2025
ba917a0
template validation version upgrade
Vemarthula-Microsoft Sep 25, 2025
f5039bf
latest version update
Vemarthula-Microsoft Sep 26, 2025
1f44e15
fixing all related changes and removed Waf
Vemarthula-Microsoft Sep 26, 2025
b6b90b7
latest code from dev removed WAF
Vemarthula-Microsoft Sep 30, 2025
47c8fd7
adding branch name
Vemarthula-Microsoft Sep 30, 2025
8693cb2
add auth for log analytics
Vemarthula-Microsoft Sep 30, 2025
2e3ea26
auth modify in auth step
Vemarthula-Microsoft Sep 30, 2025
547b5eb
dynamic region update
Vemarthula-Microsoft Sep 30, 2025
66b51a2
dev to production fix
Vemarthula-Microsoft Sep 30, 2025
e110485
removing local brnach name in all the places
Vemarthula-Microsoft Sep 30, 2025
0834666
Merge branch 'dev' into vee-pipeline-fixes
Roopan-Microsoft Sep 30, 2025
de48007
main json updated
Roopan-Microsoft Sep 30, 2025
9bb82c9
updated the code for valida region
Roopan-Microsoft Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/azure-dev-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4
# Step 2: Validate the Azure template using microsoft/template-validation-action
- name: Validate Azure Template
uses: microsoft/template-validation-action@Latest
uses: microsoft/template-validation-action@Latest
id: validation
env:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
Expand All @@ -31,4 +31,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step 3: Print the result of the validation
- name: Print result
run: cat ${{ steps.validation.outputs.resultFile }}
run: cat ${{ steps.validation.outputs.resultFile }}
28 changes: 25 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ jobs:
- name: Fail Pipeline if Quota Check Fails
if: env.QUOTA_FAILED == 'true'
run: exit 1

- name: Set Deployment Region
run: |
echo "Selected Region: $VALID_REGION"
echo "AZURE_LOCATION=$VALID_REGION" >> $GITHUB_ENV

- name: Install Bicep CLI
run: az bicep install
Expand Down Expand Up @@ -135,8 +140,7 @@ jobs:
--template-file infra/main.bicep \
--parameters \
solutionName="${{ env.SOLUTION_PREFIX }}" \
aiDeploymentsLocation="eastus" \
useWafAlignedArchitecture=false \
aiDeploymentsLocation='${{ env.AZURE_LOCATION }}' \
capacity=${{ env.GPT_MIN_CAPACITY }} \
imageVersion="${IMAGE_TAG}" \
createdBy="Pipeline" \
Expand Down Expand Up @@ -191,6 +195,24 @@ jobs:
- name: Login to Azure
run: |
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}

- name: Assign Contributor role to Service Principal
if: always()
run: |
echo "Assigning Contributor role to SPN for RG: ${{ env.RESOURCE_GROUP_NAME }}"
az role assignment create \
--assignee ${{ secrets.AZURE_CLIENT_ID }} \
--role "Contributor" \
--scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}

echo "Assigning Log Analytics Contributor role for Log Analytics workspace access at RG level..."
az role assignment create \
--assignee ${{ secrets.AZURE_CLIENT_ID }} \
--role "Log Analytics Contributor" \
--scope /subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }} || echo "Log Analytics Contributor role assignment failed (may already exist)"

echo "Waiting for role assignment propagation..."
sleep 30

- name: Get Log Analytics Workspace and OpenAI from Resource Group
if: always()
Expand Down Expand Up @@ -417,4 +439,4 @@ jobs:
if: always()
run: |
az logout
echo "Logged out from Azure."
echo "Logged out from Azure."
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ jobs:
- name: Skip Backend Tests
if: env.skip_backend_tests == 'true'
run: |
echo "Skipping backend tests because no test files were found."
echo "Skipping backend tests because no test files were found."
22 changes: 8 additions & 14 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@
"_generator": {
"name": "bicep",
"version": "0.37.4.10188",
"templateHash": "4708808767614470236"
"templateHash": "10857935115773987076"
},
"name": "Modernize Your Code Solution Accelerator",
"description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \n"
"description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \r\n"
},
"parameters": {
"useWafAlignedArchitecture": {
"type": "bool",
"metadata": {
"description": "Set to true if you want to deploy WAF-aligned infrastructure."
}
},
"solutionName": {
"type": "string",
"minLength": 3,
Expand Down Expand Up @@ -79,14 +73,14 @@
},
"enableMonitoring": {
"type": "bool",
"defaultValue": "[if(parameters('useWafAlignedArchitecture'), true(), false())]",
"defaultValue": false,
"metadata": {
"description": "Optional. Enable monitoring for the resources. This will enable Application Insights and Log Analytics. Defaults to false."
}
},
"enableScaling": {
"type": "bool",
"defaultValue": "[if(parameters('useWafAlignedArchitecture'), true(), false())]",
"defaultValue": false,
"metadata": {
"description": "Optional. Enable scaling for the container apps. Defaults to false."
}
Expand All @@ -107,7 +101,7 @@
},
"enablePrivateNetworking": {
"type": "bool",
"defaultValue": "[if(parameters('useWafAlignedArchitecture'), true(), false())]",
"defaultValue": false,
"metadata": {
"description": "Optional. Enable private networking for the resources. Set to true to enable private networking. Defaults to false."
}
Expand Down Expand Up @@ -192,9 +186,9 @@
},
"createdBy": {
"type": "string",
"defaultValue": "[if(empty(deployer().userPrincipalName), '', split(deployer().userPrincipalName, '@')[0])]",
"defaultValue": "[if(contains(deployer(), 'userPrincipalName'), split(deployer().userPrincipalName, '@')[0], deployer().objectId)]",
"metadata": {
"description": "Optional created by user name"
"description": "Tag, Created by user name"
}
}
},
Expand Down Expand Up @@ -457,7 +451,7 @@
"apiVersion": "2021-04-01",
"name": "default",
"properties": {
"tags": "[shallowMerge(createArray(variables('allTags'), createObject('TemplateName', 'Code Modernization', 'CreatedBy', parameters('createdBy'))))]"
"tags": "[shallowMerge(createArray(variables('allTags'), createObject('TemplateName', 'Code Modernization', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'))))]"
}
},
"avmTelemetry": {
Expand Down
Loading