az cdn name-exists
Check the availability of a resource name. Azure CLI extensions reference
2 options Its page in the Azure CLI extensions reference
Options
--nameThe resource name to validate.--typeThe type of the resource whose name is to be validated.