Azure / Azure/azure-cli

Reuse Powershell azure login RefreshToken for AZ CLI login.

Open
#25,893 4 comments 3 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Azure CLI Team feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Hi Team,

If we have azure login refresh token in powershell, can we use it for AZ CLI based login as well ?

Before start of multiple deployment steps, user logs into azure using device-login, we create a RefreshToken and save it for later use. During the deployment(takes around 3+hrs), AccessToken is fetched and used. All of this is happening in PowerShell. Want to add few new steps, which are only available in AZ CLI, instead of requiring user to relogin again, is there a way to reuse the powershell AccessToken/RefreshToken to do AZ CLI Login ?

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.