Hi, can I control the auto-naming at all? When I ...
# general
m
Hi, can I control the auto-naming at all? When I create an azure Resource Group using C# it is taking the name (div-proj-rg) and appending the auto-name straight to it so I end up with div-proj-rgXYZ (where XYZ is the random part). I'd like to force it to stick a - in so I get div-proj-rg-XYZ Cheers Alan
b
Hey @mysterious-australia-14256 This is something that can be controlled :) https://www.pulumi.com/docs/intro/concepts/programming-model/#names Paul
e
Can you specify a trailing dash separator? I have put it in manually...
b
You would need to use a transformation for that as part of the resource
Further down the same page you will see transformation docs
m
Thanks all I will take a look at the links
Hi Paul, I'm struggling to work out how to use the transformation to transform the physical resource name. Do you have an example (or link to an example) that would work for a resource using C#?