From c5785d37a4de75d464d8b994864627f5fc72f1ed Mon Sep 17 00:00:00 2001 From: alicia-td <166751279+alicia-td@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:24:28 -0700 Subject: [PATCH 1/4] fix: use vault unique name --- .../azure/templates/bicep/all-in-one/all-in-one-with-nlb.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/azure/templates/bicep/all-in-one/all-in-one-with-nlb.bicep b/deployments/azure/templates/bicep/all-in-one/all-in-one-with-nlb.bicep index 5642635..9f573d3 100644 --- a/deployments/azure/templates/bicep/all-in-one/all-in-one-with-nlb.bicep +++ b/deployments/azure/templates/bicep/all-in-one/all-in-one-with-nlb.bicep @@ -169,7 +169,7 @@ module vaultAccessPolicy '../modules/vault/access-policy.bicep' = if (UseKeyVaul scope: rg name: 'vault-access-policy' params: { - vaultName: AiUnlimitedName + vaultName: vault.outputs.name accessPolicy: { tenantId: subscription().tenantId objectId: aiUnlimited.outputs.PrincipleId From c369962cdfa85e244eaf315f56c63c870b43ab45 Mon Sep 17 00:00:00 2001 From: alicia-td <166751279+alicia-td@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:25:00 -0700 Subject: [PATCH 2/4] fix: use vault unique name --- .../templates/bicep/all-in-one/all-in-one-without-lb.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/azure/templates/bicep/all-in-one/all-in-one-without-lb.bicep b/deployments/azure/templates/bicep/all-in-one/all-in-one-without-lb.bicep index f60e509..ffff710 100644 --- a/deployments/azure/templates/bicep/all-in-one/all-in-one-without-lb.bicep +++ b/deployments/azure/templates/bicep/all-in-one/all-in-one-without-lb.bicep @@ -167,7 +167,7 @@ module vaultAccessPolicy '../modules/vault/access-policy.bicep' = if (UseKeyVaul scope: rg name: 'vault-access-policy' params: { - vaultName: AiUnlimitedName + vaultName: vault.outputs.name accessPolicy: { tenantId: subscription().tenantId objectId: aiUnlimited.outputs.PrincipleId From 90f2a09e0376274a871a6f7bc51d767758cc8231 Mon Sep 17 00:00:00 2001 From: alicia-td <166751279+alicia-td@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:41:28 -0700 Subject: [PATCH 3/4] fix: use correct vault name --- .../azure/templates/arm/all-in-one/all-in-one-without-lb.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/azure/templates/arm/all-in-one/all-in-one-without-lb.json b/deployments/azure/templates/arm/all-in-one/all-in-one-without-lb.json index 3ede9f7..3c3e858 100644 --- a/deployments/azure/templates/arm/all-in-one/all-in-one-without-lb.json +++ b/deployments/azure/templates/arm/all-in-one/all-in-one-without-lb.json @@ -313,7 +313,7 @@ "mode": "Incremental", "parameters": { "vaultName": { - "value": "[parameters('AiUnlimitedName')]" + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('ResourceGroupName')), 'Microsoft.Resources/deployments', 'vault'), '2022-09-01').outputs.name.value]" }, "accessPolicy": { "value": { @@ -1200,4 +1200,4 @@ "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('ResourceGroupName')), 'Microsoft.Resources/deployments', 'firewall'), '2022-09-01').outputs.Id.value]" } } -} \ No newline at end of file +} From 443f25fdca82457a407882e7341429c3a6bb4fd0 Mon Sep 17 00:00:00 2001 From: alicia-td <166751279+alicia-td@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:42:04 -0700 Subject: [PATCH 4/4] fix: use correct vault name --- .../azure/templates/arm/all-in-one/all-in-one-with-nlb.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/azure/templates/arm/all-in-one/all-in-one-with-nlb.json b/deployments/azure/templates/arm/all-in-one/all-in-one-with-nlb.json index 0ce7fe2..b763152 100644 --- a/deployments/azure/templates/arm/all-in-one/all-in-one-with-nlb.json +++ b/deployments/azure/templates/arm/all-in-one/all-in-one-with-nlb.json @@ -314,7 +314,7 @@ "mode": "Incremental", "parameters": { "vaultName": { - "value": "[parameters('AiUnlimitedName')]" + "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('ResourceGroupName')), 'Microsoft.Resources/deployments', 'vault'), '2022-09-01').outputs.name.value]" }, "accessPolicy": { "value": { @@ -1541,4 +1541,4 @@ "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, parameters('ResourceGroupName')), 'Microsoft.Resources/deployments', 'firewall'), '2022-09-01').outputs.Id.value]" } } -} \ No newline at end of file +}