Skip to content

Commit

Permalink
log into az during azure setup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Oct 21, 2022
1 parent 6600f38 commit b838940
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func setupAzure(setup *SetupRequest) error {
return fmt.Errorf("error writing azure env file: %w", err)
}

if err := execCmd("az", "login", "--service-principal", "-u", az.ClientId, "-p", az.ClientSecret, "--tenant", az.TenantId); err != nil {
return fmt.Errorf("error logging into az cli: %w", err)
}

return nil
}

Expand Down

0 comments on commit b838940

Please sign in to comment.