Skip to content

Instantly share code, notes, and snippets.

@dazfuller
Created December 19, 2016 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dazfuller/ccbe8f7c6ba77a8e51c3ca4f4e5e5b75 to your computer and use it in GitHub Desktop.
Save dazfuller/ccbe8f7c6ba77a8e51c3ca4f4e5e5b75 to your computer and use it in GitHub Desktop.
Retrieves and outputs the details of the Azure Application Service plans under the current subscription
$AppServicePlans = Get-AzureRmAppServicePlan
$AppServicePlans | Sort-Object ResourceGroup, Name | Select-Object -Property `
ResourceGroup,
Name,
Location,
@{ name = "SkuName"; expression = { $_.Sku.Name } },
@{ name = "SkuSize"; expression = { $_.Sku.Size } },
@{ name = "SkuTier"; expression = { $_.Sku.Tier } },
NumberOfSites,
PerSiteScaling,
Status | `
ConvertTo-Csv -NoTypeInformation |
Out-File -FilePath C:\AzureAppServices.csv -Encoding utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment