Azure / Azure/azure-quickstart-templates

Error in RDS farm deployment using existing active directory when having - in Resource Group

Open
#2,990 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

RDS farm deployment using existing active directory - https://github.com/Azure/azure-quickstart-templates/tree/master/rds-deployment-existing-ad

### Issue Details
During the deployment of the "RDS farm deployment using existing active directory" code in Azure I noticed that when I use a '-' or a upper-case characters in the Resource Group name I'll get the error that the validation is failed.

Details shows:
"The domain name label [name] is invalid. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. (Code: InvalidDomainNameLabel)"

This is related to:
`
"gwdnsLabelPrefix": "[concat('gwd', resourceGroup().name)]",
"cbdnsLabelPrefix": "[concat('cbd', resourceGroup().name)]",
`

After fixing this I could continue with the deployment. However it fails again, this time about an invalid parameter about the storage:
https://*.blob.core.windows.net/sac*-*/rdsh-1-os-disk.vhd is invalid. Container names must be 3-63 characters in length and may contain only lower-case alphanumeric characters and hyphen. Hyphen must be preceeded and followed by an alphanumeric character."

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the rds-deployment-existing-ad template and inspect the gwdnsLabelPrefix and cbdnsLabelPrefix expressions named in the report. Then trace how the storage URL and container name are formed. Done means deployments using resource group names with hyphens or uppercase characters produce valid DNS labels and storage container names without the reported validation errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.