56 строки
2.1 KiB
YAML
56 строки
2.1 KiB
YAML
# ----------------------------------------------------------------------------------
|
|
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT license.
|
|
#
|
|
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
|
|
# OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
# ----------------------------------------------------------------------------------
|
|
|
|
trigger: none
|
|
|
|
variables:
|
|
- name: devops-org-name
|
|
value: ${{ replace(replace(variables['System.CollectionUri'], 'https://dev.azure.com/' , ''), '/', '') }}
|
|
- name: networking-config-directory
|
|
value: $(System.DefaultWorkingDirectory)/$(networkPathFromRoot)/${{ variables['devops-org-name'] }}-${{ variables['Build.SourceBranchName'] }}
|
|
- name: variable-template-file
|
|
value: ${{ variables['devops-org-name'] }}-${{ variables['Build.SourceBranchName'] }}.yml
|
|
- template: ../config/variables/common.yml
|
|
- template: ../config/variables/${{ variables['variable-template-file'] }}
|
|
|
|
pr: none
|
|
|
|
pool:
|
|
vmImage: $[ variables.vmImage ]
|
|
|
|
stages:
|
|
|
|
- stage: DeployAzureFirewallPolicyStage
|
|
displayName: Deploy Azure Firewall Policy Stage
|
|
|
|
jobs:
|
|
|
|
- deployment: DeployAzureFirewallPolicyJob
|
|
displayName: Deploy Azure Firewall Policy Job
|
|
environment: ${{ variables['Build.SourceBranchName'] }}
|
|
strategy:
|
|
runOnce:
|
|
deploy:
|
|
steps:
|
|
- checkout: self
|
|
|
|
- template: templates/steps/load-variables.yml
|
|
|
|
- template: templates/steps/show-variables.yml
|
|
parameters:
|
|
json: ${{ convertToJson(variables) }}
|
|
|
|
- template: templates/steps/deploy-platform-connectivity-hub-azfw-policy.yml
|
|
parameters:
|
|
deployOperation: ${{ variables['deployOperation'] }}
|
|
networkingSubscriptionId: $(var-hubnetwork-subscriptionId)
|
|
azureFirewallPolicyConfigurationPath: ${{ variables['networking-config-directory'] }}/$(var-hubnetwork-azfwPolicy-configurationFileName)
|
|
networkingRegion: $(var-hubnetwork-region)
|
|
workingDir: $(System.DefaultWorkingDirectory)/landingzones
|