Can Azure Functions and webapp share same APP SERVICE PLAN - azure

I have three azure function and two webapp, i want all app in same APP SERVICE PLAN but azure manual and maven both not allowed to add same APP SERVICE PLAN.
Is it possible in azure to add web and function app in same APP SERVICE PLAN ?

Yes, they can, as long as it's a fixed App Service Plan (not Consumption Plan). You can do that via Azure portal, not sure about maven.

I tried to setup a web app and a function app that share an app service Plan (Tier: Standard, B1) with terraform and always received following error when the web app should get created:
web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> <nil>
When using separate service plans for web apps and function apps, it works fine.

Related

Deploying Azure App Service within Azure App Service Environment using Terraform

There seems to be plenty of resources/examples of deploying Azure App Services - but I was wondering if there was an example somewhere explaining:
How to deploy Azure App services within a specific Azure App Service Environment using Terraform? Is it simply pointing the application into the subnet that holds the ASE?
Thanks ahead of time!
When deploying App Service Plan, you can specify App Service Environment it should be located in using app_service_environment_id attribute (doc).
Then you deploy App Service into that plan...

Change App Service Plan from Isolated to Isolated V2 Plan for a Web App

We want to change the App Service Plan of an existing Azure Web App, from Isolated Service Plan to Isolated "v2" Service Plan. There are no changes in Subscription, Resource Group or Region. One condition for us is, we want to continue using same the Web App with the Plan alone changed. Please let me if this possible and how can we change this.
I could see the "Change App Service Plan" option in Azure Portal but I am unable to exactly find it out regarding the Plan change by dabbling in it.
We are able to create the required Isolated V2 Plan separately but we are unable to switch the Web App to the new Plan so far.
Referring the Microsoft documentation, I keep coming across that different kinds of App Service Environments(ASE) are used for the above Plans, it is not clear due to different ASEs, the Plan change is possible or not.
For quick reference, I have sketched out my query below:
Azure Web App : Web-App-1
App Service Plan : Isolated Service Plan
to
Azure Web App : Web-App-1
App Service Plan : Isolated V2 Service Plan
(Same Region, Subscription and Resource Group)
when you try and change to the new ASP, Azure will perform a check to see if it is a valid move, so as long as you can see it in the destination combo box uner the change app service plan option you can try and let azure evaulate if the move is possible.
If you cannot see it as a destination then you might be able to clone the ASP because the two ASP's you have might be in a different webspace which you cannot do anything about.
Change App Service Plan from Isolated to Isolated V2 Plan for a Web App
I keep coming across that different kinds of App Service Environments(ASE) are used for the above Plans, it is not clear due to different ASEs, the Plan change is possible or not.
The private environment used with an Isolated plan is called the App Service Environment v2 and with Isolated v2 Service Plan is called the App Service Environment v3.
Apps can only move between plans that are created in the same webspace, where webspace is a internal deployment unit of App Service Plan.
Apps cannot be moved between plans in different App Service Environments.
Make sure you created the App Service Environment v3 to change your web app to Isolated V2 SKU.
To know more information on changing the app service plans along with its SKU Sizes and its limitations, please refer this Microsoft Documentation and regarding the app service environments versions of Isolated Plans, refer App Service pricing.

What is different azure function app and app service plan?

What is different azure function app and app service plan ?
I think;
Function app is a core layer - where hosted code and execute
App service plan is higher layer of function app - it can be covering function app. For example, it can cover network layer for function app.
But I see in function app has Vnet integration feature and app service plan has virtual network integration too.
I am confused with it.
What is different azure function app and app service plan in network part ?
p/s: I have created virtual network and assign app service plan to that VNET. then I deployed a function app into app service, but this function does not stay in that VNET. how to verify that ?
There are a few things that will help you to understand this little better and you can also verify through Azure Portal. After all, it's all the hosting plan you want to use.
App Service Plan: This is something a root consumption plan you are paying for. kind of resources you want for much of your work. (I would say - choose this wisely)
Function App: This resource has 3-4 different kinds of hosting plan options
(i) Consumption plan (ii) Premium Plan (iii) App Service Plan (iV) ASE.
now, if you have notice - App Service Plan (item iii) is also one of the options. Not necessary that is only an option. So, in other words; Function App can sit outside the App Service plan (like Consumption plan) where it will deploy separately.
At this moment Question might come - what could be a difference. for that visit Microsoft's well-documented link here which states you are paying and resources are getting allocated during the function real-use whereas, App Service Plan uses your own app Dedicated service plan which you already have decided a lot earlier in the cycle.
Your last question - How do we confirm? well, Open App Service Plan inside Azure Portal and there is an essential section where you will find App(s)/ Slot(s). Click on that you will see how many app services/ function apps already sharing that specific App Service Plan like below:
An App Service Plan is the environment which you pay for.
You can then run different workloads including function apps within the App Service Plan. Grouping workloads in a single App Service Plan can save you money compared with having different App Service Plans for each App Function.
The VNET configuration is both at the App Service Plan and the App Service / Function App level. You do not necessarily want all App Services / Function Apps in the same App Service Plan to run on the same VNET.
The consumption plan is based on function runtime, which means only when your function is running else no.
Premium plan you need to specify prewarmed instances that will always be online. so it's kind of minimum fixed billing and it can go beyond if you use it for resources.
The app service plan (Dedicated plan) is Running function like other apps. It will use the same app service plan.
Refer to this documentation for more details.

Azure "Only empty App Service plans can be deleted" error

I'm tried to delete an Azure App Service plan, but Azure threw a fit:
The App Service plan has 1 apps. Only empty App Service plans can be deleted.
No problem - I need to remove the Web app from the App Service plan.
I thought that navigating to the App Service plan's General > Apps page would do it, but that page just gives you a read-only list of the Web apps installed in the App Service plan.
I'd like to move this Web app to another App Service plan, or delete it altogether. How do I get past the Only empty App Service plans can be deleted error?
Navigate to the App Service you want to move to a new plan.
On the management blade, look under the App Service Plan heading. There's a menu option of "Change App Service Plan".
Select the new plan you'd like to move the App Service to.

Error while creating new Azure app service plan for a webapp

I have a new Azure webapp created and I want to move it a separate web app service plan to apply custom domain (Not available on free tier). From the new Portal I try to create new Web App Service plan and get this error.
Failed to create App Service plan.
Failed to create App Service plan . There was an error processing your request. Please try again in a few moments."
Even while creation of the web app if I select create new App Service Plan it automatically goes into Free Plan.
I received confirmation from Azure team that this issue is fixed and working on the new portal.
Check the thread: https://social.msdn.microsoft.com/Forums/azure/en-US/45156bef-d8ce-4725-8626-cc510b831851/error-while-creating-new-app-service-plan-for-a-webapp?forum=windowsazurewebsitespreview

Resources