From 939c02f41a08d8897b41dc515c0c49e9a618b1dd Mon Sep 17 00:00:00 2001 From: Erika Gressi Date: Sat, 4 Dec 2021 21:41:49 +0100 Subject: [PATCH] Align Automanage deployment names --- arm/Microsoft.Automanage/accounts/deploy.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm/Microsoft.Automanage/accounts/deploy.bicep b/arm/Microsoft.Automanage/accounts/deploy.bicep index ce2b99e932..a03fa62b1e 100644 --- a/arm/Microsoft.Automanage/accounts/deploy.bicep +++ b/arm/Microsoft.Automanage/accounts/deploy.bicep @@ -34,7 +34,7 @@ module pidName '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) { } module autoManageAccount '.bicep/nested_autoManageAccount.bicep' = { - name: 'autoManageAccount-${uniqueString(subscription().subscriptionId, autoManageAccountResourceGroupName, name)}' + name: '${uniqueString(deployment().name, location)}-AutoManageAccount' scope: resourceGroup(autoManageAccountResourceGroupName) params: { location: location @@ -61,7 +61,7 @@ resource autoManageAccount_permissions_resourcePolicyContributor 'Microsoft.Auth } module configurationProfileAssignment '.bicep/nested_configurationProfileAssignment.bicep' = { - name: 'configurationProfileAssignment-${uniqueString(vmResourceGroupName, vmName)}' + name: '${uniqueString(deployment().name, location)}-ConfigurationProfileAssignment' scope: resourceGroup(vmResourceGroupName) params: { vmName: vmName