I made the change, re-ran "go install github.com/juju/juju/cmd/juju" and still experienced the same issue: Logs at: http://lastcoolnameleft.com/mini/azure.log (for real this time. Sorry about that earlier mishap) ➜ juju git:(develop) ✗ git diff diff --git a/provider/azure/internal/azureauth/interactive.go b/provider/azure/internal/azureauth/interactive.go index ea9dae428c..39e8bd9d05 100644 --- a/provider/azure/internal/azureauth/interactive.go +++ b/provider/azure/internal/azureauth/interactive.go @@ -242,7 +242,7 @@ func createOrUpdateServicePrincipal( }, Clock: clock, Delay: 5 * time.Second, - MaxDuration: time.Minute, + MaxDuration: 5 * time.Minute, } if err := retry.Call(retryArgs); err != nil { if !isMultipleObjectsWithSameKeyValueErr(err) { ➜ juju git:(develop) ✗ juju add-credential --logging-config '=TRACE' --log-file=/tmp/azure.log azure Enter credential name: test A credential with that name already exists. Replace the existing credential? (y/N): y Auth Types interactive service-principal-secret Select auth type [interactive]: Enter subscription-id: Initiating interactive authentication. To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code BEFZ8TGE6 to authenticate. Authenticated as "Tommy Falgout". Creating/updating service principal. ERROR finalizing credential: creating service principal: max duration exceeded: ad.ServicePrincipalsClient#Create: Failure responding to request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="Request_ResourceNotFound" Message="Resource 'ServicePrincipal_4588da91-7a39-4832-8f01-bf8c8fb26bc8' does not exist or one of its queried reference-property objects are not present." On Sun, May 7, 2017 at 11:11 PM Andrew Wilkins