This message was deleted.
# general
s
This message was deleted.
l
e
Copy code
panic: interface conversion: interface {} is nil, not map[string]interface {}
    goroutine 119 [running]:
    <http://github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x4d970c0|github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x4d970c0>, 0xc001ebc420, 0x4, 0x4d970c0, 0xc001ebc420, 0x1)
l
Looks like 383 is done, so long as you have a recent pulumi and pulumi-azure. The remaining issue is triggered only when your AppService's applicationLogs is set to {}. Maybe you could provide a different value there?
e
thank you, I wasn't providing any application logs so I guess that makes sense, do you have an example value that I can pass with C#?
l
I can't find one, no...
e
no worries, I'll keep digging 👍 thank you for your help
l
e
yeah, I'm going through those but being new to C# also doesn't help 😄
Copy code
Logs = new AppServiceLogsArgs()
                {
                    ApplicationLogs = new AppServiceLogsApplicationLogsArgs()
                    {
                        FileSystemLevel = "Error" 
                    }
                },
I've put that in there (which compiles but I don't know how correct it is) but I got the same error
l
Maybe @tall-librarian-49374 can say more.. though it's Christmas, so it might be a while!
e
all good, not in a hurry, I was just curious
thank you
I just deleted my stack and tried again. Creating it for the first time worked, the update didn't (same error). Seems https://github.com/pulumi/pulumi-azure/issues/383 is still happening
Copy code
logs                          : {
        applicationLogs: {
            fileSystemLevel : "Off" => "Error"
        }
        httpLogs       : {
            fileSystem      : null => {"retentionInDays":14,"retentionInMb":35}
        }
    }
that worked
I updated my code to include
Copy code
Logs = new AppServiceLogsArgs()
                {
                    HttpLogs = new AppServiceLogsHttpLogsArgs()
                    {
                        FileSystem = new AppServiceLogsHttpLogsFileSystemArgs()
                        {
                            RetentionInDays = 14,
                            RetentionInMb = 35
                        }
                    },
                    ApplicationLogs = new AppServiceLogsApplicationLogsArgs()
                    {
                        FileSystemLevel = "Error"
                    }
                },
and that made it work