2
2
title : Resource naming restrictions
3
3
description : Shows the rules and restrictions for naming Azure resources.
4
4
ms.topic : conceptual
5
- ms.date : 01/13 /2020
5
+ ms.date : 01/14 /2020
6
6
---
7
7
8
8
# Naming rules and restrictions for Azure resources
@@ -167,8 +167,11 @@ In the following tables, the term alphanumeric refers to:
167
167
> | galleries / images / versions | image | 32-bit integer | Numbers and periods. |
168
168
> | images | resource group | 1-80 | Alphanumerics, underscores, periods, and hyphens.<br ><br >Start with alphanumeric. End with alphanumeric or underscore. |
169
169
> | snapshots | resource group | 1-80 | Alphanumerics, underscores, periods, and hyphens.<br ><br >Start with alphanumeric. End with alphanumeric or underscore. |
170
- > | virtualMachines | resource group | 1-15 (Windows), 1-64 (Linux) | Can't use:<br > `\/ ""[ ] :| <>+=;,?* @&`<br ><br >Can't start with underscore. Can't end with period or hyphen. |
171
- > | virtualMachineScaleSets | resource group | 1-15 (Windows), 1-64 (Linux) | Can't use:<br > `\/ ""[ ] :| <>+=;,?* @&`<br ><br >Can't start with underscore. Can't end with period or hyphen. |
170
+ > | virtualMachines | resource group | 1-15 (Windows)<br >1-64 (Linux)<br ><br >See note below. | Can't use:<br > `\/ ""[ ] :| <>+=;,?* @&`<br ><br >Can't start with underscore. Can't end with period or hyphen. |
171
+ > | virtualMachineScaleSets | resource group | 1-15 (Windows)<br >1-64 (Linux)<br ><br >See note below. | Can't use:<br > `\/ ""[ ] :| <>+=;,?* @&`<br ><br >Can't start with underscore. Can't end with period or hyphen. |
172
+
173
+ > [ !NOTE]
174
+ > Azure virtual machines have two distinct names: resource name and host name. When you create a virtual machine in the portal, the same value is used for both names. The restrictions in the preceding table are for the host name. The actual resource name can have up to 64 characters.
172
175
173
176
## Microsoft.ContainerInstance
174
177
@@ -398,10 +401,9 @@ In the following tables, the term alphanumeric refers to:
398
401
> | Entity | Scope | Length | Valid Characters |
399
402
> | --- | --- | --- | --- |
400
403
> | clusters | global | 4-22 | Lowercase letters and numbers.<br ><br >Start with letter. |
401
- > | /clusters / attachedDatabaseConfigurations | Cluster | Not specified | |
402
- > | /clusters / databases | cluster | Not specified | |
403
- > | /clusters / databases / dataConnections | database | Not specified | |
404
- > | /clusters / databases / eventhubconnections | database | Not specified | |
404
+ > | /clusters / databases | cluster | 1-260 | Alphanumerics, hyphens, spaces, and periods. |
405
+ > | /clusters / databases / dataConnections | database | 1-40 | Alphanumerics, hyphens, spaces, and periods. |
406
+ > | /clusters / databases / eventhubconnections | database | 1-40 | Alphanumerics, hyphens, spaces, and periods. |
405
407
406
408
## Microsoft.Logic
407
409
@@ -458,32 +460,9 @@ In the following tables, the term alphanumeric refers to:
458
460
> | Entity | Scope | Length | Valid Characters |
459
461
> | --- | --- | --- | --- |
460
462
> | mediaservices | resource group | 3-24 | Lowercase letters and numbers. |
461
- > | mediaServices / accountFilters | Media service | | |
462
- > | mediaServices / assets | Media service | | |
463
- > | mediaServices / assets / assetFilters | Asset | | |
464
- > | mediaServices / contentKeyPolicies | Media service | | |
465
463
> | mediaservices / liveEvents | Media service | 1-32 | Alphanumerics and hyphens.<br ><br >Start with alphanumeric. |
466
464
> | mediaservices / liveEvents / liveOutputs | Live event | 1-256 | Alphanumerics and hyphens.<br ><br >Start with alphanumeric. |
467
- > | mediaServices / mediaGraphs | Media service | | |
468
465
> | mediaservices / streamingEndpoints | Media service | 1-24 | Alphanumerics and hyphens.<br ><br >Start with alphanumeric. |
469
- > | mediaServices / streamingLocators | Media service | | |
470
- > | mediaServices / streamingPolicies | Media service | | |
471
- > | mediaServices / transforms | Media service | | |
472
- > | mediaServices / transforms / jobs | Transform | | |
473
-
474
- ## Microsoft.Migrate
475
-
476
- > [ !div class="mx-tableFixed"]
477
- > | Entity | Scope | Length | Valid Characters |
478
- > | --- | --- | --- | --- |
479
- > | assessmentProjects | resource group | | |
480
- > | assessmentProjects / groups | Assessment project | | |
481
- > | assessmentProjects / groups / assessments | Group | | |
482
- > | assessmentProjects / hypervcollectors | Assessment project | | |
483
- > | assessmentProjects / vmwarecollectors | Assessment project | | |
484
- > | projects | resource group | | |
485
- > | projects/groups | Project | | |
486
- > | projects/groups/assessments | Group | | |
487
466
488
467
## Microsoft.Network
489
468
@@ -579,28 +558,6 @@ In the following tables, the term alphanumeric refers to:
579
558
> | --- | --- | --- | --- |
580
559
> | clusters | resource group | 4-63 | Alphanumerics and hyphens.<br ><br >Start and end with alphanumeric. |
581
560
> | workspaces | resource group | 4-63 | Alphanumerics and hyphens.<br ><br >Start and end with alphanumeric. |
582
- > | /workspaces / dataSources | workspaces | Not specified | |
583
- > | /workspaces / linkedServices | workspaces | Not specified | |
584
- > | /workspaces / savedSearches | workspaces | Not specified | |
585
- > | /workspaces / storageInsightConfigs | workspaces | Not specified | |
586
-
587
- ## Microsoft.OperationsManagement
588
-
589
- > [ !div class="mx-tableFixed"]
590
- > | Entity | Scope | Length | Valid Characters |
591
- > | --- | --- | --- | --- |
592
- > | /ManagementConfigurations | resource group | Not specified | Must start with a lower case letter and contain only lower case letters or numbers<br >` ^[a-z][a-z0-9]*$ ` |
593
- > | /solutions | resource group | Not specified | Must start with a lower case letter and contain only lower case letters or numbers<br >` ^[a-z][a-z0-9]*$ ` |
594
-
595
- ## Microsoft.Peering
596
-
597
- > [ !div class="mx-tableFixed"]
598
- > | Entity | Scope | Length | Valid Characters |
599
- > | --- | --- | --- | --- |
600
- > | /peerAsns | resource group | Not specified | |
601
- > | /peerings | resource group | Not specified | |
602
- > | /peeringServices | resource group | Not specified | |
603
- > | /peeringServices / prefixes | peeringServices | Not specified | |
604
561
605
562
## Microsoft.PowerBI
606
563
@@ -621,25 +578,8 @@ In the following tables, the term alphanumeric refers to:
621
578
> [ !div class="mx-tableFixed"]
622
579
> | Entity | Scope | Length | Valid Characters |
623
580
> | --- | --- | --- | --- |
624
- > | /vaults | resource group | Not specified | |
625
- > | /vaults / backupFabrics / backupProtectionIntent | backupFabrics | Not specified | |
626
- > | /vaults / backupFabrics / protectionContainers | backupFabrics | Not specified | |
627
- > | /vaults / backupFabrics / protectionContainers / protectedItems | protectionContainers | Not specified | |
628
- > | /vaults / backupPolicies | vaults | Not specified | |
629
- > | /vaults / certificates | vaults | Not specified | |
630
- > | /vaults / replicationAlertSettings | vaults | Not specified | |
631
- > | /vaults / replicationFabrics | vaults | Not specified | |
632
- > | /vaults / replicationFabrics / replicationNetworks / replicationNetworkMappings | replicationNetworks | Not specified | |
633
- > | /vaults / replicationFabrics /replicationProtectionContainers | replicationFabrics | Not specified | |
634
- > | /vaults / replicationFabrics / replicationProtectionContainers / replicationMigrationItems | replicationProtectionContainers | Not specified | |
635
- > | /vaults / replicationFabrics / replicationProtectionContainers / replicationProtectedItems | replicationProtectionContainers | Not specified | |
636
- > | /vaults / replicationFabrics / replicationProtectionContainers / replicationProtectionContainerMappings | replicationProtectionContainers | Not specified | |
637
- > | /vaults / replicationFabrics / replicationRecoveryServicesProviders | replicationFabrics | Not specified | |
638
- > | /vaults / replicationFabrics / replicationStorageClassifications / replicationStorageClassificationMappings | replicationStorageClassifications | Not specified | |
639
- > | /vaults / replicationFabrics / replicationvCenters | replicationFabrics | Not specified | |
640
- > | /vaults / replicationPolicies | vaults | Not specified | |
641
- > | /vaults / replicationRecoveryPlans | vaults | Not specified | |
642
- > | /vaults / replicationVaultSettings | vaults | Not specified | |
581
+ > | vaults | resource group | 2-50 | Alphanumerics and hyphens.<br ><br >Start with letter. |
582
+ > | vaults / backupPolicies | vault | 3-150 | Alphanumerics and hyphens.<br ><br >Start with letter. Can't end with hyphen. |
643
583
644
584
## Microsoft.Relay
645
585
@@ -660,39 +600,16 @@ In the following tables, the term alphanumeric refers to:
660
600
> | --- | --- | --- | --- |
661
601
> | /deployments | resource group | Not specified | |
662
602
> | /deploymentScripts | resource group | 1-90 | |
663
-
664
- ## Microsoft.Search
665
-
666
- > [ !div class="mx-tableFixed"]
667
- > | Entity | Scope | Length | Valid Characters |
668
- > | --- | --- | --- | --- |
669
- > | /searchServices | resource group | Not specified | |
670
-
671
- ## Microsoft.Security
672
-
673
- > [ !div class="mx-tableFixed"]
674
- > | Entity | Scope | Length | Valid Characters |
675
- > | --- | --- | --- | --- |
676
- > | /advancedThreatProtectionSettings | resource group | Not specified | |
677
- > | /assessmentMetadata | resource group | Not specified | |
678
- > | /automations | resource group | Not specified | |
679
- > | /autoProvisioningSettings | resource group | Not specified | |
680
- > | /deviceSecurityGroups | resource group | Not specified | |
681
- > | /informationProtectionPolicies | resource group | Not specified | |
682
- > | /iotSecuritySolutions | resource group | Not specified | |
683
- > | /locations / applicationWhitelistings | locations | Not specified | |
684
- > | /locations / jitNetworkAccessPolicies | locations | Not specified | |
685
- > | /pricings | resource group | Not specified | |
686
- > | /securityContacts | resource group | Not specified | |
687
- > | /settings | resource group | Not specified | |
688
- > | /workspaceSettings | resource group | Not specified | |
603
+ > | /resourcegroups | subscriptions | 1-90 | ` ^[-\w\._\(\)]+$ ` |
604
+ > | /tagNames | subscriptions | Not specified | |
605
+ > | /tagNames/tagValues | tagNames | Not specified | |
689
606
690
607
## Microsoft.ServiceBus
691
608
692
609
> [ !div class="mx-tableFixed"]
693
610
> | Entity | Scope | Length | Valid Characters |
694
611
> | --- | --- | --- | --- |
695
- > | namespaces | global | 6-50 | Alphanumerics and hyphens.<br ><br >Start with a letter. End with a letter or number. |
612
+ > | namespaces | global | 6-50 | Alphanumerics and hyphens.<br ><br >Start with a letter. End with a letter or number.< br >< br >For more information, see [ Create namespace ] ( /rest/api/servicebus/create-namespace ) . |
696
613
> | namespaces / AuthorizationRules | namespace | 1-50 | Alphanumerics, periods, hyphens, and underscores.<br ><br >Start and end with alphnumeric. |
697
614
> | namespaces / disasterRecoveryConfigs | global | 6-50 | Alphanumerics and hyphens.<br ><br >Start with letter. End with alphanumeric. |
698
615
> | namespaces / migrationConfigurations | namespace | | Should always be ** $default** . |
@@ -722,83 +639,28 @@ In the following tables, the term alphanumeric refers to:
722
639
> [ !div class="mx-tableFixed"]
723
640
> | Entity | Scope | Length | Valid Characters |
724
641
> | --- | --- | --- | --- |
725
- > | /instancePools | resource group | Not specified | |
726
- > | /locations / instanceFailoverGroups | locations | Not specified | |
727
- > | /managedInstances | resource group | Not specified | |
728
- > | /managedInstances / administrators | managedInstances | Not specified | |
729
- > | /managedInstances / databases | managedInstances | Not specified | |
730
- > | /managedInstances / databases / backupShortTermRetentionPolicies | databases | Not specified | |
731
- > | /managedInstances / databases / schemas / tables / columns / sensitivityLabels | columns | Not specified | |
732
- > | /managedInstances / databases / securityAlertPolicies | databases | Not specified | |
733
- > | /managedInstances / databases / vulnerabilityAssessments | databases | Not specified | |
734
- > | /managedInstances / databases / vulnerabilityAssessments / rules / baselines | rules | Not specified | |
735
- > | /managedInstances / encryptionProtector | managedInstances | Not specified | |
736
- > | /managedInstances / keys | managedInstances | Not specified | |
737
- > | /managedInstances / restorableDroppedDatabases / backupShortTermRetentionPolicies | restorableDroppedDatabases | Not specified | |
738
- > | /managedInstances / securityAlertPolicies | managedInstances | Not specified | |
739
- > | /managedInstances / vulnerabilityAssessments | managedInstances | Not specified | |
740
- > | /servers | resource group | Not specified | |
741
- > | /servers / administrators | servers | Not specified | |
742
- > | /servers / advisors | servers | Not specified | |
743
- > | /servers / auditingPolicies | servers | Not specified | |
744
- > | /servers / auditingSettings | servers | Not specified | |
745
- > | /servers / backupLongTermRetentionVaults | servers | Not specified | |
746
- > | /servers / communicationLinks | servers | Not specified | |
747
- > | /servers / connectionPolicies | servers | Not specified | |
748
- > | /servers / databases | servers | Not specified | |
749
- > | /servers / databases / advisors | databases | Not specified | |
750
- > | /servers / databases / auditingPolicies | databases | Not specified | |
751
- > | /servers / databases / auditingSettings | databases | Not specified | |
752
- > | /servers / databases / backupLongTermRetentionPolicies | databases | Not specified | |
753
- > | /servers / databases / backupShortTermRetentionPolicies | databases | Not specified | |
754
- > | /servers / databases / connectionPolicies | databases | Not specified | |
755
- > | /servers / databases / dataMaskingPolicies | databases | Not specified | |
756
- > | /servers / databases / dataMaskingPolicies / rules | dataMaskingPolicies | Not specified | |
757
- > | /servers / databases / extendedAuditingSettings | databases | Not specified | |
758
- > | /servers / databases / extensions | databases | Not specified | |
759
- > | /servers / databases / geoBackupPolicies | databases | Not specified | |
760
- > | /servers / databases / schemas / tables / columns / sensitivityLabels | columns | Not specified | |
761
- > | /servers / databases / securityAlertPolicies | databases | Not specified | |
762
- > | /servers / databases / syncGroups | databases | Not specified | |
763
- > | /servers / databases / syncGroups / syncMembers | syncGroups | Not specified | |
764
- > | /servers / databases / transparentDataEncryption | databases | Not specified | |
765
- > | /servers / databases / vulnerabilityAssessments | databases | Not specified | |
766
- > | /servers / databases / vulnerabilityAssessments / rules / baselines | rules | Not specified | |
767
- > | /servers / databases / workloadGroups | databases | Not specified | |
768
- > | /servers / databases / workloadGroups / workloadClassifiers | workloadGroups | Not specified | |
769
- > | /servers / disasterRecoveryConfiguration | servers | Not specified | |
770
- > | /servers / dnsAliases | servers | Not specified | |
771
- > | /servers / elasticPools | servers | Not specified | |
772
- > | /servers / encryptionProtector | servers | Not specified | |
773
- > | /servers / extendedAuditingSettings | servers | Not specified | |
774
- > | /servers / failoverGroups | servers | Not specified | |
775
- > | /servers / firewallRules | servers | Not specified | |
776
- > | /servers / jobAgents | servers | Not specified | |
777
- > | /servers / jobAgents / credentials | jobAgents | Not specified | |
778
- > | /servers / jobAgents / jobs | jobAgents | Not specified | |
779
- > | /servers / jobAgents / jobs / executions | jobs | Not specified | |
780
- > | /servers / jobAgents / jobs / steps | jobs | Not specified | |
781
- > | /servers / jobAgents / targetGroups | jobAgents | Not specified | |
782
- > | /servers / keys | servers | Not specified | |
783
- > | /servers / privateEndpointConnections | servers | Not specified | |
784
- > | /servers / securityAlertPolicies | servers | Not specified | |
785
- > | /servers / syncAgents | servers | Not specified | |
786
- > | /servers / virtualNetworkRules | servers | Not specified | |
787
- > | /servers / vulnerabilityAssessments | servers | Not specified | |
642
+ > | managedInstances | global | 1-63 | Lowercase letters, numbers, and hyphens.<br ><br >Can't start or end with hyphen. |
643
+ > | servers | global | 1-63 | Lowercase letters, numbers, and hyphens.<br ><br >Can't start or end with hyphen. |
644
+ > | servers / databases | server | 1-128 | Can't use:<br >` <>*%&:\/? ` <br ><br >Can't end with period or space. |
645
+ > | servers / databases / syncGroups | database | 1-150 | Alphanumerics, hyphens, and underscores. |
646
+ > | servers / elasticPools | server | 1-128 | Can't use:<br >` <>*%&:\/? ` <br ><br >Can't end with period or space. |
647
+ > | servers / failoverGroups | global | 1-63 | Lowercase letters, numbers, and hyphens.<br ><br >Can't start or end with hyphen. |
648
+ > | servers / firewallRules | server | 1-128 | Can't use:<br >` <>*%&:;\/? ` <br ><br >Can't end with period. |
788
649
789
650
## Microsoft.Storage
790
651
791
652
> [ !div class="mx-tableFixed"]
792
653
> | Entity | Scope | Length | Valid Characters |
793
654
> | --- | --- | --- | --- |
794
- > | /storageAccounts | resource group | 3-24 | |
795
- > | /storageAccounts / blobServices | storageAccounts | Not specified | |
796
- > | /storageAccounts / blobServices / default / containers | default | 3-63 | |
797
- > | /storageAccounts / blobServices / default / containers / immutabilityPolicies | containers | Not specified | |
798
- > | /storageAccounts / fileServices | storageAccounts | Not specified | |
799
- > | /storageAccounts / fileServices / default / shares | default | 3-63 | |
800
- > | /storageAccounts / managementPolicies | storageAccounts | Not specified | |
801
- > | /storageAccounts / privateEndpointConnections | storageAccounts | Not specified | |
655
+ > | storageAccounts | global | 3-24 | Lowercase letters and numbers. |
656
+ > | storageAccounts / blobServices | storage account | | Must be ` default ` . |
657
+ > | storageAccounts / blobServices / containers | storage account | 3-63 | Lowercase letters, numbers, and hyphens.<br ><br >Start with lowercase letter or number. Can't use consecutive hyphens. |
658
+ > | storageAccounts / fileServices | storageAccounts | | Must be ` default ` . |
659
+ > | storageAccounts / fileServices / shares | storage account | 3-63 | Lowercase letters, numbers, and hyphens.<br ><br >Can't start or end with hyphen. Can't use consecutive hyphens. |
660
+ > | storageAccounts / managementPolicies | storageAccounts | | Must be ` default ` . |
661
+ > | blob | container | 1-1024 | Any URL characters, case sensitive |
662
+ > | queue | storage account | 3-63 | Lowercase letters, numbers, and hyphens.<br ><br >Can't start or end with hyphen. Can't use consecutive hyphens. |
663
+ > | table | storage account | 3-63 | Alphanumerics.<br ><br >Start with letter. |
802
664
803
665
## Microsoft.StorageSync
804
666
@@ -890,17 +752,6 @@ In the following tables, the term alphanumeric refers to:
890
752
> | /sites / virtualNetworkConnections / gateways | virtualNetworkConnections | Not specified | |
891
753
> | /sourcecontrols | resource group | Not specified | |
892
754
893
- ## providers
894
-
895
- > [ !div class="mx-tableFixed"]
896
- > | Entity | Scope | Length | Valid Characters |
897
- > | --- | --- | --- | --- |
898
- > | providers/Microsoft.Authorization/locks | Microsoft.Authorization | Not specified | |
899
- > | providers/Microsoft.OperationsManagement/ManagementAssociations | Microsoft.OperationsManagement | Not specified | Must start with a lower case letter and contain only lower case letters or numbers<br >` ^[a-z][a-z0-9]*$ ` |
900
- > | providers/Microsoft.Security/serverVulnerabilityAssessments | Microsoft.Security | Not specified | |
901
-
902
-
755
+ ## Next steps
903
756
904
- > | /subscriptions/resourcegroups | subscriptions | 1-90 | ` ^[-\w\._\(\)]+$ ` |
905
- > | /subscriptions/tagNames | subscriptions | Not specified | |
906
- > | /subscriptions/tagNames/tagValues | tagNames | Not specified | |
757
+ For recommendations about how to name resources, see [ Ready: Recommended naming and tagging conventions] ( /azure/cloud-adoption-framework/ready/azure-best-practices/naming-and-tagging ) .
0 commit comments