Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.62k stars 5.04k forks source link

Web: GET a WebApp returns no `SiteConfig` properties #12104

Open mikhailshilkov opened 3 years ago

mikhailshilkov commented 3 years ago

When calling a GET on WebApp, the response definition suggests that SiteConfig properties will be available in the response. The names of those properties are there but all the values are blank. Here is what I logged:

siteConfig:{acrUseManagedIdentityCreds:false acrUserManagedIdentityID:<nil> alwaysOn:<nil> apiDefinition:<nil> 
apiManagementConfig:<nil> appCommandLine:<nil> appSettings:<nil> autoHealEnabled:<nil> autoHealRules:<nil> 
autoSwapSlotName:<nil> azureMonitorLogCategories:<nil> azureStorageAccounts:<nil> connectionStrings:<nil> 
cors:<nil> customAppPoolIdentityAdminState:<nil> customAppPoolIdentityTenantState:<nil> defaultDocuments:<nil> 
detailedErrorLoggingEnabled:<nil> documentRoot:<nil> experiments:<nil> fileChangeAuditEnabled:<nil> ftpsState:<nil> 
functionAppScaleLimit:<nil> functionsRuntimeScaleMonitoringEnabled:<nil> handlerMappings:<nil> healthCheckPath:<nil> 
http20Enabled:<nil> httpLoggingEnabled:<nil> ipSecurityRestrictions:<nil> javaContainer:<nil> javaContainerVersion:<nil> 
javaVersion:<nil> limits:<nil> linuxFxVersion:<nil> loadBalancing:<nil> localMySqlEnabled:<nil> logsDirectorySizeLimit:<nil>
 machineKey:<nil> managedPipelineMode:<nil> managedServiceIdentityId:<nil> metadata:<nil> minTlsVersion:<nil> 
minimumElasticInstanceCount:0 netFrameworkVersion:<nil> nodeVersion:<nil> numberOfWorkers:<nil> phpVersion:<nil> 
powerShellVersion:<nil> preWarmedInstanceCount:<nil> publishingPassword:<nil> publishingUsername:<nil> push:<nil> 
pythonVersion:<nil> remoteDebuggingEnabled:<nil> remoteDebuggingVersion:<nil> requestTracingEnabled:<nil> 
routingRules:<nil> runtimeADUser:<nil> runtimeADUserPassword:<nil> scmIpSecurityRestrictions:<nil> 
scmIpSecurityRestrictionsUseMain:<nil> scmMinTlsVersion:<nil> scmType:<nil> tracingOptions:<nil> 
use32BitWorkerProcess:<nil> virtualApplications:<nil> vnetName:<nil> vnetPrivatePortsCount:<nil> 
vnetRouteAllEnabled:<nil> webSocketsEnabled:<nil> websiteTimeZone:<nil> winAuthAdminState:<nil> 
winAuthTenantState:<nil> windowsFxVersion:<nil> xManagedServiceIdentityId:<nil>}

Why is everything nil? How can I make the values appear, if possible?

WillooWisp commented 3 years ago

I experience the same problem, any fixes for this?

zhenglaizhang commented 3 years ago

Hi @WillooWisp @mikhailshilkov can you help provide more logs of the request? which SDK triggers the failure? So that I can route to the right team for help investigate the issue.

ArcturusZhang commented 3 years ago

Hi @mikhailshilkov I noticed that you are using go, to clarify whether this issue comes from the REST API itself or go SDK (if you are using this), could you please also provide some log of the rest api request and response (the body should be sufficient)?

mikhailshilkov commented 3 years ago

I'm not using the Azure Go SDK, just Go as the programming language to make raw HTTP requests to the service. So, it's definitely the problem of the REST API itself.

ghost commented 3 years ago

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

Issue Details
When calling a [GET on WebApp](https://github.com/Azure/azure-rest-api-specs/blob/dbb0a6fd623196f0db6b461b0f3f54e284e3a9e4/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/WebApps.json#L98), the response definition suggests that `SiteConfig` properties will be available in the response. The _names_ of those properties are there but all the values are blank. Here is what I logged: ``` siteConfig:{acrUseManagedIdentityCreds:false acrUserManagedIdentityID: alwaysOn: apiDefinition: apiManagementConfig: appCommandLine: appSettings: autoHealEnabled: autoHealRules: autoSwapSlotName: azureMonitorLogCategories: azureStorageAccounts: connectionStrings: cors: customAppPoolIdentityAdminState: customAppPoolIdentityTenantState: defaultDocuments: detailedErrorLoggingEnabled: documentRoot: experiments: fileChangeAuditEnabled: ftpsState: functionAppScaleLimit: functionsRuntimeScaleMonitoringEnabled: handlerMappings: healthCheckPath: http20Enabled: httpLoggingEnabled: ipSecurityRestrictions: javaContainer: javaContainerVersion: javaVersion: limits: linuxFxVersion: loadBalancing: localMySqlEnabled: logsDirectorySizeLimit: machineKey: managedPipelineMode: managedServiceIdentityId: metadata: minTlsVersion: minimumElasticInstanceCount:0 netFrameworkVersion: nodeVersion: numberOfWorkers: phpVersion: powerShellVersion: preWarmedInstanceCount: publishingPassword: publishingUsername: push: pythonVersion: remoteDebuggingEnabled: remoteDebuggingVersion: requestTracingEnabled: routingRules: runtimeADUser: runtimeADUserPassword: scmIpSecurityRestrictions: scmIpSecurityRestrictionsUseMain: scmMinTlsVersion: scmType: tracingOptions: use32BitWorkerProcess: virtualApplications: vnetName: vnetPrivatePortsCount: vnetRouteAllEnabled: webSocketsEnabled: websiteTimeZone: winAuthAdminState: winAuthTenantState: windowsFxVersion: xManagedServiceIdentityId:} ``` Why is everything `nil`? How can I make the values appear, if possible?
Author: mikhailshilkov
Assignees: zhenglaizhang
Labels: `Service Attention`, `Web Apps`, `needs-triage`, `question`
Milestone: -
WillooWisp commented 3 years ago

Any progress with this issue? When can we expect the API to be fixed?

zhenglaizhang commented 3 years ago

ping @AzureAppServiceCLI, @antcp

WillooWisp commented 3 years ago

Still no progress in fixing this very invonvenient issue?

Ping @AzureAppServiceCLI, @antcp

WillooWisp commented 3 years ago

Ping @zhenglaizhang ?!

WillooWisp commented 3 years ago

Three months and no action or response whatsoever...

zhenglaizhang commented 3 years ago

Hi @WillooWisp sorry for the delay, I will ping web app team to check the update status today.

zhenglaizhang commented 3 years ago

Hi @calvinsID any feedback about this or could you help direct the issue to correct owner?

prakdevash commented 2 years ago

Hello! Any update on this issue ? This is quite inconvenient and is still seems to be happening Thanks!

DavidHomerOxford commented 2 years ago

This seems to be an issue with the Get-WebApp cmdlet too.

You can get the siteConfig object using the REST API by making a call here /subscriptions/subscription identifier/resourceGroups/resource group name/providers/Microsoft.Web/sites/web site name/config/web

Full information here if that helps https://david-homer.blogspot.com/2022/03/get-webapp-and-azure-rest-api-return.html

drdamour commented 1 year ago

i'm seeing this too when leveraging resource explorer. it sucked because azure support sent me to this location to get a siteconfig property...but it was null. however site/config/web showed the actual value. VERY confusing.