-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure returning that the resource has been created, but it hasn't and is returning a 404 #1126
Comments
I can see the following error in the logs:
It sounds like our error handling isn't great in this scenario as we swallowed the actual root cause. |
It looks like that error message is coming from a 200 response so it's not surprising that we don't catch it |
The error message handling is actually the same issue as #880 and is caused by Azure/go-autorest#634 |
I also encout same issue. Is there any way to workaround this issue? var rg = new Pulumi.AzureNative.Resources.ResourceGroup("foo-rg", new Pulumi.AzureNative.Resources.ResourceGroupArgs
{
ResourceGroupName = "foo",
});
var tenant = new Pulumi.AzureNative.AzureActiveDirectory.B2CTenant("foo-b2c", new Pulumi.AzureNative.AzureActiveDirectory.B2CTenantArgs
{
Properties = new Pulumi.AzureNative.AzureActiveDirectory.Inputs.CreateTenantRequestBodyPropertiesArgs
{
CountryCode = "JP",
DisplayName = "foobarpiyopiyo123",
},
ResourceGroupName = rg.Name,
ResourceName = "foobarpiyopiyo123.onmicrosoft.com",
Sku = new Pulumi.AzureNative.AzureActiveDirectory.Inputs.B2CResourceSKUArgs
{
Name = Pulumi.AzureNative.AzureActiveDirectory.B2CResourceSKUName.PremiumP1,
Tier = Pulumi.AzureNative.AzureActiveDirectory.B2CResourceSKUTier.A0,
},
Location = "asiapacific",
}); error message
environment
|
Any news on this? We really want to be able to create B2C tenants using Pulumi. |
Same situation here - same bug... need urgent solution! |
I'm having the same issue as @guitarrapc. I've read the documentation for both Pulumi and Azure AD B2C Tenant, and I can't seem to crate the resource. |
Still reproducible in 2023 |
This still appears to be broken, even using an example almost identical to the one in the docs? var b2CTenant = new B2CTenant($"example-b2c-{args.Configuration.Environment}",
new B2CTenantArgs()
{
CountryCode = "US",
DisplayName = "Example",
Location = "United States",
ResourceGroupName = args.ResourceGroupName,
ResourceName = "pulumidevtestexample",
Sku = new AzureNative.AzureActiveDirectory.Inputs.B2CResourceSKUArgs
{
Name = AzureNative.AzureActiveDirectory.B2CResourceSKUName.PremiumP1,
Tier = AzureNative.AzureActiveDirectory.B2CResourceSKUTier.A0,
},
}, childOptions); What is the suggested work around for this, not only does this fail with an ambiguous error but also leaves my stack in a invalid state where I can no longer delete it? |
In my case the issue was due to destroying my stack but the tenant itself was actually never deleted, only the b2c resource was. Not sure how to get around this but for now all I did was to manually link the AD tenant to a new Ad B2C. (you can do this by going to the Portal -> Create new Ad B2C -> Link existing subscription) |
I'm trying to create a B2CTenant but I'm getting the following error message:
From the verbose output from an update (link) I can see that we get a 202 HTTP status back with the location but the first time we poll the location for the operation it returns 200. Subsequent GET requests return 404
Repo with code in is here: https://github.com/pierskarsenbarg/b2ctenant-demo
Code being run is here:
The text was updated successfully, but these errors were encountered: