https://pulumi.com logo
Title
m

mysterious-australia-14256

06/25/2021, 9:38 AM
I'm trying to create an Integration Account using the following code from the Pulumi website
using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var integrationAccount = new AzureNative.Logic.IntegrationAccount("integrationAccount", new AzureNative.Logic.IntegrationAccountArgs
        {
            IntegrationAccountName = "testIntegrationAccount",
            Location = "westus",
            ResourceGroupName = "testResourceGroup",
            Sku = new AzureNative.Logic.Inputs.IntegrationAccountSkuArgs
            {
                Name = "Standard",
            },
        });
    }

}
I get an error back saying error: autorest/azure: Service returned an error. Status=400 Code="InvalidIntegrationAccount" Message="The provided integration account definition is not valid." Anyone know of a fix for this? Thanks Alan
Looks like adding a State to the Args e.g. State = "Enabled" fixes the issue
b

billowy-army-68599

06/25/2021, 10:07 AM
could you open an issue for this here? https://github.com/pulumi/pulumi-azure-native/issues We should make that param required
m

mysterious-australia-14256

06/25/2021, 10:47 AM
Done , issue 950