This message was deleted.
s
This message was deleted.
b
when you say
name
, do you mean the first parameter:
Copy code
resource_group = ResourceGroup("rg_Mark")
?
a
yes
b
So that's the name that we use as part of the unique identifier within the state
a
ah, so that name has nothing to do with Azure?
so, in principle, I don't really care about this name, do I? however, how about this:
var sqlServer= new Server("nameJustForPulumi", new ServerArgs{ ServerName="actualServerName", ... });
var sqlDatabase= new Database("...", new DatabaseArgs{ ServerName= sqlServer.Name});
Will the server name of the database be correctly set, ie, to "actualServerName"? or do I use this wrong?
b
As long as it's unique within the state that's fine. You'll probably find that the
ServerName
has a few characters on the end (due to our auto-naming), but you're referencing it correctly in the
Database
resource
a
thank you very much!
ah, that link was gold!
it just made me realize there is no need for putting the stackname into the names of my resources
thanks again
b
No problem 🙂