Skip to content

Commit

Permalink
Move back from azure/arm-deploy@main to azure/arm-deploy@v1 - ref. Az…
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick El-Azem committed Jun 18, 2021
1 parent 6f0d78e commit 4222be9
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 81 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ao.infra.global.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ jobs:
- name: Deploy Log Analytics
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/monitor.log-analytics-workspace.json
parameters: location=${{env.AZURE_LOCATION_GLOBAL}} workspaceName=${{env.LA_WORKSPACE_NAME}}

- name: Deploy Log Analytics Diagnostics
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/monitor.log-analytics-workspace.diagnostics.json
Expand All @@ -125,7 +125,7 @@ jobs:
- name: Deploy DDoS Plan
if: ${{ success() && (env.VNET_ENABLE_DDOS == 'true') }}
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/net.ddos-plan.json
Expand All @@ -134,23 +134,23 @@ jobs:

- name: Deploy Container Registry
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/container-registry.json
parameters: location=${{env.AZURE_LOCATION_GLOBAL}} registryName=${{env.REGISTRY_NAME}} skuName=Premium replicationLocations=${{env.AZURE_LOCATIONS}} zoneRedundancy=Enabled

- name: Deploy Container Registry Diagnostics
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/container-registry.diagnostics.json
parameters: registryName=${{env.REGISTRY_NAME}} logAnalyticsWorkspaceResourceId="${{env.LA_WORKSPACE_ID}}"

- name: Grant Deploy SP AcrPush on Global Registry
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ env.AZURE_RESOURCE_GROUP_GLOBAL }}
deploymentName: ${{ env.AZURE_RESOURCE_GROUP_GLOBAL }}-rbac-acr-push
Expand All @@ -160,15 +160,15 @@ jobs:

- name: Deploy App Insights
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/monitor.app-insights.json
parameters: location=${{env.AZURE_LOCATION_GLOBAL}} appInsightsName=${{env.APP_INSIGHTS_NAME}} logAnalyticsWorkspaceResourceId="${{env.LA_WORKSPACE_ID}}"

- name: Deploy App Insights Diagnostics
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/monitor.app-insights.diagnostics.json
Expand All @@ -177,39 +177,39 @@ jobs:

- name: Deploy Cosmos DB Account
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/cosmos-db.account.json
parameters: location=${{env.AZURE_LOCATION_GLOBAL}} accountName=${{env.COSMOS_DB_ACCT_NAME}} locations=${{env.AZURE_LOCATIONS}} enableMultipleWriteLocations=${{env.COSMOS_DB_MULTI_REGION_WRITE}}

- name: Deploy Cosmos DB Diagnostics
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/cosmos-db.diagnostics.json
parameters: accountName=${{env.COSMOS_DB_ACCT_NAME}} logAnalyticsWorkspaceResourceId="${{env.LA_WORKSPACE_ID}}"

- name: Deploy Cosmos DB Database
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/cosmos-db.sql.database.json
parameters: location=${{env.AZURE_LOCATION_GLOBAL}} cosmosDbAccountName=${{env.COSMOS_DB_ACCT_NAME}} databaseName=${{env.COSMOS_DB_DATABASE_NAME}} provisionedThroughput=${{env.COSMOS_DB_DATABASE_PROVISIONED_THROUGHPUT}} autoscaleMaxThroughput=${{env.COSMOS_DB_DATABASE_AUTOSCALE_MAX_THROUGHPUT}}

- name: Deploy Cosmos DB Container - Profiles
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/cosmos-db.sql.container.json
parameters: location=${{env.AZURE_LOCATION_GLOBAL}} cosmosDbAccountName=${{env.COSMOS_DB_ACCT_NAME}} databaseName=${{env.COSMOS_DB_DATABASE_NAME}} containerName=${{env.COSMOS_DB_CONTAINER_1_NAME}} partitionKeyPath="${{env.COSMOS_DB_CONTAINER_1_PARTITION_KEY}}" provisionedThroughput=${{env.COSMOS_DB_CONTAINER_1_PROVISIONED_THROUGHPUT}} autoscaleMaxThroughput=${{env.COSMOS_DB_CONTAINER_1_AUTOSCALE_MAX_THROUGHPUT}}

- name: Deploy Cosmos DB Container - Progress
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/cosmos-db.sql.container.json
Expand All @@ -218,47 +218,47 @@ jobs:

- name: Deploy Front Door WAF Policy
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/fd.waf-policy.json
parameters: wafPolicyName="${{env.FRONT_DOOR_WAF_POLICY_NAME}}"

- name: Deploy Front Door Profile
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/fd.profile.json
parameters: frontDoorName="${{env.FRONT_DOOR_NAME}}"

- name: Deploy Front Door Diagnostics
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/fd.diagnostics.json
parameters: frontDoorName=${{env.FRONT_DOOR_NAME}} logAnalyticsWorkspaceResourceId="${{env.LA_WORKSPACE_ID}}"

- name: Deploy Front Door Endpoint
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/fd.endpoint.json
parameters: frontDoorName="${{env.FRONT_DOOR_NAME}}" endpointName="${{env.FRONT_DOOR_ENDPOINT_NAME}}" originResponseTimeoutSeconds="${{env.FRONT_DOOR_ORIGIN_TIMEOUT}}"

- name: Deploy Front Door Security Policy
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/fd.security-policy.json
parameters: frontDoorName="${{env.FRONT_DOOR_NAME}}" securityPolicyName="${{ env.FRONT_DOOR_SECPOL_NAME }}" wafPolicyId="${{ env.FRONT_DOOR_WAF_POLICY_ID }}" endpointName="${{env.FRONT_DOOR_ENDPOINT_NAME}}"

- name: Deploy Front Door Origin Group
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{env.AZURE_RESOURCE_GROUP_GLOBAL}}
template: ./src/infra-deploy/templates/fd.origin-group.json
Expand All @@ -272,7 +272,7 @@ jobs:
- name: Deploy App Insights Availability Test for Front Door Endpoint URI
if: success()
uses: azure/arm-deploy@main
uses: azure/arm-deploy@v1
with:
resourceGroupName: ${{ env.AZURE_RESOURCE_GROUP_GLOBAL }}
deploymentName: ${{ env.FRONT_DOOR_NAME }}-avl-test
Expand Down
Loading

0 comments on commit 4222be9

Please sign in to comment.