Skip to content

Commit

Permalink
auth: using the correct authorizer for the service principals client
Browse files Browse the repository at this point in the history
fixes a bug introduced in #5748
  • Loading branch information
tombuildsstuff committed Feb 19, 2020
1 parent 93234e9 commit ff7977b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/internal/services/authorization/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ func NewClient(o *common.ClientOptions) *Client {
roleDefinitionsClient := authorization.NewRoleDefinitionsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&roleDefinitionsClient.Client, o.ResourceManagerAuthorizer)

servicePrincipalsClient := graphrbac.NewServicePrincipalsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&servicePrincipalsClient.Client, o.ResourceManagerAuthorizer)
servicePrincipalsClient := graphrbac.NewServicePrincipalsClientWithBaseURI(o.GraphEndpoint, o.SubscriptionId)
o.ConfigureClient(&servicePrincipalsClient.Client, o.GraphAuthorizer)

return &Client{
RoleAssignmentsClient: &roleAssignmentsClient,
Expand Down

0 comments on commit ff7977b

Please sign in to comment.