This message was deleted.
# general
s
This message was deleted.
h
Updating (test):
Type Name Status Info pulumipulumiStack Test.Proj.Infra-test failed 1 error; 28 messages +- ├─ azurestorageBlob app-api replaced [diff: ~source] ~ └─ azureappserviceAppService app-app-api updating failed [diff: ~appSettings]; 1 error Diagnostics: pulumipulumiStack (Test.Proj.Infra-test): error: update failed panic: interface conversion: interface {} is nil, not map[string]interface {} goroutine 197 [running]: github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x484e340, 0xc001687000, 0x4, 0x484e340, 0xc001687000, 0x1) /home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-azurerm@v1.41.1-0.20201030110955-8f045db2896a/azurerm/internal/services/web/app_service.go:1382 +0xcb4 github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.resourceArmAppServiceUpdate(0xc00011d500, 0x49dd560, 0xc00161adc0, 0x0, 0x0) /home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-azurerm@v1.41.1-0.20201030110955-8f045db2896a/azurerm/internal/services/web/resource_arm_app_service.go:490 +0x1c47 github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000a362d0, 0xc00034e320, 0xc001728140, 0x49dd560, 0xc00161adc0, 0x1, 0x0, 0x1) /home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.13.1/helper/schema/resource.go:316 +0x26a github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000a80500, 0xc00166d5e8, 0xc00034e320, 0xc001728140, 0x0, 0x0, 0x0) /home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.13.1/helper/schema/provider.go:294 +0xa0 github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v1.v1Provider.Apply(0xc000a80500, 0x514faa8, 0x13, 0x5b1c800, 0xc0010d3860, 0x5b5f760, 0xc001728140, 0x0, 0x5b5f760, 0xc001728140, ...) /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.12.1/pkg/tfshim/sdk-v1/provider.go:97 +0x11c github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0000021e0, 0x5b18e00, 0xc0017e4b10, 0xc00035b700, 0xc0000021e0, 0x4a4dd01, 0xc000ef9c80) /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.12.1/pkg/tfbridge/provider.go:970 +0x96f github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x5b18e00, 0xc0017e4b10, 0x4e56a80, 0xc00035b700, 0x4e3e2a0, 0x963f520, 0x5b18e00, 0xc0017e4b10) /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.12.0/proto/go/provider.pb.go:2280 +0x90 github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x5b18e00, 0xc0017e4240, 0x4e56a80, 0xc00035b700, 0xc001724260, 0xc001724280, 0x0, 0x0, 0x5a99c40, 0xc00010bd10) /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2f2 github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x4f0ff40, 0xc0000021e0, 0x5b18e00, 0xc0017e4240, 0xc0003068a0, 0xc00052aca0, 0x5b18e00, 0xc0017e4240, 0xc0011aa000, 0xf28) /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.12.0/proto/go/provider.pb.go:2282 +0x152 google.golang.org/grpc.(*Server).processUnaryRPC(0xc0009481c0, 0x5b60cc0, 0xc00030c480, 0xc0010ece00, 0xc000ec9c80, 0x95ff1f8, 0x0, 0x0, 0x0) /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1171 +0x511 google.golang.org/grpc.(*Server).handleStream(0xc0009481c0, 0x5b60cc0, 0xc00030c480, 0xc0010ece00, 0x0) /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1494 +0xcd4 google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000c94060, 0xc0009481c0, 0x5b60cc0, 0xc00030c480, 0xc0010ece00) /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:834 +0xa8 created by google.golang.org/grpc.(*Server).serveStreams.func1 /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:832 +0x20b
b
Hi @hundreds-toddler-20724 What version of pulumi-azure are you using here?
h
v2.13.0
cli v2.13.0, nuget:Pulumi.Azure 3.0.0
Also, I'm using C#
b
hi @hundreds-toddler-20724 you can do 1 of 2 things: 1. Upgrade to latest code - which is riskier than #2 2. set PULUMI_DISABLE_PROVIDER_PREVIEW=1 as an environment variable
and that should fix things up
h
This is a test project, when you say "1 is riskier" is the riskier for a deployment to a mature environment or generally riskier?
No good, I updated to nuget:Pulumi.Azure 3.29.1 and am still getting the error
Setting PULUMI_DISABLE_PROVIDER_PREVIEW=1 did not help either
Copy code
C:\repos\prft\at-rest-test\Test.Proj.Infra>Set PULUMI
PULUMI_DISABLE_PROVIDER_PREVIEW=1

C:\repos\prft\at-rest-test\Test.Proj.Infra>pulumi up
Enter your passphrase to unlock config/secrets
    (set PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE to remember):
Previewing update (test):
     Type                            Name                  Plan        Info                                                  pulumi:pulumi:Stack             Test.Proj.Infra-test                                                                ~   ├─ azure:appservice:AppService  app-app-api           update      [diff: ~appSettings]                              +-  └─ azure:storage:Blob           index.html            replace     [diff: ~source]                                  
Outputs:
  ~ ApiUrl: "<https://app-app-api852f626a.azurewebsites.net>" => output<string>

Resources:
    ~ 1 to update
    +-1 to replace
    2 changes. 24 unchanged

