title: How do I retrieve the workerSize via Get-AzureRmAppServicePlan
body: <p>When creating a new AppServicePlan via the Azure PowerShell cmdlet <code>New-AzureRmAppServicePlan</code>, it is expected for me to add a <code>WorkerSize</code> such as Small, Medium or Large. For example:</p>
  
  <pre><code>$appServicePlanSettings = @{
      Name = "testingServicePlan";
      Location = "westeurope";
      Tier = "Basic";        
      ResourceGroupName = "testingResourceGroup";
      NumberofWorkers = 1;
      WorkerSize = "Medium";
  }
  
  New-AzureRmAppServicePlan @appServicePlanSettings
  </code></pre>
  
  <p>However, when I retrieve this same AppServicePlan via <code>Get-AzureRmAppServicePlan</code>, I am unable to find this information. Instead I come across the <code>Sku</code> property, which contains a <code>Size</code> property with for example the value B2, indicating the WorkerSize was medium. Example:</p>
  
  <pre><code>&gt; $plan = Get-AzureRmAppServicePlan -Name "testingServicePlan" -ResourceGroupName "testingResourceGroup"
  &gt; $plan.Sku
  Name     : B2
  Tier     : Basic
  Size     : B2
  Family   : B
  Capacity : 1
  </code></pre>
  
  <p>Am I supposed to keep track of these conversions in for example a HashList if I want to be able to compare the equivalent values, or is there some other way for me to retrieve the 'Medium'? I might have missed something but couldn't find this information. </p>
  
  <p>According to PowerShell's <code>GetType()</code> method, the object returned is a <code>ServerFarmWithRichSku</code>, with as base type <code>Microsoft.Azure.Management.WebSites.Models.Resource</code>, but the documentation for this object was a bit lacking for me to get any further</p>
  
  <p><a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.websites.models.resource?view=azuremgmtwebsites-1.6.0-preview" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.websites.models.resource?view=azuremgmtwebsites-1.6.0-preview</a></p>