-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
ARMMore Info 🏷️customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
#12026 Description
When using Get-AzResource to get the staging slot of a Function App a resource is returned which has a wrong PrincipalId (in .Identity.PrincipalId). The returned PrincipalId is the principalId of the Function App itself and not the Function App.
For web apps with staging slots the proper principalIds are returned.
When using Get-AzWebApp and Get-AzWebAppSlot also the proper principalIds are returned.
Steps to reproduce
Create a Function App with a staging slot and system identities.
$rg = "resoucegroupname"
$functionApp = "functionappname"
$functionAppStagingSlot = "functionappstagingslotname"
foreach($r in (Get-AzResource -ResourceGroupName $rg -ResourceType "Microsoft.Web/sites")) {
Write-Host $r.ResourceName $r.Identity.PrincipalId
}
foreach($r in (Get-AzResource -ResourceGroupName $rg -ResourceType "Microsoft.Web/sites/slots")) {
Write-Host $r.ResourceName $r.Identity.PrincipalId
}Environment data
Windows 10 / Powershell 5.1
Module versions
Az.Resources, version 2.1.0
Metadata
Metadata
Assignees
Labels
ARMMore Info 🏷️customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that