nice-football-42636
06/23/2020, 2:33 PMC# SDK
with Azure provider.
I want to create new AppService
with existing AppServicePlan
on Azure (we are migrating as a company to Pulumi, but slowly and we still have some resources in the azure created manually).
When i try to reference it as described here I get following error (i suppose from Azure api)
error: ID was missing the `serverfarms` element
But i'm sure, that the id is correct in form of:
/subscriptions/<OUR_SUB_ID>/resourceGroups/<OUR_RESOURCE_GROUP_NAME>/providers/Microsoft.Web/serverFarms/<OUR_APP_SERVICE_PLAN_NAME>
And that it exists.
Have somebody experienced this issue or do you have any hints what could be root cause of this error?
Thanks for any insights / hints! 🙂AppServicePlanId
from Azure Portal as i posted in original post it's a little bit different than the correct one.
Diff is:
From Azure Portal (which does not work)
/subscriptions/<OUR_SUB_ID>/resourceGroups/<OUR_RESOURCE_GROUP_NAME>/providers/Microsoft.Web/serverFarms/<OUR_APP_SERVICE_PLAN_NAME>
From GetAppService
/subscriptions/<OUR_SUB_ID>/resourceGroups/<OUR_RESOURCE_GROUP_NAME>/providers/Microsoft.Web/serverfarms/<OUR_APP_SERVICE_PLAN_NAME>
‼️ Note the small 'f' in .../server*f*arms/...