Skip to content

Commit

Permalink
Fixed function app template after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HansDahle committed Oct 16, 2023
1 parent 10dc031 commit c952f9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pipelines/templates/deploy-function-pr-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ steps:
FailOnStandardError: true
azurePowerShellVersion: 'LatestVersion'
Inline: |
#
# Hardcoded to PR env
#
$environment = "pr"
$pullRequestNumber = "${{ parameters.pullRequestNumber }}"
$fusionEnvironment = "ci"
$functionAppName = "func-fap-resources-$environment"
$envVaultName = "kv-fap-resources-$environment"
$envResourceGroup = Get-AzResourceGroup -Tag @{ "fusion-app-component" = "resources-rg-$environment" }
if ($envResourceGroup -eq $null) { throw "Cannot locate resource group for environment '$environment'" }
Expand All @@ -43,8 +47,8 @@ steps:
$settings = @{
clientId = "${{ parameters.clientId }}"
secretIds = @{
clientSecret = "https://kv-fap-resources-pr.vault.azure.net:443/secrets/AzureAd--ClientSecret"
serviceBus = "https://kv-fap-resources-pr.vault.azure.net:443/secrets/Connectionstrings--ServiceBus"
clientSecret = "https://$envVaultName.vault.azure.net:443/secrets/AzureAd--ClientSecret"
serviceBus = "https://$envVaultName.vault.azure.net:443/secrets/Connectionstrings--ServiceBus"
}
endpoints = @{
lineorg = "https://fusion-s-lineorg-$fusionEnvironment.azurewebsites.net"
Expand Down

0 comments on commit c952f9a

Please sign in to comment.