module Armrest::Api::Auth

az account get-access-token : Get a token for utilities to access Azure.

The token will be valid for at least 5 minutes with the maximum at 60 minutes. If the
subscription argument isn't specified, the current account is used.

Arguments

--resource         : Azure resource endpoints. Default to Azure Resource Manager.
--resource-type    : Type of well-known resource.  Allowed values: aad-graph, arm, batch, data-
                    lake, media, ms-graph, oss-rdbms.
--subscription -s  : Name or ID of subscription.
--tenant -t        : Tenant ID for which the token is acquired. Only available for user and
                    service principal account, not for MSI or Cloud Shell account.

GET ‘169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/’ HTTP/1.1 Metadata: true