-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
33 lines (31 loc) · 1.62 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
trigger: none
pool:
vmImage: ubuntu-latest
jobs:
- job: Run_App_Service_Deploy_Script
timeoutInMinutes: 30
steps:
- task: AzurePowerShell@5
inputs:
azureSubscription: 'cccis-jlindsey-sandbox(ff95cccd-cbb7-41a2-b4ba-41917218c03c)'
ScriptType: 'InlineScript'
azurePowerShellVersion: 'LatestVersion'
pwsh: true
Inline: |
New-AzResourceGroup -ResourceGroupName $(ResourceGroupName) -Location "$(Location)"
New-AzResourceGroupDeployment -ResourceGroupName $(ResourceGroupName) -Name main -TemplateFile $(System.DefaultWorkingDirectory)/bicep/main.bicep -resourceBaseName $(ResourceBaseName) -location "$(Location)" -vnetName $(VnetName) -adminLogin $(DBAdminName) -adminPasswordSecretName mySqlAdminPassword
- task: AzureKeyVault@2
inputs:
azureSubscription: 'cccis-jlindsey-sandbox(ff95cccd-cbb7-41a2-b4ba-41917218c03c)'
KeyVaultName: 'jimmykeys'
SecretsFilter: 'mySqlAdminPassword'
RunAsPreJob: false
- task: AzureCLI@2
displayName: Deploy App Service and Partially Configure
inputs:
azureSubscription: 'cccis-jlindsey-sandbox(ff95cccd-cbb7-41a2-b4ba-41917218c03c)'
scriptType: 'pscore'
scriptLocation: 'scriptPath'
scriptPath: '$(System.DefaultWorkingDirectory)/deployandConfigAppService.ps1'
arguments: '-ResourceBaseName $(ResourceBaseName) -ResourceGroupName $(ResourceGroupName) -Location "$(Location)" -DBAdminName $(DBAdminName) -DBPassword $(mySqlAdminPassword) -VnetName $(VnetName) -SubnetName $(SubnetName)'
workingDirectory: '$(System.DefaultWorkingDirectory)'