Azure / Azure/azure-powershell

Az.Functions Update FunctionApp that has system and user-assigned managed identity

Open
#15,484 10 comments 0 reactions 1 assignee Claimed by @Francisco-Gamino View on GitHub
act-observability-squad customer-reported Functions Investigate :mag: needs-team-attention question Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

## Description
If a Function App has both, a `SystemAssigned` and `UserAssigned` identity, `Update-FunctionApp` will fail, regardless of what's being updated.

## Steps to reproduce

Azure Portal let's you configure both managed identity types at the same time. The configuration is shown in the resource JSON as

```JSON
"identity": {
"type": "SystemAssigned, UserAssigned",
[...]
}
```

Once you have this configuration, run the following.

```powershell
Update-AzFunctionApp -ResourceGroupName -Name -Tag @{'test'='test'}
```

## Environment data

```

```

## Module versions

```powershell
get-module -name Az.Functions,Az.Accounts | fl name, version

Name : Az.Accounts
Version : 2.5.1

Name : Az.Functions
Version : 3.1.0
```

## Error output

```
Message : Unknown IdentityType 'SystemAssigned, UserAssigned'
StackTrace :
Exception : System.InvalidOperationException
InvocationInfo : {}
Line : throw $errorRecord

Position : At C:\Users\...\Documents\PowerShell\Modules\Az.Functions\3.1.0\custom\HelperFunctions.ps1:807 char:5
+ throw $errorRecord
+ ~~~~~~~~~~~~~~~~~~
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.