Getting 404 error, when resource exists. In the be...
# general
t
Getting 404 error, when resource exists. In the below output (clipped for brevity), you can see that the app plan must be the same for both functions, but then it can't find the app plan to update it:
> pulumi up
Previewing update (dev)
Type Name Plan
pulumipulumiStack PulumiPort-dev
+ ├─ azureappserviceFunctionApp app create
- └─ azureappserviceFunctionApp test20201910func delete
Resources:
+ 1 to create
- 1 to delete
2 changes. 5 unchanged
Do you want to perform this update? yes
Updating (dev)
Type Name Status Info
pulumipulumiStack PulumiPort-dev failed 1 error
+ └─ azureappserviceFunctionApp app creating failed 1 error
Diagnostics:
azureappserviceFunctionApp (app):
error: web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="NotFound" Message="Cannot find ServerFarm with name test20201910-aspa9aae18b." Details=[{"Message":"Cannot find ServerFarm with name test20201910-aspa9aae18b."},{"Code":"NotFound"},{"ErrorEntity":{"Code":"NotFound","ExtendedCode":"51004","Message":"Cannot find ServerFarm with name test20201910-aspa9aae18b.","MessageTemplate":"Cannot find {0} with name {1}.","Parameters":["ServerFarm","test20201910-aspa9aae18b"]}}]
g
Was this working before and is now failing or the first time you're trying this deployment? Are you deploying these all within the same resource group? Can you share your code?
t
I started with the azure-cs-functions-consumption example and then made some edits and now it doesn't work. All go into the same resource group.
I figured it out. I had the Plan and FunctionApp deploying to different regions. Clearly, they have to be in the same location. 🙂
👍 1