az cli like golang Just some example stuff in golang that az cli does. This example will open a browser and auth in a similar way as Azure CLI. To Run go run . Notes multi-tenant apps auth code flow token v1 scopes