CmdID / az / az search / az search service
az search service check-name-availability
Checks whether or not the given search service name is available for use. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--nameThe search service name to validate.--typeThe type of the resource whose name is to be validated.