Bicep DSC extension deployment - The resource namespace 'subscriptions' is invalid #5257
-
Hello, I am deploying servers using Bicep template which contains following resources - network cards, VMs, Availability Sets, Shutdown Schedule and last one is the DSC extension (see below). When I start this deployment using 'New-AzResourceGroupDeployment' all looks good, template gets validated and everything get deployed except below DSC extension... Powershell returns an error which does not tell me much. I was Googling whole afternoon, but haven't found anything appropriate. If anyone has any idea, thanks: New-AzResourceGroupDeployment: C:\Users\Tomass\Scripts\Server.ps1:36 ########################################################################## resource DscExtension 'Microsoft.Compute/virtualMachines/extensions@2021-07-01' = [for item in Par_Servers: { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
My imediate guess would be to look at this |
Beta Was this translation helpful? Give feedback.
My imediate guess would be to look at this
Var_DSC.AutoAccountResourceID
and see if you don't have a duplicate & unneededsubscriptions
entry in that resulting string