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 #43

Open
jasonagilbertson opened this issue Jun 17, 2017 · 1 comment

Comments

@jasonagilbertson
Copy link
Contributor

From @mmarch on March 6, 2017 20:15

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.

Copied from original issue: mmarch/rds-templates#35

@jasonagilbertson
Copy link
Contributor Author

From @cnicholson on March 23, 2017 16:10

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]", ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Windows Server RDS
  
Needs triage
Development

No branches or pull requests

2 participants