ArmTokenAuthentication Class
Used internally to acquire ARM access tokens using service principle or managed service identity authentication.
For automated workflows where managed access control is needed, use the ServicePrincipalAuthentication instead.
Class ArmTokenAuthentification constructor.
- Inheritance
-
ArmTokenAuthentication
Constructor
ArmTokenAuthentication(arm_access_token, cloud='None')
Parameters
Name | Description |
---|---|
arm_access_token
Required
|
An ARM access token. |
cloud
|
The name of the target cloud. Can be one of "AzureCloud", "AzureChinaCloud", or "AzureUSGovernment". If no cloud is specified, any configured default from the Azure CLI is used. If no default is found, "AzureCloud" is used. Default value: None
|
arm_access_token
Required
|
An ARM access token. |
cloud
Required
|
The name of the target cloud. Can be one of "AzureCloud", "AzureChinaCloud", or "AzureUSGovernment". If no cloud is specified, any configured default from the Azure CLI is used. If no default is found, "AzureCloud" is used. |
Methods
update_arm_access_token |
Update ARM access token. |
update_arm_access_token
Update ARM access token.
update_arm_access_token(new_arm_access_token)
Parameters
Name | Description |
---|---|
new_arm_access_token
Required
|
An ARM access token. |