Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Workflows #282

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 6 additions & 3 deletions .ado/workflows/dataManagementZoneDeployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ stages:
subscriptionId: ${{ variables.AZURE_SUBSCRIPTION_ID }}
location: ${{ variables.AZURE_LOCATION }}
templateLocation: "Linked artifact"
csmFile: "$(System.DefaultWorkingDirectory)/infra/main.json"
csmFile: "$(System.DefaultWorkingDirectory)/infra/main.bicep"
csmParametersFile: "$(System.DefaultWorkingDirectory)/infra/params.dev.json"
deploymentMode: "Validation"
deploymentName: "DataManagementZone-$(Build.SourceVersion)"

# Deploy Data Management Zone - what-if
- task: AzureCLI@2
Expand All @@ -79,7 +80,8 @@ stages:
--location ${{ variables.AZURE_LOCATION }} `
--subscription ${{ variables.AZURE_SUBSCRIPTION_ID }} `
--exclude-change-types Ignore NoChange Unsupported `
--template-file "$(System.DefaultWorkingDirectory)/infra/main.json" `
--name "DataManagementZone-$(Build.SourceVersion)" `
--template-file "$(System.DefaultWorkingDirectory)/infra/main.bicep" `
--parameters "$(System.DefaultWorkingDirectory)/infra/params.dev.json" `
--result-format "FullResourcePayloads"

Expand Down Expand Up @@ -123,6 +125,7 @@ stages:
subscriptionId: ${{ variables.AZURE_SUBSCRIPTION_ID }}
location: ${{ variables.AZURE_LOCATION }}
templateLocation: "Linked artifact"
csmFile: "$(System.DefaultWorkingDirectory)/infra/main.json"
csmFile: "$(System.DefaultWorkingDirectory)/infra/main.bicep"
csmParametersFile: "$(System.DefaultWorkingDirectory)/infra/params.dev.json"
deploymentMode: "Incremental"
deploymentName: "DataManagementZone-$(Build.SourceVersion)"
29 changes: 14 additions & 15 deletions .github/workflows/dataManagementZoneDeployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,28 +46,26 @@ jobs:
scope: subscription
subscriptionId: ${{ env.AZURE_SUBSCRIPTION_ID }}
region: ${{ env.AZURE_LOCATION }}
template: ${{ github.workspace }}/infra/main.json
template: ${{ github.workspace }}/infra/main.bicep
parameters: ${{ github.workspace }}/infra/params.dev.json
deploymentMode: Validate
deploymentName: "DataManagementZone-${{ github.sha }}"
failOnStdErr: false

# Deploy Data Management Zone - what-if
- name: Deploy Data Management Zone - what-if
id: data_management_zone_whatif
uses: azure/CLI@v1
uses: azure/arm-deploy@v1
with:
azcliversion: "agentazcliversion"
inlineScript: |
az account set \
--subscription ${{ env.AZURE_SUBSCRIPTION_ID }}

az deployment sub what-if \
--location ${{ env.AZURE_LOCATION }} \
--subscription ${{ env.AZURE_SUBSCRIPTION_ID }} \
--exclude-change-types Ignore NoChange Unsupported \
--template-file "${GITHUB_WORKSPACE}/infra/main.json" \
--parameters "${GITHUB_WORKSPACE}/infra/params.dev.json" \
--result-format "FullResourcePayloads"
scope: subscription
subscriptionId: ${{ env.AZURE_SUBSCRIPTION_ID }}
region: ${{ env.AZURE_LOCATION }}
template: ${{ github.workspace }}/infra/main.bicep
parameters: ${{ github.workspace }}/infra/params.dev.json administratorPassword="${{ steps.generate_password_001.outputs.password }}"
deploymentMode: Incremental
deploymentName: "DataManagementZone-${{ github.sha }}"
failOnStdErr: false
additionalArguments: "--what-if --what-if-exclude-change-types Ignore NoChange Unsupported --what-if-result-format FullResourcePayloads"

# Log out from Azure
- name: Log out from Azure
Expand Down Expand Up @@ -107,9 +105,10 @@ jobs:
scope: subscription
subscriptionId: ${{ env.AZURE_SUBSCRIPTION_ID }}
region: ${{ env.AZURE_LOCATION }}
template: ${{ github.workspace }}/infra/main.json
template: ${{ github.workspace }}/infra/main.bicep
parameters: ${{ github.workspace }}/infra/params.dev.json
deploymentMode: Incremental
deploymentName: "DataManagementZone-${{ github.sha }}"
failOnStdErr: false

# Log out from Azure
Expand Down