-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddRedirectUrlToAzureApp.yml
26 lines (26 loc) · 1.06 KB
/
AddRedirectUrlToAzureApp.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
# Tasks for adding and removing a reply url to an app registered in an azure tenant
- task: AzureCLI@2
displayName: "Add Redirect URLs"
name: "addRedirectUrls"
inputs:
azureSubscription: "$(azureSubscription)"
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
$output = az ad app show --id $(evaUiApplicationId)
echo $output | convertfrom-json
# Add Redirect URL to App registered in B2C tenant for eVA UI
az ad app update --id $(evaUiApplicationId) --add replyUrls '$(bicepDeploymentOutputs.evaUiHostName)'
$output = az ad app show --id $(evaUiApplicationId)
echo $output | convertfrom-json
- task: AzureCLI@2
displayName: "Add Redirect URLs"
name: "addRedirectUrls"
inputs:
azureSubscription: "$(azureSubscription)"
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
az ad app update --id $(evaUiApplicationId) --remove replyUrls '$(evaUiHostName)'
$output = az ad app show --id $(evaUiApplicationId)
echo $output | convertfrom-json