title: Create a consumption based App Service Plan with Powershell
body: <p>I found this answer for the <a href="https://stackoverflow.com/questions/30178043/its-possible-to-create-app-service-plans-using-azure-powershell">question</a></p>
  <p>Does anyone know how to create a <strong>Consumption</strong> app-service-plan with Azure?</p>
  <p>When I look at the properties (using <a href="https://resources.azure.com/" rel="nofollow noreferrer">https://resources.azure.com/</a> ) of one I made (by the Gui), I see the following properties;</p>
  <pre><code>  },
    &quot;sku&quot;: {
      &quot;name&quot;: &quot;Y1&quot;,
      &quot;tier&quot;: &quot;Dynamic&quot;,
      &quot;size&quot;: &quot;Y1&quot;,
      &quot;family&quot;: &quot;Y&quot;,
      &quot;capacity&quot;: 0
    }
  
  
  {
    &quot;id&quot;: &quot;/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.Web/serverfarms/MyHandMadeConsumptionAppServicePlan&quot;,
    &quot;name&quot;: &quot;MyHandMadeConsumptionAppServicePlan&quot;,
    &quot;type&quot;: &quot;Microsoft.Web/serverfarms&quot;,
    &quot;kind&quot;: &quot;functionapp&quot;,
    &quot;location&quot;: &quot;East US&quot;,
  </code></pre>
  <p>But if I try (the important part being &quot;-Tier Dynamic&quot;)</p>
  <pre><code>$plan = New-AzureRmAppServicePlan -Name 'MyPowershellCreatedAppServicePlan' -ResourceGroupName 'MyResourceGroup' -Location 'PickALocation' -Tier Dynamic
  </code></pre>
  <p>I get the exception:</p>
  <blockquote>
  <p>Exception -  + Cannot validate argument on parameter 'Tier'. The
  argument &quot;Dynamic&quot; does not belong to the set
  &quot;Free,Shared,Basic,Standard,Premium,PremiumV2&quot; specified by the
  ValidateSet attribute. Supply an argument that is in the set and then
  try the command again.</p>
  </blockquote>