ancient-eve-13947
07/13/2021, 10:11 AMServerArgs
parameters, too. The same goes for CosmosDb: there is the name parameter of the constructor and the AccountName
property of DatabaseAccountArgs
.
What's the deal here? Why are there two different ways of specifying the name? What happens if I don't specify the one in the properties?
Thank you,
Mark @ DEONbrave-planet-10645
07/13/2021, 10:14 AMname
, do you mean the first parameter:
resource_group = ResourceGroup("rg_Mark")
?ancient-eve-13947
07/13/2021, 10:21 AMbrave-planet-10645
07/13/2021, 10:22 AMancient-eve-13947
07/13/2021, 10:22 AMvar 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?brave-planet-10645
07/13/2021, 10:44 AMServerName
has a few characters on the end (due to our auto-naming), but you're referencing it correctly in the Database
resourceancient-eve-13947
07/13/2021, 10:48 AMbrave-planet-10645
07/13/2021, 1:08 PM