var provider = new Pulumi.AzureNative.Provider("provider", new Pulumi.AzureNative.ProviderArgs()
{
SubscriptionId = p.subscriptionId,
ClientId = p.servicePrincipalId,
ClientSecret = p.servicePrincipalSecret,
TenantId = p.tenantId,
PartnerId = p.partnerId
});
// Azure Resource Group
var rg = new Pulumi.AzureNative.Resources.ResourceGroup("rg", new()
{
ResourceGroupName = $"rg-{p.projectName}-{p.env}",
Location = p.location,
Tags = { { "env", p.env } }
}, new CustomResourceOptions() { Provider = provider });
b
billowy-tiger-6272
11/17/2022, 6:14 PM
Hey @icy-doctor-13719, thanks for the reply!!
Just one thing: is it enough to assign it the Resource Group or do I need to set it in every other resource I create?
i
icy-doctor-13719
11/17/2022, 6:14 PM
resource group is good enough
icy-doctor-13719
11/17/2022, 6:15 PM
if you have other resources that aren’t tied to that resource group, you can always assign them a different provider … i.e. I have Azure DNS in another subscription/rg and I want to manage DNS records there so I have a separate provider
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.