Skip to content

Commit

Permalink
fixup! armhelper: Use MS Graph to obtain service principal ID
Browse files Browse the repository at this point in the history
Clarify error message.
  • Loading branch information
mbarnes committed Jun 8, 2023
1 parent 8e15d1e commit 4a2f6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/env/armhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (ah *armHelper) EnsureARMResourceGroupRoleAssignment(ctx context.Context, r
return err
}
if principalID == nil {
return fmt.Errorf("appId '%s' not found", ah.env.FPClientID())
return fmt.Errorf("no service principal found for application ID '%s'", ah.env.FPClientID())
}

_, err = ah.roleassignments.Create(ctx, "/subscriptions/"+ah.env.SubscriptionID()+"/resourceGroups/"+resourceGroup, uuid.DefaultGenerator.Generate(), mgmtauthorization.RoleAssignmentCreateParameters{
Expand Down

0 comments on commit 4a2f6e9

Please sign in to comment.