https://pulumi.com logo
#azure
Title
# azure
e

enough-butcher-66045

06/30/2021, 10:43 AM
alright, after banging my head for a while, the problem was that I wasn't passing the configs in the right format. I compared the
pulumi import
result vs what I was sending and this is the right syntax for the Config:
Copy code
Config = new Dictionary<string, Dictionary<string, string>[]>
                {
                    {
                        "bindings", new[]
                        {
                            new Dictionary<string, string>
                            {
                                {"authLevel", "function"},
                                {"direction", "in"},
                                {"name", "req"},
                                {"type", "httpTrigger"},
                            },
                            new Dictionary<string, string>
                            {
                                {"direction", "out"},
                                {"name", "res"},
                                {"type", "http"}
                            }
                        }
                    },
                },
3 Views