Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.2k stars 3.81k forks source link

[Feature]: Changing the behavior of Get-AzAppServiceEnvironment #24148

Open gtedavid opened 6 months ago

gtedavid commented 6 months ago

Description of the new feature

When I use Get-AzWebApp, I don't have to necessarily put parameters like resource group and name of the web app example of command. This also works for GetAzAppServicePlan

Whereas, for Get-AzAppServiceEnvironment, always asks for the resource group and the name of the resource.

For now the only equivalent I've found is using Get-AzResource -ResourceType Microsoft.Web/hostingEnvironments But when you put it to csv: Get-AzResource -ResourceType Microsoft.Web/hostingEnvironments| Select-Object <properties> | Export-Csv <path> -NoTypeInformation the output isn't formatted correctly to csv, especially if there are tags on the resources, unless you caracteries each tag I suppose.

Would it be possible to implement the beahvior of GetAzAppServicePlan and Get-AzWebApp on Get-AzAppServiceEnvironment please?

Proposed implementation details (optional)

No response

isra-fel commented 6 months ago

Thanks for the feedback. According to the API spec, it is possible to list ASE on a resource group or subscription level, so it make sense for -ResourceGroupName and -Name to be optional rather than required. I'll loop in App Service team.

microsoft-github-policy-service[bot] commented 6 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.

gtedavid commented 6 months ago

Hello @isra-fel

Do you have any news from the App Service Team ?

Kind regards