https://pulumi.com logo
#general
Title
# general
m

mysterious-australia-14256

04/23/2020, 9:39 AM
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

broad-dog-22463

04/23/2020, 9:44 AM
Hey @mysterious-australia-14256 This is something that can be controlled :) https://www.pulumi.com/docs/intro/concepts/programming-model/#names Paul
e

enough-oil-63049

04/23/2020, 10:31 AM
Can you specify a trailing dash separator? I have put it in manually...
b

broad-dog-22463

04/23/2020, 10:38 AM
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

mysterious-australia-14256

04/24/2020, 8:15 AM
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#?
2 Views