Azure / Azure/azure-powershell

[Feature]: Changing the behavior of Get-AzAppServiceEnvironment

Open
#24,148 4 comments 0 reactions 0 assignees View on GitHub
act-observability-squad App Services customer-reported feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### 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](https://learn.microsoft.com/en-us/answers/questions/1191218/export-web-app-list).
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 | Export-Csv -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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.