Permalink: file:///C:/Users/NathanWinder/.pulumi/stacks/test.json
Do you want to perform this update? yes
Updating (test):
     Type                            Name                  Status                  Info                                      pulumi:pulumi:Stack             Test.Proj.Infra-test  **failed**              1 error; 28 messages                  ~   └─ azure:appservice:AppService  app-app-api           **updating failed**     [diff: ~appSettings]; 1 error        
Diagnostics:
  pulumi:pulumi:Stack (Test.Proj.Infra-test):
    panic: interface conversion: interface {} is nil, not map[string]interface {}
    goroutine 93 [running]:
    <http://github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x484e340|github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x484e340>, 0xc000734940, 0x4, 0x484e340, 0xc000734940, 0x1)
        /home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-azurerm@v1.41.1-0.20201030110955-8f045db2896a/azurerm/internal/services/web/app_service.go:1382 +0xcb4
    <http://github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.resourceArmAppServiceUpdate(0xc002388310|github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.resourceArmAppServiceUpdate(0xc002388310>, 0x49dd560, 0xc001166840, 0x0, 0x0)
        /home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-azurerm@v1.41.1-0.20201030110955-8f045db2896a/azurerm/internal/services/web/resource_arm_app_service.go:490 +0x1c47
    <http://github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc0009902d0|github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc0009902d0>, 0xc000af9770, 0xc002320340, 0x49dd560, 0xc001166840, 0x1, 0x0, 0x1)
        /home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.13.1/helper/schema/resource.go:316 +0x26a
    <http://github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000186c00|github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000186c00>, 0xc000c0b5e8, 0xc000af9770, 0xc002320340, 0x0, 0x0, 0x0)
        /home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.13.1/helper/schema/provider.go:294 +0xa0
    <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v1.v1Provider.Apply(0xc000186c00|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v1.v1Provider.Apply(0xc000186c00>, 0x514faa8, 0x13, 0x5b1c800, 0xc002319640, 0x5b5f760, 0xc002320340, 0x0, 0x5b5f760, 0xc002320340, ...)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.12.1/pkg/tfshim/sdk-v1/provider.go:97 +0x11c
    <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0000021e0|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0000021e0>, 0x5b18e00, 0xc00189cea0, 0xc000ddd600, 0xc0000021e0, 0x4a4dd01, 0xc0016499c0)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.12.1/pkg/tfbridge/provider.go:970 +0x96f
    <http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x5b18e00|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x5b18e00>, 0xc00189cea0, 0x4e56a80, 0xc000ddd600, 0x4e3e2a0, 0x963f520, 0x5b18e00, 0xc00189cea0)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.12.0/proto/go/provider.pb.go:2280 +0x90
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x5b18e00|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x5b18e00>, 0xc00189c780, 0x4e56a80, 0xc000ddd600, 0xc002125f60, 0xc002125f80, 0x0, 0x0, 0x5a99c40, 0xc00070ebf0)
        /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2f2
    <http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x4f0ff40|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x4f0ff40>, 0xc0000021e0, 0x5b18e00, 0xc00189c780, 0xc001d85b60, 0xc0001efe40, 0x5b18e00, 0xc00189c780, 0xc001640000, 0x1051)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.12.0/proto/go/provider.pb.go:2282 +0x152
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0009e01c0|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0009e01c0>, 0x5b60cc0, 0xc000704a80, 0xc0021f8400, 0xc000647800, 0x95ff1f8, 0x0, 0x0, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1171 +0x511
    <http://google.golang.org/grpc.(*Server).handleStream(0xc0009e01c0|google.golang.org/grpc.(*Server).handleStream(0xc0009e01c0>, 0x5b60cc0, 0xc000704a80, 0xc0021f8400, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1494 +0xcd4
    <http://google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000d42300|google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000d42300>, 0xc0009e01c0, 0x5b60cc0, 0xc000704a80, 0xc0021f8400)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:834 +0xa8
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:832 +0x20b

    error: update failed

  azure:appservice:AppService (app-app-api):
    error: transport is closing

Outputs:
  - ApiUrl: "<https://app-app-api852f626a.azurewebsites.net>"
  - SpaUrl: "<https://stappspae046e68.z22.web.core.windows.net/>"

Resources:
    24 unchanged

Duration: 15s
b
oh, in that case, you are going to need to open an issue and we can look into it
there's nothing that should be broken here
so it's a legit bug
👍 1
g
I am getting this issue as well across a variety of projects and stacks 😞
This simple pulumi program can reproduce the issue. You simply change the value of
TESTVAR
after making a deployment to trigger the bug that Nathan mentioned.
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const stack = pulumi.getStack();
const resourceName: string = "bugtestplan";

// Create an Azure Resource Group
const resourceGroup = new azure.core.ResourceGroup(resourceName);

const appServicePlan = new azure.appservice.Plan(resourceName, {
  name: resourceName,
  resourceGroupName: resourceGroup.name,
  kind: `Linux`,
  reserved: true,
  sku: {
    tier: "B1",
    size: "B1",
  },
  location: resourceGroup.location,
});

const testAppService = new azure.appservice.AppService(
  resourceName,
  {
    name: resourceName,
    resourceGroupName: resourceGroup.name,
    appServicePlanId: appServicePlan.id,
    httpsOnly: false,
    appSettings: {
      TESTVAR: "val1",
      WEBSITE_NODE_DEFAULT_VERSION: "12.16.1",
    }
  },
);
h
AppService: Changing AppSettings after initial launch throws error · Issue #740 · pulumi/pulumi-azure (github.com)