Skip to content
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

Shouldn't use resourcegroup().name in dns labels or storage account names #35

Open
mmarch opened this issue Mar 6, 2017 · 2 comments
Open
Labels

Comments

@mmarch
Copy link
Owner

mmarch commented Mar 6, 2017

This always leads to validation errors - dns names and storage account names cannot have uppercase letters or dashes '-'.

See Azure/azure-quickstart-templates Issue #2990, and #12.

Per Best Practices guidelines for Resources: domainNameLabels should use uniquestring(resourceGroup().id) instead in all cases.

@cnicholson
Copy link

Keith suggested that a quick way to solve this would be to convert the RG name to all lower case and remove non-alphanumeric characters using the toLower() and -replace. Something like the following:

$string = $string.ToLower()
$string = -replace "[^a-z0-9]", ''

@jasonagilbertson
Copy link

This issue was moved to Azure/RDS-Templates#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants