Azure / Azure/azure-cli

Az (2.30.0) login using an SPN account - azurestack

Open
#20,387 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az login`

**Errors:**
```
MSIS9605: The client is not allowed to access the requested resource.

```

## 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 login --service-principal --username {} --password {} --tenant {}`

## Expected Behavior
To be able to use a service account (SPN) for enumerating resources within azurestack. We don't use any certificates, only SPN's values are passed along the command line.

Before upgrading to 2.30.0, we were using 2.29.x and the same command line worked. As of now, we had rolled back to AZ version 2.29.0 and it does the job..

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.30.0

Extensions:
vm-repair 0.3.8

```
## Additional Context

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.