Open rakhshandakhan opened 2 years ago
Thank you for your feedback. This has been routed to the support team for assistance.
Thanks for reporting. We will look into it.
Hi @rakhshandakhan Routing this to service team's attention!
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ahmedelnably, @fabiocav.
Author: | rakhshandakhan |
---|---|
Assignees: | - |
Labels: | `Service Attention`, `Functions`, `bug`, `customer-reported` |
Milestone: | - |
Hello @stefanushinardi -- Could you please check if this operation is allowed in the Az CLI? Thanks.
Hi @Francisco-Gamino and @stefanushinardi,
I have checked in the Azure CLI and it's working correctly there. This issue is only with Azure PowerShell. Thanks!
Hi Team, Any updates on this?
Thanks @rakhshandakhan for the verification. We are going to estimate the work and get the priority for this work. In the mean time, please to az CLI for workaround.
Description
When trying to switch the Function App Plan from Premium to Consumption using the PowerShell commands, I am unable to do that and getting the error as "Cannot change the site {function-app-name} to the App Service Plan {consumption-plan-name} due to hosting constraints.". I understand that this error comes when the webspace of the plan and the function app is different, but the issue comes even when you have the plan and function app is in the same webspace. This is because I already have an existing consumption plan with same name in a different Resource group. It is when you have same plan name in different resource group it always picks the first lexical order name and send the webspace id of that plan instead of the one just created within same Webspace. Steps to reproduce the issue with Azure PowerShell Commands: 1: Create a new resource group called "ABC123-RG" under location East US 2: Create a new storage account abcstorageaccount123 3: Create a function app in Consumption plan Model under East US (or any) location under resource group created in step 1. This should create an App Service Plan Name "EastUSPlan" in the Resource Group "ABC123-RG" 4: Create a new resource group called "Testing123-RG" under same location East US 5: Create a new storage account teststorageaccount123 6: create a new premium plan 7: create a function app in consumption plan 8: Update function app to premium plan 9: Update the function app to consumption plan. => This will fail and give error as stated above. If we check the HTTP request content for this, we will find the ServerFarmId being passed as with the resource group ABC123-RG. But it should have been Testing123-RG Powershell_Script_commands.txt
Issue script & Debug output
Environment data
Module versions
Error output