azureerrors

package
v0.0.0-...-1737087 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CodeInvalidTemplateDeployment = "InvalidTemplateDeployment"
)

Variables

This section is empty.

Functions

func HasAuthorizationFailedError

func HasAuthorizationFailedError(err error) bool

HasAuthorizationFailedError returns true it the error is, or contains, an AuthorizationFailed error

func HasLinkedAuthorizationFailedError

func HasLinkedAuthorizationFailedError(err error) bool

HasLinkedAuthorizationFailedError returns true it the error is, or contains, a LinkedAuthorizationFailed error

func IsDeploymentActiveError

func IsDeploymentActiveError(err error) bool

IsDeploymentActiveError returns true it the error is a DeploymentActive error

func IsDeploymentMissingPermissionsError

func IsDeploymentMissingPermissionsError(err error) bool

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

func IsInvalidSecretError(err error) bool

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 IsNotFoundError(err error) bool

func IsUnauthorizedClientError

func IsUnauthorizedClientError(err error) bool

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

func ResourceGroupNotFound(err error) bool

ResourceGroupNotFound returns true if the error is an ResourceGroupNotFound error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL