You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/troubleshooting/common-deployment-errors.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
1
---
2
2
title: Troubleshoot common Azure deployment errors
3
-
description: Describes common deployment errors for Azure resources that are deployed with Azure Resource Manager templates (ARM templates) or Bicep files.
3
+
description: Describes common Azure deployment errors for resources that are deployed with Bicep files or Azure Resource Manager templates (ARM templates).
4
4
tags: top-support-issue
5
5
ms.topic: troubleshooting
6
-
ms.date: 05/16/2022
6
+
ms.date: 08/05/2022
7
7
ms.custom: devx-track-azurepowershell
8
8
---
9
9
10
10
# Troubleshoot common Azure deployment errors
11
11
12
-
This article describes common Azure deployment errors, and provides information about solutions. Azure resources can be deployed with Azure Resource Manager templates (ARM templates) or Bicep files. If you can't find the error code for your deployment error, see [Find error code](find-error-code.md).
12
+
This article describes common Azure deployment errors, and provides information about solutions. Azure resources can be deployed with Bicep files or Azure Resource Manager templates (ARM templates). If you can't find the error code for your deployment error, see [Find error code](find-error-code.md).
13
13
14
14
If your error code isn't listed, submit a GitHub issue. On the right side of the page, select **Feedback**. At the bottom of the page, under **Feedback** select **This page**. Provide your documentation feedback but **don't include confidential information** because GitHub issues are public.
| AccountNameInvalid | Follow naming guidelines for storage accounts. |[Resolve errors for storage account names](error-storage-account-name.md)|
21
21
| AccountPropertyCannotBeSet | Check available storage account properties. |[storageAccounts](/azure/templates/microsoft.storage/storageaccounts)|
22
22
| AllocationFailed | The cluster or region doesn't have resources available or can't support the requested VM size. Retry the request at a later time, or request a different VM size. |[Provisioning and allocation issues for Linux](/troubleshoot/azure/virtual-machines/troubleshoot-deployment-new-vm-linux) <br><br> [Provisioning and allocation issues for Windows](/troubleshoot/azure/virtual-machines/troubleshoot-deployment-new-vm-windows) <br><br> [Troubleshoot allocation failures](/troubleshoot/azure/virtual-machines/allocation-failure)|
23
23
| AnotherOperationInProgress | Wait for concurrent operation to complete. ||
@@ -33,7 +33,7 @@ If your error code isn't listed, submit a GitHub issue. On the right side of the
33
33
| DeploymentJobSizeExceeded | Simplify your template to reduce size. |[Resolve template size errors](error-job-size-exceeded.md)|
34
34
| DnsRecordInUse | The DNS record name must be unique. Enter a different name. ||
35
35
| ImageNotFound | Check VM image settings. ||
36
-
| InaccessibleImage | Azure Container Instance deployment fails. You might need to include the image's tag with the syntax `registry/image:tag` to deploy the container. For a private registry, verify your credentials are correct. |[Find error code](find-error-code.md)|
36
+
| InaccessibleImage | Azure Container Instance deployment fails. You might need to include the image's tag with the syntax `registry/image:tag` to deploy the container. For a private registry, verify your credentials are correct. |[Find error code](find-error-code.md)|
37
37
| InternalServerError | Caused by a temporary problem. Retry the deployment. ||
38
38
| InUseSubnetCannotBeDeleted | This error can occur when you try to update a resource, if the request process deletes and creates the resource. Make sure to specify all unchanged values. |[Update resource](/azure/architecture/guide/azure-resource-manager/advanced-templates/update-resource)|
39
39
| InvalidAuthenticationTokenTenant | Get access token for the appropriate tenant. You can only get the token from the tenant that your account belongs to. ||
@@ -42,7 +42,7 @@ If your error code isn't listed, submit a GitHub issue. On the right side of the
42
42
| InvalidParameter | One of the values you provided for a resource doesn't match the expected value. This error can result from many different conditions. For example, a password may be insufficient, or a blob name may be incorrect. The error message should indicate which value needs to be corrected. |[ARM template parameters](../templates/parameters.md) <br><br> [Bicep parameters](../bicep/parameters.md)|
43
43
| InvalidRequestContent | The deployment values either include values that aren't recognized, or required values are missing. Confirm the values for your resource type. |[Template reference](/azure/templates/)|
44
44
| InvalidRequestFormat | Enable debug logging when running the deployment, and verify the contents of the request. |[Debug logging](enable-debug-logging.md)|
45
-
| InvalidResourceLocation | Provide a unique name for the storage account. |[Resolve storage account name](error-storage-account-name.md)|
45
+
| InvalidResourceLocation | Provide a unique name for the storage account. |[Resolve errors for storage account names](error-storage-account-name.md)|
46
46
| InvalidResourceNamespace | Check the resource namespace you specified in the **type** property. |[Template reference](/azure/templates/)|
47
47
| InvalidResourceReference | The resource either doesn't yet exist or is incorrectly referenced. Check whether you need to add a dependency. Verify that your use of the **reference** function includes the required parameters for your scenario. |[Resolve dependencies](error-not-found.md)|
48
48
| InvalidResourceType | Check the resource type you specified in the **type** property. |[Template reference](/azure/templates/)|
@@ -73,7 +73,8 @@ If your error code isn't listed, submit a GitHub issue. On the right side of the
73
73
| ResourceNotFound | Your deployment references a resource that can't be resolved. Verify that your use of the **reference** function includes the parameters required for your scenario. |[Resolve references](error-not-found.md)|
74
74
| ResourceQuotaExceeded | The deployment is trying to create resources that exceed the quota for the subscription, resource group, or region. If possible, revise your infrastructure to stay within the quotas. Otherwise, consider requesting a change to your quotas. |[Resolve quotas](error-resource-quota.md)|
75
75
| SkuNotAvailable | Select SKU (such as VM size) that is available for the location you've selected. |[Resolve SKU](error-sku-not-available.md)|
76
-
| StorageAccountAlreadyExists <br> StorageAccountAlreadyTaken | Provide a unique name for the storage account. |[Resolve storage account name](error-storage-account-name.md)|
76
+
| StorageAccountAlreadyTaken <br> StorageAccountAlreadyExists | Provide a unique name for the storage account. |[Resolve errors for storage account names](error-storage-account-name.md)|
77
+
| StorageAccountInAnotherResourceGroup | Provide a unique name for the storage account. |[Resolve errors for storage account names](error-storage-account-name.md)|
77
78
| StorageAccountNotFound | Check the subscription, resource group, and name of the storage account that you're trying to use. ||
78
79
| SubnetsNotInSameVnet | A virtual machine can only have one virtual network. When deploying several NICs, make sure they belong to the same virtual network. |[Windows VM multiple NICs](../../virtual-machines/windows/multiple-nics.md) <br><br> [Linux VM multiple NICs](../../virtual-machines/linux/multiple-nics.md)|
79
80
| SubnetIsFull | There aren't enough available addresses in the subnet to deploy resources. You can release addresses from the subnet, use a different subnet, or create a new subnet. |[Manage subnets](../../virtual-network/virtual-network-manage-subnet.md) and [Virtual network FAQ](../../virtual-network/virtual-networks-faq.md#are-there-any-restrictions-on-using-ip-addresses-within-these-subnets) <br><br> [Private IP addresses](../../virtual-network/ip-services/private-ip-addresses.md)|
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/troubleshooting/error-storage-account-name.md
+43-14Lines changed: 43 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,47 +1,76 @@
1
1
---
2
-
title: Storage account name errors
3
-
description: Describes errors that can occur when specifying a storage account name in an Azure Resource Manager template (ARM template) or Bicep file.
2
+
title: Resolve errors for storage account names
3
+
description: Describes how to resolve errors for Azure storage account names that can occur during deployment with a Bicep file or Azure Resource Manager template (ARM template).
4
4
ms.topic: troubleshooting
5
-
ms.date: 11/12/2021
5
+
ms.date: 08/05/2022
6
6
---
7
7
8
8
# Resolve errors for storage account names
9
9
10
-
This article describes naming errors that can occur when deploying a storage account with an Azure Resource Manager template (ARM template)or Bicep file.
10
+
This article describes how to resolve errors for Azure storage account names that can occur during deployment with a Bicep file or Azure Resource Manager template (ARM template). Common causes for an error are a storage account name with invalid characters or a storage account that uses the same name as an existing storage account. Storage account names must be globally unique across Azure.
11
11
12
12
## Symptom
13
13
14
-
If your storage account name includes prohibited characters, like an uppercase letter or exclamation point, you receive an error:
14
+
An invalid storage account name causes an error code during deployment. The following are some examples of errors for storage account names.
15
+
16
+
### Account name invalid
17
+
18
+
If your storage account name includes prohibited characters, like an uppercase letter or special character like an exclamation point.
15
19
16
20
```Output
17
21
Code=AccountNameInvalid
18
22
Message=S!torageckrexph7isnoc is not a valid storage account name. Storage account name must be
19
23
between 3 and 24 characters in length and use numbers and lower-case letters only.
20
24
```
21
25
22
-
For storage accounts, you must provide a resource name that's unique across Azure. If you don't provide a unique name, you receive an error:
26
+
### Invalid resource location
27
+
28
+
If you try to deploy a new storage account with the same name and in the same resource group, but use a different location as an existing storage account in your Azure subscription. The error indicates the storage account already exists and can't be created in the new location. Select a different name to create the new storage account.
23
29
24
30
```Output
25
-
Code=StorageAccountAlreadyTaken
26
-
Message=The storage account named mystorage is already taken.
31
+
Code=InvalidResourceLocation
32
+
Message=The resource 'storageckrexph7isnoc' already exists in location 'westus'
33
+
in resource group 'demostorage'. A resource with the same name cannot be created in location 'eastus'.
34
+
Please select a new resource name.
35
+
```
36
+
37
+
### Storage account in another resource group
38
+
39
+
If you try to deploy a new storage account with the same name and location as an existing storage account but in a different resource group in your subscription.
40
+
41
+
```Output
42
+
Code=StorageAccountInAnotherResourceGroup
43
+
Message=The account storageckrexph7isnoc is already in another resource group in this subscription.
27
44
```
28
45
29
-
If you deploy a storage account with the same name as an existing storage account in your subscription, but in a different location, you receive an error. The error indicates the storage account already exists in a different location. Either delete the existing storage account or use the same location as the existing storage account.
46
+
### Storage account already taken
47
+
48
+
If you try to deploy a new storage account with the same name as a storage account that already exists in Azure. The existing storage account name might be in your subscription or tenant, or anywhere across Azure. Storage account names must be globally unique across Azure.
49
+
50
+
```Output
51
+
Code=StorageAccountAlreadyTaken
52
+
Message=The storage account named storageckrexph7isnoc is already taken.
53
+
```
30
54
31
55
## Cause
32
56
33
-
Storage account names must be between 3 and 24 characters in length and only use numbers and lowercase letters. No uppercase letters or special characters. The name must be unique.
57
+
Common reasons for an error are because the storage account name uses invalid characters or is a duplicate name. Storage account names must meet the following criteria:
58
+
59
+
- Length between 3 and 24 characters with only lowercase letters and numbers.
60
+
- Must be globally unique across Azure. Storage account names can't be duplicated in Azure.
34
61
35
62
## Solution
36
63
37
-
You can create a unique name by concatenating your naming convention with the result of the `uniqueString` function.
64
+
You can create a unique name by concatenating a prefix or suffix with a value from the `uniqueString` function.
65
+
66
+
The following examples specify a prefix with the string `storage` that's concatenated with the value from `uniqueString`.
38
67
39
68
# [Bicep](#tab/bicep)
40
69
41
70
Bicep uses [string interpolation](../bicep/bicep-functions-string.md#concat) with [uniqueString](../bicep/bicep-functions-string.md#uniquestring).
@@ -58,7 +87,7 @@ ARM templates use [concat](../templates/template-functions-string.md#concat) wit
58
87
59
88
Make sure your storage account name doesn't exceed 24 characters. The `uniqueString` function returns 13 characters. If you want to concatenate a prefix or suffix, provide a value that's 11 characters or less.
60
89
61
-
The following examples use a parameter that creates a prefix with a maximum of 11 characters.
90
+
The following examples use a parameter named `storageNamePrefix`that creates a prefix with a maximum of 11 characters.
0 commit comments