Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

webapp:Get-AzResource lookup on Azure App Service does not return accurate NetFrameworkVersion #10342

Open jrgithub opened 5 years ago

jrgithub commented 5 years ago

When assigning a variable to this:

$enumAppService = Get-AzResource -ResourceGroupName $resName -ResourceType Microsoft.Web/sites/config -ResourceName $website.Name -ApiVersion 2018-02-01

And then writing to screen like this: Write-host $enumAppService.Properties.NetFrameworkVersion

The output is always v4.0 (this may align to what is seen via resource.azure.com). However, this is inaccurate as a view of the resource on Azure Portal reflects the right version (e.g. v4.5). Also, when using the more recent "-ApiVersion 2019-04-01" as part of the variable the issue is not resolved.

Please advise and correct this as appropriate.


Get-Module

ModuleType Version Name ExportedCommands


Script 1.6.0 Az.Accounts {Add-AzEnvironment, Clear-AzContext, Clear-AzDefault, Connect-AzAccount...}
Script 1.6.0 Az.Resources {Add-AzADGroupMember, Export-AzResourceGroup, Get-AzADAppCredential, Get-AzADApplication...}
Script 1.3.0 Az.Websites {Edit-AzWebAppBackupConfiguration, Enter-AzWebAppContainerPSSession, Get-AzAppServicePlan, Get-AzAppServicePlanMetric...}
Script 1.0.0.0 ISE {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
Manifest 3.0.0.0 Microsoft.PowerShell.Security {ConvertFrom-SecureString, ConvertTo-SecureString, Get-Acl, Get-AuthenticodeSignature...}
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Manifest 3.0.0.0 Microsoft.WSMan.Management {Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan, Enable-WSManCredSSP...}

ghost commented 5 years ago

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

ThejaChoudary commented 4 years ago

Taking a look at this.

panchagnula commented 4 years ago

the command shows whatever the API returns the change needs to be on the API level

isra-fel commented 4 years ago

This issue is about Azure PowerShell rather than .net SDK. Transfering it into the powershell repo.

ghost commented 4 years ago

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

panchagnula commented 4 years ago

@btardif do you know if we are planning on fixing this property return value with upcoming changes?

btardif commented 4 years ago

@panchagnula There are plans to store the configured dot-net version for windows. today this is not being stored by backend since platform can auto-detect at runtime. There is no timeline for this change.

akning-ms commented 4 years ago

@panchagnula , Can we know what change need in swagger? if no and it is only need change in service side. suggest to move this issue back to Azure/azure-powershell , if yes. can you specify something more detail? Thanks