pulumi / pulumi-azure

A Microsoft Azure Pulumi resource package, providing multi-language access to Azure
Apache License 2.0
131 stars 50 forks source link

appservice/Plan can not be refreshed or deleted #1879

Open VenelinMartinov opened 6 months ago

VenelinMartinov commented 6 months ago

What happened?

I deployed the examples/eventhub program yesterday and I believe it got cleaned up overnight. Now the appservice/Plan resource is stuck and can not be refreshed or deleted.

Example

pulumi refresh --stack dev
Previewing refresh (dev)

View in Browser (Ctrl+O): https://app.pulumi.com/pulumi/azure-eventhub/dev/previews/fa0ef467-e1d9-4268-8a01-bbb2a23bbb80

     Type                                       Name                Plan        Info
     pulumi:pulumi:Stack                        azure-eventhub-dev              1 error
 -   ├─ azure:core:ResourceGroup                test                delete      
 -   ├─ azure:eventhub:EventHub                 test                delete      
     │  └─ azure:eventhub:EventHubSubscription  test                            
 -   │     ├─ azure:storage:Container           test                delete      
 ~   │     ├─ azure:appservice:Plan             test                refresh     1 error
 -   │     ├─ azure:storage:Account             test                delete      
 -   │     └─ azure:storage:Blob                test                delete      
 -   └─ azure:eventhub:EventHubNamespace        test                delete      

Diagnostics:
  azure:appservice:Plan (test):
    error: Preview failed: refreshing urn:pulumi:dev::azure-eventhub::azure:eventhub/eventHub:EventHub$azure:eventhub:EventHubSubscription$azure:appservice/plan:Plan::test: 1 error occurred:
        * ID was missing the `serverfarms` element

  pulumi:pulumi:Stack (azure-eventhub-dev):
    error: preview failed

Output of pulumi about

pulumi about
CLI          
Version      3.108.1
Go Version   go1.22.0
Go Compiler  gc

Plugins
NAME    VERSION
azure   4.42.0
nodejs  unknown

Host     
OS       darwin
Version  14.1.1
Arch     arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v21.6.1'

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/venelin-pulumi-corp
User           venelin-pulumi-corp
Organizations  venelin-pulumi-corp, demo, pulumi
Token type     personal

Dependencies:
NAME            VERSION
@pulumi/azure   4.42.0
@pulumi/pulumi  3.108.1
@types/node     10.17.60
mime-types      2.1.35

Pulumi locates its logs in /var/folders/82/nqnqw81s1h56l5nv940f9mq00000gn/T/ by default
warning: Failed to get information about the current stack: No current stack

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

guineveresaenger commented 5 months ago

I believe this is related to changes in casing: upstream issue was closed as stale.