azure ad domain services
1 TopicGetting error while provisioning managed domain using PowerShell
Hi All, I am trying to provision Azure ADDS managed domain to prepare POC for my client. I used the same set of command earlier multiple times and didn't get any error. But today when I tried doing the same using PowerShell, I got below error New-AzResource : BadRequest : The property 'ReplicaSets' is missing. CorrelationId: 7588b953-9e72-4c23-8d20-a0a632928778 At line:1 char:1 + New-AzResource -ResourceId "/subscriptions/$AzureSubscriptionId/resou ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzResource], ErrorResponseMessageException + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceCmdlet I am following Microsoft Document and my command is as below $AzureSubscriptionId = "MY_AZURE_SUBSCRIPTION_ID" $ManagedDomainName = "My Domain" # Enable Azure AD Domain Services for the directory. New-AzResource -ResourceId "/subscriptions/$AzureSubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.AAD/DomainServices/$ManagedDomainName" ` -Location $AzureLocation ` -Properties @{"DomainName"=$ManagedDomainName; ` "SubnetId"="/subscriptions/$AzureSubscriptionId/resourceGroups/$ResourceGroupName/providers/Microsoft.Network/virtualNetworks/$VnetName/subnets/DomainServices"} ` -Force -Verbose I get same error when I try from Azure PowerShell prompt as well. Any help in this regard is helpful.2.9KViews0likes7Comments