I try to deploy a B2C tenant like this: ```let su...
# azure
a
I try to deploy a B2C tenant like this:
Copy code
let suffix= pulumi.getStack();
    suffix= suffix=="production" ? "" : suffix;
    const displayName= pulumi.interpolate `DEON - ${suffix}`;
    const resourceName= pulumi.interpolate `deon${suffix}directory`;
    const tenant= new azure.azureactivedirectory.B2CTenant("b2c", {
        resourceGroupName: resourceGroup.name,
        location: "europe", // because B2C has other, fewer possible locations
        sku: {
            name: "Standard",
            tier: "A0"
        },
        properties: {
            countryCode: "DE",
            displayName
        },
        resourceName
    });
and on
pulumi up
I get this error:
Copy code
b2c (azure-native:azureactivedirectory:B2CTenant)
error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="Resource with ID '25110286-d288-4e46-851b-4e2bc880672f/rgdev9a38f1a5/deondevdirectory' does not exist." Target="resource"
what am I doing wrong?
t
Maybe
resourceName
should be a valid domain name? Our example shows
Copy code
ResourceName = "<http://contoso.onmicrosoft.com|contoso.onmicrosoft.com>",
and the doc says
ResourceName string The initial domain name of the B2C tenant.
a
re missing ".onmicrosoft.com" - good catch, thank you 🙂 - I am trying this now
and it worked!
🎉 1
thanks a lot once again, @tall-librarian-49374
while creating the initial script was a bit of a journey, now that I'm getting used to how pulumi works and getting rid of the last kinks, I can say this is a very cool tool. ❤️
a somewhat unrelated question: how do I upgrade my account from personal to Team? I'm looking under Billing and under settings, but don't find anything?
t
how do I upgrade my account from personal to Team?
I have no idea. Either contact support or ask in #general?
👍 1