From 03da34b1a0de5237755cab7a8547914e3fbf63cd Mon Sep 17 00:00:00 2001 From: Jack Tracey Date: Fri, 23 Jun 2023 17:50:39 +0100 Subject: [PATCH] alias fixes --- .../bicep/CRML/subscriptionAlias/subscriptionAlias.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra-as-code/bicep/CRML/subscriptionAlias/subscriptionAlias.bicep b/infra-as-code/bicep/CRML/subscriptionAlias/subscriptionAlias.bicep index 97b25f1bd..969262290 100644 --- a/infra-as-code/bicep/CRML/subscriptionAlias/subscriptionAlias.bicep +++ b/infra-as-code/bicep/CRML/subscriptionAlias/subscriptionAlias.bicep @@ -42,7 +42,7 @@ resource resSubscription 'Microsoft.Subscription/aliases@2021-10-01' = { properties: { additionalProperties: { tags: parTags - managementGroupId: empty(parManagementGroupId) ? 'null' : string(managementGroup(parManagementGroupId)) + managementGroupId: empty(parManagementGroupId) ? null : managementGroup(parManagementGroupId) subscriptionOwnerId: empty(parSubscriptionOwnerId) ? null : parSubscriptionOwnerId subscriptionTenantId: parTenantId }