Documentation ¶
Index ¶
- Constants
- func IsNicReservedForAnotherVM(err error) bool
- func IsNotFoundErr(err error) bool
- func IsResponseError(err error) *azcore.ResponseError
- func IsSKUNotAvailable(err error) bool
- func LowPriorityQuotaHasBeenReached(err error) bool
- func RegionalQuotaHasBeenReached(err error) bool
- func SKUFamilyQuotaHasBeenReached(err error) bool
- func SubscriptionQuotaHasBeenReached(err error) bool
- func ZonalAllocationFailureOccurred(err error) bool
Constants ¶
const ( // Error codes ResourceNotFound = "ResourceNotFound" OperationNotAllowed = "OperationNotAllowed" ZoneAllocationFailed = "ZonalAllocationFailed" NicReservedForAnotherVM = "NicReservedForAnotherVm" SKUNotAvailableErrorCode = "SkuNotAvailable" // Error search terms LowPriorityQuotaExceededTerm = "LowPriorityCores" SKUFamilyQuotaExceededTerm = "Family Cores quota" SubscriptionQuotaExceededTerm = "Submit a request for Quota increase" RegionalQuotaExceededTerm = "exceeding approved Total Regional Cores quota" )
Variables ¶
This section is empty.
Functions ¶
func IsNicReservedForAnotherVM ¶ added in v0.1.5
IsNicReservedForAnotherVM occurs when a NIC is associated with another VM during deletion. See https://aka.ms/deletenic
func IsNotFoundErr ¶
IsNotFoundErr is used to determine if we are failing to find a resource within azure.
func IsResponseError ¶ added in v0.1.1
func IsResponseError(err error) *azcore.ResponseError
IsResponseError checks if the error is of type *azcore.ResponseError and returns the response error or nil if it's not.
func IsSKUNotAvailable ¶ added in v0.1.5
IsSKUNotAvailable https://aka.ms/azureskunotavailable: either not available for a location or zone, or out of capacity for Spot.
func LowPriorityQuotaHasBeenReached ¶ added in v0.1.6
LowPriorityQuotaHasBeenReached communicates if we have reached the quota limit for low priority VMs under a specific subscription Low priority VMs are generally Spot VMs, but can also be low priority VMs created via the Azure CLI or Azure Portal
func RegionalQuotaHasBeenReached ¶
RegionalQuotaHasBeenReached communicates if we have reached the quota limit for a given region under a specific subscription
func SKUFamilyQuotaHasBeenReached ¶ added in v0.1.4
SKUFamilyQuotaHasBeenReached tells us if we have exceeded our Quota.
func SubscriptionQuotaHasBeenReached ¶
SubscriptionQuotaHasBeenReached tells us if we have exceeded our Quota.
func ZonalAllocationFailureOccurred ¶ added in v0.1.2
ZonalAllocationFailureOccurred communicates if we have failed to allocate a resource in a zone, and should try another zone. To learn more about zonal allocation failures, visit: http://aka.ms/allocation-guidance
Types ¶
This section is empty.