In some testing or our app that creates resources via the Resource Manager APIs, we have noticed that the ARM APIs are throwing an exception when you create an Availability Set in a Resource Group that has a name that starts with an '_'. The Resource Group is valid and was created in the Azure portal.
Here is the error we get:
Cloud Exception Details: Code - InvalidParameter; Message - The entity name 'resourceGroupName' is invalid according to its validation rule: ^[^_\W][\w-._]{0,79}(?<![-.])$.; Target - resourceGroupName.Microsoft.Rest.Azure.CloudException: The entity name 'resourceGroupName' is invalid according to its validation rule: ^[^_\W][\w-._]{0,79}(?<![-.])$.