private void GetByAppServicePlan()
        {
            WriteObject(WebsitesClient.ListWebAppsForAppServicePlan(AppServicePlan.ResourceGroup,
#if !NETSTANDARD
                                                                    AppServicePlan.ServerFarmWithRichSkuName
#else
                                                                    AppServicePlan.Name
#endif
                                                                    ).ToList());
        }
        private void GetByAppServicePlan()
        {
            var sites  = new List <PSSite>();
            var output = WebsitesClient.ListWebAppsForAppServicePlan(AppServicePlan.ResourceGroup, AppServicePlan.Name);

            foreach (var site in output)
            {
                sites.Add(new PSSite(site));
            }

            WriteObject(sites, true);
        }
 private void GetByAppServicePlan()
 {
     WriteObject(WebsitesClient.ListWebAppsForAppServicePlan(AppServicePlan.ResourceGroup,
                                                             AppServicePlan.Name).ToList(), true);
 }
 private void GetByAppServicePlan()
 {
     WriteObject(WebsitesClient.ListWebAppsForAppServicePlan(AppServicePlan.ResourceGroup,
                                                             AppServicePlan.ServerFarmWithRichSkuName).ToList());
 }