Choose consumption plan name in Azure function app
Create consumption plan with your desire
name
Issue:
· How can I create consumption plan with my desire name like App Service plan?
Solution:
Unlike App service plan or premium plan, Azure portal doesn’t provide you a way to create a consumption plan with your desire name. You can’t decide consumption plan name at the time of creating the Azure function.
You can only select the plan type
as mentioned in below screen.
It creates consumption plan name
by its own mostly with some random name, like in below screen,
While if you choose App Service plan or Premium plan then you can create hosting plan with your desire name also. You can check same in below screen,
Similarly, in Premium plan you can
create with your desire name,
Now question should be, why should
I worry about consumption plan name? I can use the default name also.
And the answer is, in some cases Naming
Conventions matters. For example, suppose you have 3 function app for 3 environments
like DEV, UAT and PROD and you want to have consumption plan
name accordingly like consumptoinDEV, consumptionUAT or consumptionPROD.
As mentioned earlier, you can’t decide
the consumption plan name when create through portal then how to achieve it.
Answer is: ARM Template.
You can check in above screen that
ARM template provides you a way to create consumption plan with your own desire
name.
Complete ARM template for function
app in consumption plan : https://github.com/Azure/azure-quickstart-templates/tree/master/101-function-app-create-dynamic
Now I deployed function app using
ARM template and specified my own name and here is the result,
Hope this helps. Please let me
know your queries in comment section.
Happy to help. 😊
This comment has been removed by a blog administrator.
ReplyDelete