Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Bicep deploys a Linux App Service Plan regardless of Kind defined

I’m trying to deploy a windows app service plan through a BICEP script. It deploys successfully with no issues/warnings/error. Even though I have the ‘Kind:’ set to windows it still results in a Linux App plan. Below is my BICEP code. New to BICEP but after reviewing several samples and testing different things, I simply cannot get it to deploy a windows ASP. What am I doing wrong? Thanks in advance.

resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
  name: appServicePlanName
  location: location
  kind: 'windows'
  tags: tagValues
  properties: {
    reserved: true
  } 
  sku:  {
    name: sku
    tier: skucode
  }
}

location is EastUS / SKU is P1V2 / SKUCODE is PremiumV2

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

reserved should be false. I know, it’s the most asinine and misdocumented thing. The ‘kind’ property seems to have no effect.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading