https://pulumi.com logo
#general
Title
# general
a

adorable-analyst-27426

05/23/2023, 11:59 PM
I am getting below
error: .pulumi/stacks/nonprod.json: snapshot integrity failure; refusing to use it: resource urn:pulumi:nonprod::ai::azure:appservice:HttpEventSubscription$azure:appservice/functionApp:FunctionApp::api dependency  refers to missing resource
from AzureDevOps job using branch, it was runing OK until today. Nothing has change from and just want to add dummy data to the API, any advice
e

echoing-dinner-19531

05/24/2023, 7:29 AM
You'll probably need to delete that FunctionApp from the state file and re-import it
a

adorable-analyst-27426

05/24/2023, 11:09 AM
@echoing-dinner-19531 Can you please elaborate a bit more and do you have an example, thank you
e

echoing-dinner-19531

05/24/2023, 1:19 PM
There's a state delete command:
pulumi state delete urn:pulumi:nonprod::ai::azure:appservice:HttpEventSubscription$azure:appservice/functionApp:FunctionApp::api
But you'll then need to import that back with
pulumi import azure:appservice/functionApp:FunctionApp api <ID>