Skip to content

Azure Automation Account requires state #15005

Open
@alanrroberts

Description

@alanrroberts

This is a duplicate of 950 as requested by @mikhailshilkov.

If I try to run up an Integration Account using the sample code from the Pulumi website (below) I get an error

error: autorest/azure: Service returned an error. Status=400 Code="InvalidIntegrationAccount" Message="The provided integration account definition is not valid."

Steps to reproduce

"Pulumi up" the following code

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",
            },
        });
    }
}

The fix is to add a State property e.g. State = "Enabled" so I think this property needs to be marked as required and the documentation updated.

Cheers

Alan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Logic AppService AttentionWorkflow: This issue is responsible by Azure service team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions