Azure / Azure/azure-cli

az functionapp identity assign does not honor role param

Open
#11,994 1 comment 0 reactions 0 assignees View on GitHub
act-observability-squad Functions Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Describe the bug

**Command Name**
`az functionapp identity assign `

**Errors:**

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
`az functionapp identity assign -g jongrg4 -n jongfuncblob2 --role b7e6dc6d-f1e8-4753-8033-0f276bb0955b`

## Expected Behavior

I expect that role to be assigned, but it is not.

Before run:
![image](https://user-images.githubusercontent.com/2163001/73491166-d7869980-4362-11ea-8253-51c237df39b6.png)

After run:
![image](https://user-images.githubusercontent.com/2163001/73491217-f4bb6800-4362-11ea-905c-bc0c4238c4c8.png)

Click on "Show the Azure RBAC..." link

No role assignments:
![image](https://user-images.githubusercontent.com/2163001/73491241-03a21a80-4363-11ea-98b4-94c39720caf3.png)

> It works if I also include a scope, but I think they should be mutually exclusive.

## Environment Summary
```
Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.76 *

```
## Additional Context

azsdke2e

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.