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 What-If Step #86

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
01b8b3c
Updated What-If Step
marvinbuss Nov 24, 2021
b10ff6b
updated what if stage
marvinbuss Nov 24, 2021
44ba66d
added deployment name
marvinbuss Nov 24, 2021
300cb18
added dev and prod deployment workflows for gh
marvinbuss Dec 7, 2021
504bb5d
updated triggers
marvinbuss Dec 7, 2021
5d416e5
updated dependency
marvinbuss Dec 7, 2021
4814e5f
updated environments
marvinbuss Dec 7, 2021
1538749
updated workflows again
marvinbuss Dec 8, 2021
d475947
updated workflows based on guidance
marvinbuss Dec 9, 2021
6f0d2e0
updated ref
marvinbuss Dec 9, 2021
93a6397
test
marvinbuss Dec 9, 2021
30ae365
test
marvinbuss Dec 9, 2021
af239a1
test
marvinbuss Dec 9, 2021
f7ffd9e
updated trigger
marvinbuss Dec 9, 2021
0d12032
test
marvinbuss Dec 9, 2021
0c9b692
updated workflows
marvinbuss Dec 9, 2021
5d8fc61
test
marvinbuss Dec 9, 2021
0895524
test
marvinbuss Dec 9, 2021
66fd3fa
update reference
marvinbuss Dec 9, 2021
777fc57
updated reference back
marvinbuss Dec 9, 2021
1dbaa3d
Updated links in PR and Issue Templates
marvinbuss Dec 20, 2021
61dab4a
Merge branch 'main' into marvinbuss/what_if
marvinbuss Dec 20, 2021
126673f
updated gh workflows and templates
marvinbuss Dec 20, 2021
847568b
Added ado template
marvinbuss Dec 20, 2021
3a99b8b
Updated ado pipelines
marvinbuss Dec 20, 2021
2278a15
updated trigger
marvinbuss Dec 20, 2021
9f58d02
updated workflows
marvinbuss Mar 4, 2022
6254401
Merge branch 'main' of https://github.com/Azure/data-product-streamin…
marvinbuss Mar 4, 2022
d7f6ce3
updated workflows
marvinbuss Mar 4, 2022
e467a9f
test
marvinbuss Mar 4, 2022
61ce92f
updated wf
marvinbuss Mar 4, 2022
1639886
update linting
marvinbuss Mar 4, 2022
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
6 changes: 3 additions & 3 deletions .ado/workflows/dataProductDeployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ stages:
resourceGroupName: ${{ variables.AZURE_RESOURCE_GROUP_NAME }}
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"
overrideParameters: >
Expand All @@ -98,7 +98,7 @@ stages:
--resource-group ${{ variables.AZURE_RESOURCE_GROUP_NAME }} `
--exclude-change-types Ignore NoChange Unsupported `
--mode "Incremental" `
--template-file "$(System.DefaultWorkingDirectory)/infra/main.json" `
--template-file "$(System.DefaultWorkingDirectory)/infra/main.bicep" `
--parameters "$(System.DefaultWorkingDirectory)/infra/params.dev.json" administratorPassword="$(password)" `
--result-format "FullResourcePayloads"

Expand Down Expand Up @@ -159,7 +159,7 @@ stages:
resourceGroupName: ${{ variables.AZURE_RESOURCE_GROUP_NAME }}
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"
overrideParameters: >
Expand Down
27 changes: 12 additions & 15 deletions .github/workflows/dataProductDeployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,25 @@ jobs:
subscriptionId: ${{ env.AZURE_SUBSCRIPTION_ID }}
resourceGroupName: ${{ env.AZURE_RESOURCE_GROUP_NAME }}
region: ${{ env.AZURE_LOCATION }}
template: ${{ github.workspace }}/infra/main.json
template: ${{ github.workspace }}/infra/main.bicep
parameters: ${{ github.workspace }}/infra/params.dev.json administratorPassword="${{ steps.generate_password_001.outputs.password }}"
deploymentMode: Validate
failOnStdErr: false

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

az deployment group what-if \
--resource-group ${{ env.AZURE_RESOURCE_GROUP_NAME }} \
--exclude-change-types Ignore NoChange Unsupported \
--mode "Incremental" \
--template-file "${GITHUB_WORKSPACE}/infra/main.json" \
--parameters "${GITHUB_WORKSPACE}/infra/params.dev.json" administratorPassword="${{ steps.generate_password_001.outputs.password }}" \
--result-format "FullResourcePayloads"
scope: resourcegroup
subscriptionId: ${{ env.AZURE_SUBSCRIPTION_ID }}
resourceGroupName: ${{ env.AZURE_RESOURCE_GROUP_NAME }}
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: Validate
failOnStdErr: false
additionalArguments: "--what-if --what-if-exclude-change-types Ignore NoChange Unsupported"

# Log out from Azure
- name: Log out from Azure
Expand Down Expand Up @@ -122,7 +119,7 @@ jobs:
subscriptionId: ${{ env.AZURE_SUBSCRIPTION_ID }}
resourceGroupName: ${{ env.AZURE_RESOURCE_GROUP_NAME }}
region: ${{ env.AZURE_LOCATION }}
template: ${{ github.workspace }}/infra/main.json
template: ${{ github.workspace }}/infra/main.bicep
parameters: ${{ github.workspace }}/infra/params.dev.json administratorPassword="${{ steps.generate_password_001.outputs.password }}"
deploymentMode: Incremental
failOnStdErr: false
Expand Down