azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzureRmWebApp: missing property 'Identity'

Open jwefers opened this issue 9 years ago • 5 comments

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>

jwefers avatar Oct 18 '17 15:10 jwefers

@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.

cormacpayne avatar Oct 19 '17 16:10 cormacpayne

Any updates on this issue? Is there any workaround?

nishanperera avatar Nov 15 '17 14:11 nishanperera

Workaround $faSpn = Get-AzureRmADServicePrincipal -SearchString "[FunctionName]" $faSpn.Id

nishanperera avatar Nov 15 '17 14:11 nishanperera

Thats my current workaround as well ;)

jwefers avatar Nov 15 '17 14:11 jwefers

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

panchagnula avatar Mar 10 '18 00:03 panchagnula