Title
t

tall-needle-56640

10/20/2020, 4:32 PM
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
pulumi😛ulumi:Stack PulumiPort-dev
+ ├─ azure:appservice:FunctionApp app create
- └─ azure:appservice:FunctionApp 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
pulumi😛ulumi:Stack PulumiPort-dev failed 1 error
+ └─ azure:appservice:FunctionApp app creating failed 1 error
Diagnostics:
azure:appservice:FunctionApp (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

gentle-diamond-70147

10/20/2020, 5:23 PM
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

tall-needle-56640

10/20/2020, 6:23 PM
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