Microsoft.Management (preview:2024-02-01)

2025/09/29 • 1 updated methods

CheckNameAvailability (updated)
Description Checks if the specified management group or service group name is valid and unique
Reference Link ¶

⚶ Changes

{
  "#id": "CheckNameAvailability",
  "Description": {
    "new": "Checks if the specified management group or service group name is valid and unique",
    "old": "Checks if the specified management group name is valid and unique"
  },
  "$parameters": [
    {
      "#name": "checkNameAvailabilityRequest",
      "Description": {
        "new": "Management group or service group name availability check parameters.",
        "old": "Management group name availability check parameters."
      },
      "$schema": {
        "Description": {
          "new": "Management group or service group name availability check parameters.",
          "old": "Management group name availability check parameters."
        },
        "$properties": [
          {
            "#name": "type",
            "Enum": {
              "new": [
                [
                  "Microsoft.Management/managementGroups",
                  ""
                ],
                [
                  "Microsoft.Management/serviceGroups",
                  ""
                ]
              ],
              "old": [
                [
                  "Microsoft.Management/managementGroups",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  ],
  "$responses": {
    "200": {
      "Description": {
        "new": "Describes the result of the request to check management group name or service group name availability.",
        "old": "Describes the result of the request to check management group name availability."
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Management/checkNameAvailability
{
api-version: string ,
checkNameAvailabilityRequest:
{
name: string ,
type: enum ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details: string ,
}
,
}