Azure / Azure/azure-powershell

webapp:Set-AzWebApp / Set-AzWebAppSlot support Managed User Identity

Open
#12,924 5 comments 3 reactions 0 assignees View on GitHub
act-observability-squad App Services customer-reported feature-request Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

## Description of the new feature
Currently the setting of the Identity for an App/Slot only allows a System Assigned identity
https://github.com/Azure/azure-powershell/blob/51bb40ad4aae1a150556829f67bf405dea50534c/src/Websites/Websites/Cmdlets/WebApps/SetAzureWebApp.cs#L276

It would be ideal if there was a way to assign a User Managed Identity

## Proposed implementation details (optional)
Maybe in the same parameter set at

https://github.com/Azure/azure-powershell/blob/51bb40ad4aae1a150556829f67bf405dea50534c/src/Websites/Websites/Cmdlets/WebApps/SetAzureWebApp.cs#L123-L124

```
[Parameter(ParameterSetName = ParameterSet1Name, Mandatory = false, HelpMessage = ", separated list of Managed User Identities")]
public string[] UserManagedIdentities { get; set; }
```

if UserManagedIdentities is empty or null, then assign a system managed identity.
(or provide an additional property IdentityType (system,user)

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.