Hello @Athapan Arayasantiparb
Thanks for posting in the Microsoft Q and A.
The error "Resource has invalid name" indicates an issue with the resource name in your template. Characters like "/", "", "?" etc. are not allowed in Azure resource names. To resolve this, modify the resource name to use only alphanumeric characters, underscores, hyphens, and periods. When deploying the template manually, define a valid resource name for your Cognitive Services account. Additionally, check the exported template from the Azure portal for the "Microsoft.Default." prefix, which might cause issues. If present, edit the template file and replace it with a valid resource name. Disabling local authentication with properties.disableLocalAuth = true
is a valid approach, as documented https://video2.skills-academy.com/en-us/azure/ai-services/disable-local-auth. Remember, automated deployment isn't necessary for this configuration.
Hope it helps! If you found the solution useful kindly consider accepting the solution!