When signed in az login --service-principal Rover fails, this is due to the az ad signed-in-user show command failing.
Reasons
Service principals are a common way to authenticate when running as part of CI/CD
Notes / Considerations
This is very similar to the MSI support that was added
Outcomes
Additional guards in prepareTerraformCAF() to check the account show output and the user field returned, the type will be set to "servicePrincipal" and the "name" will hold the clientID
Use the clientID to get the objectID, try to use Azure SDK to do this, place this in the Identity struct which is held in the Options struct
When signed in
az login --service-principal
Rover fails, this is due to theaz ad signed-in-user show
command failing.Reasons
Notes / Considerations
Outcomes
account show
output and the user field returned, the type will be set to "servicePrincipal" and the "name" will hold the clientIDIdentity
struct which is held in theOptions
struct