Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the reserved argument in azure app service plan terraform config

While writing config for App Service Plan, I came across the argument reserved in the terraform documentation

reserved - (Optional) Is this App Service Plan Reserved. Defaults to false.

I am not sure what this reserved argument would do if set to true, except that there is a note stating it must be set to true for Linux plan.

Couldn't find that property in Azure documentation either. Also I don't see that property while creating the plan through portal.

like image 840
Naresh Babu Avatar asked Jan 24 '20 18:01

Naresh Babu


People also ask

How do I make Azure app using terraform?

Implement the Terraform codeCreate a directory in which to test and run the sample Terraform code and make it the current directory. Create a file named main.tf and insert the above code. Initialize Terraform. Create the Terraform plan.

What is Azure app service plan?

An App Service plan defines a set of compute resources for a web app to run. These compute resources are analogous to the server farm in conventional web hosting. One or more apps can be configured to run on the same computing resources (or in the same App Service plan).

How do I change my Azure app service plan?

In the Azure portal, search for and select App services and select the app that you want to move. From the left menu, select Change App Service plan. In the App Service plan dropdown, select an existing plan to move the app to.


1 Answers

For your issue, just as the node shows you that it must be set to true for Linux plan. Here is a question in the Azure document for Linux service plan, it says if you want to create a Linux service plan, just set the reserved field to true. And there is also an issue in the Github, it shows this:

If you set "kind": "linux" but without setting "reserved": true, it deploys a Windows service plan with a Linux icon!

So just as the description shows in the REST API, the reserved field decides the service plan is Linux or other types.

like image 169
Charles Xu Avatar answered Sep 20 '22 13:09

Charles Xu