Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 7 additions & 6 deletions .github/workflows/infraworkflow.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Create Azure Resources
on:
workflow_disptch:
push:
paths:
- 'ARM/**'
- '.github/workflows/infraworkflow.yml'

env:
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} # set this to your Azure Subscription Id
AZURE_RESOURCEGROUP_NAME: demo-webappsql-gh-actions # set this to your preferred resource group name
AZURE_WEBAPP_NAME: demo-webappsql-gh-actions-unique # set this to your preferred web app name
ASP_NAME: demo-webappsql-gh-actions
SQLSERVER_NAME: demo-webappsql-gh-actions-srv # set this to your preferred sql server name
DATABASE_NAME: demo-webappsql-gh-actions-db # set this to your preferred sql database name
AZURE_RESOURCEGROUP_NAME: ContosoSample3-RG # set this to your preferred resource group name
AZURE_WEBAPP_NAME: cicd-newwebappnakul # set this to your preferred web app name
ASP_NAME: cicd-newaspnakul
SQLSERVER_NAME: cicd-newsqlserverpnakul # set this to your preferred sql server name
DATABASE_NAME: cicd-newsqlserverdbpnakul # set this to your preferred sql database name
SQLADMIN_LOGIN: ${{ secrets.SQLADMIN_LOGIN }} # Create a secret in your Github repo for the SQL Admin login name you want to use
SQLADMIN_PASS: ${{ secrets.SQLADMIN_PASS }} # Create a secret in your Github repo for the SQL Admin password you want to use

Expand Down Expand Up @@ -59,4 +60,4 @@ jobs:
template: repo/templates/azuredeploy.json # Set this to the location of your template file
parameters: repo/templates/azuredeploy.parameters.json webappName=${{env.AZURE_WEBAPP_NAME}} aspName=${{env.ASP_NAME}} sqlServerName=${{env.SQLSERVER_NAME}} databaseName=${{env.DATABASE_NAME}} sqlAdminLogin=${{env.SQLADMIN_LOGIN}} sqlAdminPass=${{env.SQLADMIN_PASS}} # Set this to the location of your parameters file

#TODO: Once the infrastructure got created, download web app publish profile of the staging slot and add it as a secret to the repo. It will be used by the workflow.yml file.
#TODO: Once the infrastructure got created, download web app publish profile of the staging slot and add it as a secret to the repo. It will be used by the workflow.yml file.
2 changes: 1 addition & 1 deletion templates/azuredeploy.resourcegroup.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"value": "GEN-UNIQUE"
},
"rgLocation": {
"value": "centralus"
"value": "eastus"
}
}
}