Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit b99ae97

Browse files
stishkinstas
andauthored
do not fail if keyvault already exists (#239)
Co-authored-by: stas <statis@microsoft.com>
1 parent 687fa7d commit b99ae97

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cli/raft_sdk/raft_deploy.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def update_deployment_context(self):
992992
json.dump(defaults, d, indent=4)
993993

994994
def test_az_version(self):
995-
supported_versions = ['2.25.0', '2.26.0']
995+
supported_versions = ['2.27.2']
996996
# az sometimes reports the version with an asterisk.
997997
# Perhaps when a new version of the CLI is available.
998998
tested_az_cli_versions = (
@@ -1102,7 +1102,11 @@ def deploy(self, sku, skip_sp_deployment):
11021102
f" --location {self.context['region']}")
11031103
print(f"Deployment Resource Group: {self.definitions.resource_group}")
11041104

1105-
self.init_key_vault()
1105+
try:
1106+
self.init_key_vault()
1107+
except RaftAzCliException as ex:
1108+
if ex.error_message == f'The specified vault: {self.definitions.key_vault} already exists':
1109+
pass
11061110

11071111
service_principal = {}
11081112
if skip_sp_deployment:

0 commit comments

Comments
 (0)