Skip to content

Commit 085adfc

Browse files
UndermyspellDenisBiondic
authored andcommitted
feat(login): adds managed identity logins to Login function documentation
1 parent 49c4522 commit 085adfc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/recipes/azure_login/login.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ type Login struct {
2222
executor commands.Executor
2323
}
2424

25-
// Login logs the currently configured user in AzureCLI and Terraform. If configured with service principal, it will
26-
// attempt a non-interactive login, otherwise a normal user login will be started.
25+
// Login logs the currently configured user in AzureCLI and Terraform
26+
//
27+
// Attempts the login in the following order if configured:
28+
// - user assigned managed identity
29+
// - system assigned managed identity
30+
// - service principal
31+
// - normal user login
2732
func (l *Login) Login() error {
2833
if l.useUserAssignedManagedIdentityLogin() {
2934
if l.tenant == "" {

0 commit comments

Comments
 (0)