Try to create Microsoft Domain Service and the domain in failed state

Tech Impact 0 Reputation points
2025-11-10T16:29:10.44+00:00

I try to use all the method to create the MS Entra Domain Service but most of its failed due to TLS problem here is the most recent output

"eventName": "Microsoft.AAD/DomainServices/write",

"reason": "{"status":"Failed","error":{"code":"ResourceOperationFailure","message":"The resource operation completed with terminal provisioning state 'Failed'.","details":[{"code":"BadRequest","message":"TLS 1.0 or 1.1 is currently deprecated. You are required to use TLS 1.2."}]}}"

and Here is the bash code that run on Azure Cloud Bash Platform

TOKEN=$(az account get-access-token --resource https://management.azure.com --query accessToken -o tsv)

cat > adds.json <<'JSON'

{

"location": "East US",

"properties": {

"domainName": "orgname.org",

"sku": "Standard",

"filteredSync": "Disabled",

"replicaSets": [

  {

    "location": "East US",

    "subnetId": "/subscriptions/subscription_number/resourceGroups/resouce_name/providers/Microsoft.Network/virtualNetworks/network_name/subnets/subnet_name"

  }

],

"notificationSettings": {

  "notifyGlobalAdmins": "Enabled",

  "notifyDcAdmins": "Enabled",

  "additionalRecipients": []

}

}

}

JSON=

curl --tlsv1.2 -X PUT \

-H "Authorization: Bearer $TOKEN" \

-H "Content-Type: application/json" \

--data @adds.json \

"https://management.azure.com/subscriptions/subscription_number_number/resourceGroups/resource_name/providers/Microsoft.AAD/domainServices/orgname.org?api-version=2021-05-01"

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.