-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Microsoft.Subscription/aliases@2021-10-01' - No . allowed in name #2171
Comments
This is nor bicep bug not a bug on the resource provider. If I am not mistaken quite majority of resource providers does not allow using . in the name of the resource. |
Note that alias name and displayName are two different properties. They do not have to be the same. The alias name is the name of the alias resource. displayName will be the name of the subscription. The display name of the subscription most likely allows using . as that is display name, not resource name. |
Bicep version
Bicep CLI v0.27.1
Describe the bug
When trying to create a subscription alias. When using a . in the name. I receive an error that the resource cannot be found. When replacing the '.' with a '-'. Then it works.
To Reproduce
When deploying the module like below:
param subscriptionName string = 'test.subscription.name'
error received below:
{"code":"DeploymentFailed","target":"/providers/Microsoft.Management/managementGroups/xxxxxxx/providers/Microsoft.Resources/deployments/xxxxxx","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"BadRequest","message":"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."}]}
When using
param subscriptionName string = 'test-subscription-name'
there is no error anymore.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: