wls-eng / arm-oraclelinux-wls

Microsoft Azure ARM Templates to create Oracle Linux VM with pre-installed Weblogic Server
Apache License 2.0
0 stars 7 forks source link

KeyVaultAppGatewayTemplate fails to deploy if the resource group name is very long. #276

Closed gnsuryan closed 3 years ago

gnsuryan commented 3 years ago

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"InvalidDomainNameLabel","message":"The domain name label wlsgw7e4f67-guru-cluster-ssl-keyvault-aad-coh-1411jdk11ol76-wlsd is invalid. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$."}]}

The resource group name used was guru-cluster-ssl-keyvault-aad-coh-1411jdk11ol76. The resource group name is used for setting the domain name label for the Application gateway which has a constraint of max length of 61 characters. Since, the resource group name is very large, the domain label setting fails and therefore the keyvaultAppGateway deployment also fails. We may have to restrict the number of characters in the resource group name.

galiacheng commented 3 years ago

The domain name can contain only lowercase letters, numbers and hyphens. The first character must be a letter. The last character must be a letter or number. The value must be between 3 and 63 characters long. The domain name label must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.