Last active
October 11, 2025 13:41
-
-
Save FrankDeGroot/842c64178650d142fe88d424e12ecbb4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pool: default | |
| trigger: | |
| paths: | |
| include: | |
| - .azuredevops/release.yml | |
| - Deployment | |
| - testArtifacts | |
| resources: | |
| pipelines: | |
| - pipeline: build | |
| source: build | |
| trigger: true | |
| jobs: | |
| - job: Release | |
| steps: | |
| - task: AzureResourceManagerTemplateDeployment@3 | |
| name: deployApp | |
| inputs: | |
| azureResourceManagerConnection: Azure | |
| resourceGroupName: TodoItems | |
| location: West Europe | |
| deploymentOutputs: arm | |
| csmFile: $(Build.SourcesDirectory)/Deployment/app/main.bicep | |
| overrideParameters: | |
| -webAppName fjtdg-todo-items | |
| -keyVaultName fjtdgtodoitems | |
| - script: | | |
| echo '$(arm)' | jq -r .webAppUrl.value | |
| echo '$(arm)' | jq -r .vaultUri.value | |
| - task: AzureCLI@2 | |
| name: setSecret | |
| inputs: | |
| azureSubscription: Azure | |
| scriptType: bash | |
| scriptLocation: inlineScript | |
| inlineScript: | |
| az keyvault secret set | |
| --vault-name fjtdgtodoitems | |
| --name aspnetcoreenvironment | |
| --value Development | |
| - download: build | |
| artifact: api | |
| name: downloadApi | |
| - task: AzureWebApp@1 | |
| name: deployApi | |
| inputs: | |
| azureSubscription: Azure | |
| resourceGroupName: TodoItems | |
| appType: webApp | |
| appName: fjtdg-todo-items | |
| package: $(Pipeline.Workspace)/build/api/todoItemsApi.zip | |
| - script: echo $(deployApi.AppServiceApplicationUrl) | |
| name: printUrlWeb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment