https://pulumi.com logo
#dotnet
Title
# dotnet
d

damp-honey-93158

11/24/2022, 12:03 PM
Is there a C# lib out there that can validate resource names (rg, key vault, storage, registry and so on) BEFORE I try to submit the pulumi code to azure? Since we have versioned ephemeral infrastructure - there will be parallel instances of the entire infra stack - and it'd be easier to understand what is what if I can inject the version numbers into the names in some places - in addition to tags - but some naming rules don't allow periods, or underscores while others do (e.g. rg vs container registry name). Thanks for any hints / tips
e

echoing-dinner-19531

11/24/2022, 12:23 PM
preview
should be checking naming rules like that, if it's not that's a bug
d

damp-honey-93158

11/24/2022, 4:54 PM
ah, interesting - I've had ACR's fail, as well as some other resources currently not in my brain ...
e

echoing-dinner-19531

11/24/2022, 11:30 PM
Do raise issues if preview says a name is fine but then update rejects it, in most cases we should be able to validate names even at preview time.