Skip to content

[Doc]: Get-AzWebApp needs to make -ResourceGroupName a required parameter for optimal results #17184

@Xingyixzhang

Description

@Xingyixzhang

Description

Document Link

https://docs.microsoft.com/en-us/powershell/module/az.websites/get-azwebapp?view=azps-7.2.0&viewFallbackFrom=azps-7.2

Issue

The command below with and without the -ResourceGroupName parameter returns different results, yet the document does not specify that the -ResourceGroupName should be a required field.

$apps = Get-azWebApp (-ResourceGroupName)

foreach($a in $apps){
    $a.name
    $a.siteconfig.FtpsState
}

Demonstration on Expected Results (with the parameter, the FtpsState value showed up correctly)

image

Demonstration on Actual Results (without the parameter, the FtpsState value showed up null)

image

Additional findings

Many other values are missing when the -ResourceGroupName parameter is not set. Feel free to check full detailed SiteConfig comparisons running the following commands:

Get-azWebApp | ConvertTo-Json
Get-azWebApp -ResourceGroupName "YourRGName" | ConvertTo-Json

Recommendation

Make the -ResourceGroupName a required parameter so that customers can achieve the desired results.

Metadata

Metadata

Labels

App Servicesaka WebSitesCXP Attention[Deprecated] The Azure CXP Support Team is responsible for this issue.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedneeds-author-feedbackMore information is needed from author to address the issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions