Connection with Azure service principal

juancanocondes
New Contributor III

I have configured a data bricks connection with Azure using a service principal who is configured in both Azure system and data bricks.  I am getting an issue calling this API since early June. 

https://$URI$/api/2.0/secrets/scopes/list 
Headers = @{
        "Authorization" = "Bearer $Token"
      }

I am getting the token properly and sending to the correct URL, workspace is retrieving value. The API call is sending back a 403 error: ##[error]The remote server returned an error: (403) Forbidden.

No configurations made or modifications in code to make the connection. The client id and secret seems valid. 

I have tried to extend the permissions in the service principal and didn't work. I have been able to create a token using my local machine and send the API call successfully. 

Is there any extra configurations I should apply in the service principal? 

 

 

juancanocondes
New Contributor III

For anyone interested, this particular case was due migrating Azure Powershell to a new version. This is the link to follow just in case 

https://learn.microsoft.com/en-us/powershell/azure/migrate-az-14.0.0?view=azps-14.1.0

View solution in original post