I'm using Azure java SDK as a client for creating resources on Azure. I'm trying to validate the resource name before creating it. I'm able to check if the resource with the given name already exists in that resource group, but I want to validate if the resource name is valid. Example: For creating a resource of type Microsoft.Storage/storageAccounts, the naming convention is to use a-z 0-9. Similarly, for different resource types, the naming convention is different like max length.
I tried using this API, but this API only checks if the resource name contains any reserved keywords.
Is there a way either in Azure java SDK or an Azure public API for achieving this?