Documentation ¶
Index ¶
- Constants
- func HasAuthorizationFailedError(err error) bool
- func HasLinkedAuthorizationFailedError(err error) bool
- func IsDeploymentActiveError(err error) bool
- func IsDeploymentMissingPermissionsError(err error) bool
- func IsInvalidSecretError(err error) bool
- func IsNotFoundError(err error) bool
- func IsUnauthorizedClientError(err error) bool
- func ResourceGroupNotFound(err error) bool
Constants ¶
const (
CodeInvalidTemplateDeployment = "InvalidTemplateDeployment"
)
Variables ¶
This section is empty.
Functions ¶
func HasAuthorizationFailedError ¶
HasAuthorizationFailedError returns true it the error is, or contains, an AuthorizationFailed error
func HasLinkedAuthorizationFailedError ¶
HasLinkedAuthorizationFailedError returns true it the error is, or contains, a LinkedAuthorizationFailed error
func IsDeploymentActiveError ¶
IsDeploymentActiveError returns true it the error is a DeploymentActive error
func IsDeploymentMissingPermissionsError ¶
IsDeploymentMissingPermissionsError returns true if the error indicates that ARM rejected a template deployment pre-flight due to missing role assignments. This can be an indicator of role assignment propagation delay.
func IsInvalidSecretError ¶
IsInvalidSecretError returns if errors is InvalidCredentials error Example: (adal.tokenRefreshError) adal: Refresh request failed. Status Code = '401'. Response body: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.
func IsNotFoundError ¶
func IsUnauthorizedClientError ¶
IsUnauthorizedClientError return if errors is UnauthorizedClient Example: {"error": "unauthorized_client", "error_description": "AADSTS700016: Application with identifier 'xxx' was not found in the directory 'xxx'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant. ...", "error_codes": [700016]}`. This can be an indicator of AAD propagation delay.
func ResourceGroupNotFound ¶
ResourceGroupNotFound returns true if the error is an ResourceGroupNotFound error
Types ¶
This section is empty.