Get-AzureRmWebApp: missing property 'Identity'
Cmdlet(s)
Get-AzureRmWebApp, may be more
PowerShell Version
5.1.15063.674
Module Version
AzureRM.Websites 3.4.1
OS Version
Win10
Description
Since Managed Service Identities were introduced, REST Api outputs the property "identity" for WebApps with MSI enabled. This Property is not yet present in the output of the PowerShell cmdlet.
Actual
PS> $app = Get-AzureRmWebApp -ResourceGroupName ... -Name ...
PS> $app.Identity
PS>
Expected
PS> $app = Get-AzureRmWebApp -ResourceGroupName ... -Name ...
PS> $app.Identity
TenantId : ...
PrincipalId : ...
PS>
@ahmedelnably Hey Ahmed, would you mind taking a look at this issue? It looks like the Websites SDK might need to be updated for your PowerShell cmdlets.
Any updates on this issue? Is there any workaround?
Workaround $faSpn = Get-AzureRmADServicePrincipal -SearchString "[FunctionName]" $faSpn.Id
Thats my current workaround as well ;)
This is fixed on our website-preview module you can follow instruction here to install https://github.com/Azure/azure-powershell/releases/tag/v5.0.0-preview-AzureRM.Websites