Skip to content

MaxStorageAccountsCountPerSubscriptionExceeded error when deploying storage test resources #3959

Closed
@Jinming-Hu

Description

@Jinming-Hu
Status Code:
BadRequest

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
x-ms-failure-cause            : gateway
x-ms-ratelimit-remaining-subscription-writes: 1196
x-ms-request-id               : 3f56abcf-38e7-45b3-9031-373388ccfab0
x-ms-correlation-request-id   : 3f56abcf-38e7-45b3-9031-373388ccfab0
x-ms-routing-request-id       : WESTUS:20220921T092423Z:3f56abcf-38e7-45b3-9031-373388ccfab0
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Date                          : Wed, 21 Sep 2022 09:24:23 GMT

Body:
{
  "error": {
    "code": "InvalidTemplateDeployment",
    "message": "The template deployment 'tb1defe081da1421e' is not valid according to the validation procedure. The tracking id is '3f56abcf-38e7-45b3-9031-373388ccfab0'. See inner errors for details.",
    "details": [
      {
        "code": "PreflightValidationCheckFailed",
        "message": "Preflight validation failed. Please refer to the details for the specific errors.",
        "details": [
          {
            "code": "MaxStorageAccountsCountPerSubscriptionExceeded",
            "target": "***",
            "message": "Subscription *** already contains 249 storage accounts with Standard Dns endpoints in location westus and the maximum allowed is 250."
          }
        ]
      }
    ]
  }
}


DEBUG: 9:24:23 AM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
VERBOSE: Running registered exit actions
VERBOSE: Logging out of service principal '***'
VERBOSE: Performing the operation "New-TestResources.ps1" on target "***".
Retry : Exception calling "Invoke" with "0" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 9:24:23 AM - Error: Code=InvalidTemplateDeployment; Message=The template deployment 'tb1defe081da1421e' is not valid according to the validation procedure. The tracking id is '3f56abcf-38e7-45b3-9031-373388ccfab0'. See inner errors for details.
"
At D:\a\_work\1\s\eng\common\TestResources\New-TestResources.ps1:725 char:23
+         $deployment = Retry {
+                       ~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], MethodInvocationException
+ FullyQualifiedErrorId : ActionPreferenceStopException,Retry
##[error]PowerShell exited with code '1'.

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.EngSysThis issue is impacting the engineering system.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions