@@ -600,30 +600,120 @@ public static class BatchErrorCodeStrings
600600 public static class PoolResizeErrorCodes
601601 {
602602 /// <summary>
603- /// The account has reached its quota of compute nodes.
603+ /// Desired number of nodes could not be allocated due to a stop resize operation
604604 /// </summary>
605- public const string AccountCoreQuotaReached = "AccountCoreQuotaReached " ;
605+ public const string ResizeStopped = "ResizeStopped " ;
606606
607607 /// <summary>
608- /// An error occurred while trying to allocate the desired number of compute nodes.
608+ /// One or more failures were encountered in removing nodes from the pool
609609 /// </summary>
610- public const string AllocationFailed = "AllocationFailed " ;
610+ public const string RemoveNodesFailed = "RemoveNodesFailed " ;
611611
612612 /// <summary>
613- /// The Batch service was unable to allocate the desired number of compute nodes within the resize timeout.
613+ /// Desired number of nodes could not be allocated as the resize timeout was reached
614614 /// </summary>
615- public const string AllocationTimedOut = "AllocationTimedout " ;
616-
615+ public const string AllocationTimedOut = "AllocationTimedOut " ;
616+
617617 /// <summary>
618- /// An error occurred when removing compute nodes from the pool.
618+ /// Desired number of nodes could not be allocated
619619 /// </summary>
620- public const string RemoveNodesFailed = "RemoveNodesFailed " ;
621-
620+ public const string AllocationFailed = "AllocationFailed " ;
621+
622622 /// <summary>
623- /// The user stopped the resize operation.
623+ /// The specified account has reached core quota
624624 /// </summary>
625- public const string ResizeStopped = "ResizeStopped" ;
626-
625+ public const string AccountCoreQuotaReached = "AccountCoreQuotaReached" ;
626+
627+ /// <summary>
628+ /// The specified account has reached low priority core quota
629+ /// </summary>
630+ public const string AccountLowPriorityCoreQuotaReached = "AccountLowPriorityCoreQuotaReached" ;
631+
632+ /// <summary>
633+ /// The marketplace resource plan is missing required publisher property
634+ /// </summary>
635+ public const string MissingPublisherPropertyInMarketPlacePlan = "MissingPublisherPropertyInMarketPlacePlan" ;
636+
637+ /// <summary>
638+ /// Allocation failed because the allocation condition is too restrictive. Please remove some constraints and try again
639+ /// </summary>
640+ public const string OverconstrainedAllocationRequestError = "OverconstrainedAllocationRequestError" ;
641+
642+ /// <summary>
643+ /// Commmunication enabled pool has reached the maximum VM count
644+ /// </summary>
645+ public const string CommunicationEnabledPoolReachedMaxVMCount = "CommunicationEnabledPoolReachedMaxVMCount" ;
646+
647+ /// <summary>
648+ /// The specified account has reached spot core quota
649+ /// </summary>
650+ public const string AccountSpotCoreQuotaReached = "AccountSpotCoreQuotaReached" ;
651+
652+ /// <summary>
653+ /// Pool creation failed with error 'Failed to perform resource identity operation'
654+ /// </summary>
655+ public const string FailedIdentityOperation = "FailedIdentityOperation" ;
656+
657+ /// <summary>
658+ /// Pool creation failed with disk encryption error
659+ /// </summary>
660+ public const string DiskEncryptionFailure = "DiskEncryptionFailure" ;
661+
662+ /// <summary>
663+ /// A dependent resource specified for the Pool was not found.
664+ /// </summary>
665+ public const string DependentResourceNotFound = "DependentResourceNotFound" ;
666+
667+ /// <summary>
668+ /// Assigned policy on resource has blocked pool operation.
669+ /// </summary>
670+ public const string OperationsRestrictedByPolicy = "OperationsRestrictedByPolicy" ;
671+
672+ /// <summary>
673+ /// Assigned policy on PublicIP has blocked pool operation.
674+ /// </summary>
675+ public const string OperationsOnPublicIPRestrictedByPolicy = "OperationsOnPublicIPRestrictedByPolicy" ;
676+
677+ /// <summary>
678+ /// Assigned policy on Custom Image has blocked pool operation.
679+ /// </summary>
680+ public const string OperationsOnImageRestrictedByPolicy = "OperationsOnImageRestrictedByPolicy" ;
681+
682+ /// <summary>
683+ /// Assigned policy on Network Security Group has blocked pool operation.
684+ /// </summary>
685+ public const string OperationsOnNetworkSecurityGroupRestrictedByPolicy = "OperationsOnNetworkSecurityGroupRestrictedByPolicy" ;
686+
687+ /// <summary>
688+ /// Assigned policy on Load Balancer has blocked pool operation.
689+ /// </summary>
690+ public const string OperationsOnLoadBalancerRestrictedByPolicy = "OperationsOnLoadBalancerRestrictedByPolicy" ;
691+
692+ /// <summary>
693+ /// Assigned policy on Virtual Network has blocked pool operation.
694+ /// </summary>
695+ public const string OperationsOnVirtualNetworkRestrictedByPolicy = "OperationsOnVirtualNetworkRestrictedByPolicy" ;
696+
697+ /// <summary>
698+ /// Assigned policy on Private Link has blocked pool operation.
699+ /// </summary>
700+ public const string OperationsOnPrivateLinkRestrictedByPolicy = "OperationsOnPrivateLinkRestrictedByPolicy" ;
701+
702+ /// <summary>
703+ /// Assigned policy on Private Endpoint has blocked pool operation.
704+ /// </summary>
705+ public const string OperationsOnPrivateEndpointRestrictedByPolicy = "OperationsOnPrivateEndpointRestrictedByPolicy" ;
706+
707+ /// <summary>
708+ /// Requested VM size is not compatible with requested configuration.
709+ /// </summary>
710+ public const string IncompatibleVMSize = "IncompatibleVMSize" ;
711+
712+ /// <summary>
713+ /// Requested VM size is not supported.
714+ /// </summary>
715+ public const string UnsupportedVMSize = "UnsupportedVMSize" ;
716+
627717 /// <summary>
628718 /// The reason for the failure is not known.
629719 /// </summary>
0 commit comments