-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/52005 key vault ip update script (#2173)
* create build def file * finish script * use bash script for azure CLI
- Loading branch information
1 parent
73cea4c
commit c15ce57
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "azure key vault instance name required" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ] | ||
then | ||
echo "azure resource group name required" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$3" ] | ||
then | ||
echo "ip address required" | ||
exit 1 | ||
fi | ||
|
||
KEY_VAULT_NAME=$1 | ||
RES_GRP=$2 | ||
IP_ADDRESS=$3 | ||
az keyvault network-rule add --name $KEY_VAULT_NAME --resource-group $RES_GRP --ip-address $IP_ADDRESS |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
trigger: none | ||
|
||
pool: | ||
name: 'Azure Pipelines' | ||
|
||
steps: | ||
- task: AzureCLI@2 | ||
displayName: 'Add IPv4 Address to KeyVault' | ||
inputs: | ||
azureSubscription: $(AzureSubscription) | ||
scriptType: bash | ||
scriptPath: 'deploy/build-defs/add-key-vault-ip.sh' | ||
arguments: $(KeyVaultName) $(ResourceGroup) $(IpAddress) |
This file contains 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