https://pulumi.com logo
#azure
Title
# azure
a

able-beard-29160

06/01/2020, 9:42 PM
Folks, there's an innocuous thing that's annoying me. It seems that the Azure provider, when generating names by suffixing them with some random characters, doesn't use a hyphen separator between my name and that suffix. I vaguely remember that the AWS provider was not doing this. Is there something special about Azure (maybe limits?) so that the hyphen isn't used in the final generated names? For example, if I have a resource named
aks-cluster
it will generate something like
aks-clustere624bc72
, instead of
aks-cluster-e624bc72
.
a

ancient-megabyte-79588

06/01/2020, 9:51 PM
afaik, there is no ability to substitute your own naming strategy in here. That would be an interesting feature, but in some cases, the resource you are generating isn't allowed to have
-
in the name, storage accounts for example. It is probably the least amount of support and complexity to have it the way that it is with simply 8 alphanumerics at the end.
a

able-beard-29160

06/01/2020, 10:06 PM
Oh, right. Storage accounts don't accept hyphens, I've bumped into that. You're right, it makes sense to use this simpler strategy. Thanks.
e

enough-oil-63049

06/01/2020, 11:18 PM
I just left a trailing dash on all autonamed resources...
a

able-beard-29160

06/01/2020, 11:49 PM
🙂 I thought about it, but that annoys me in a different way.
t

tall-librarian-49374

06/02/2020, 7:29 AM
Feel free to upvote/comment on https://github.com/pulumi/pulumi/issues/1518
3 Views