Get-WebApp and the Azure REST API return a siteConfig object with null properties and is missing data
There seems to be a weird bug in the Azure AZ PowerShell API and the underlying REST API whereby when you list the App Services, also known as Web Apps, also known as Sites you find that the SiteConfig property contains null values and is generally missing information.
A similar issue is found when using the Azure REST API
/subscriptions/subscription identifier/resourceGroups/resource group name/providers/Microsoft.Web/sites/web site name
The return value's properties.siteConfig is also missing information.
Using Fiddler to see how Get-WebApp is working - when you call with the -ResourceGroupName and -Name parameters the cmdlet is making multiple REST API calls and combining the information together.
/subscriptions/subscription identifier/resourceGroups/resource group name/providers/Microsoft.Web/sites/web site name/config/web
Comments
Post a Comment