Need to add toLower() to the dnsLabelPrefix because you are using the resourcegroup value which does not have to be lowercase.