A cloud-based identity and access management service for securing user authentication and resource access
Try to create Microsoft Domain Service and the domain in failed state
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"