From 3b89c1e7b97085b3cedf5fb4ecd3a4549b74a7df Mon Sep 17 00:00:00 2001 From: Arsene Muhire Date: Thu, 11 Jun 2026 17:12:47 -0700 Subject: [PATCH 1/3] Clarify DiskRP resource name characters --- .../Compute/ComputeDisk/Disk.tsp | 2 +- .../Compute/ComputeDisk/DiskAccess.tsp | 2 +- .../Compute/ComputeDisk/DiskEncryptionSet.tsp | 2 +- .../Compute/ComputeDisk/Snapshot.tsp | 2 +- .../Compute/stable/2024-03-02/DiskRP.json | 52 +++++++++---------- .../Compute/stable/2025-01-02/DiskRP.json | 52 +++++++++---------- 6 files changed, 56 insertions(+), 56 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp index e2f41487f9e0..4b74f81ec63c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp @@ -131,7 +131,7 @@ interface Disks { @@doc( Disk.name, - "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters." + "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters." ); @@doc(Disk.properties, "Disk resource properties."); @@doc( diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp index 9faa691480f7..3a72c1295b41 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp @@ -103,7 +103,7 @@ interface DiskAccesses { @@doc( DiskAccess.name, - "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters." + "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters." ); @@doc(DiskAccess.properties, ""); @@doc( diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp index 211eda2df85b..db2b7b37c379 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp @@ -108,7 +108,7 @@ interface DiskEncryptionSets { @@doc( DiskEncryptionSet.name, - "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters." + "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters." ); @@doc(DiskEncryptionSet.properties, ""); @@doc( diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp index 92998ca8398e..e42b0620d6aa 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp @@ -155,7 +155,7 @@ interface Snapshots { @@doc( Snapshot.name, - "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters." + "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters." ); @@doc(Snapshot.properties, "Snapshot resource properties."); @@doc( diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json index ab04cdba40af..c31658fe1044 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json @@ -274,7 +274,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -321,7 +321,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -396,7 +396,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -471,7 +471,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -535,7 +535,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -584,7 +584,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -635,7 +635,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -717,7 +717,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -788,7 +788,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -876,7 +876,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -923,7 +923,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1004,7 +1004,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1085,7 +1085,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1149,7 +1149,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1240,7 +1240,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1284,7 +1284,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1431,7 +1431,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1533,7 +1533,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1597,7 +1597,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1674,7 +1674,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -2059,7 +2059,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" } @@ -2106,7 +2106,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" }, @@ -2196,7 +2196,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" }, @@ -2274,7 +2274,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" } @@ -2338,7 +2338,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" }, @@ -2412,7 +2412,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-01-02/DiskRP.json b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-01-02/DiskRP.json index bc9a675221ab..b55f9ecb5ff7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-01-02/DiskRP.json +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-01-02/DiskRP.json @@ -274,7 +274,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -321,7 +321,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -396,7 +396,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -471,7 +471,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -535,7 +535,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -584,7 +584,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -635,7 +635,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -717,7 +717,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -788,7 +788,7 @@ { "name": "diskAccessName", "in": "path", - "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -876,7 +876,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -923,7 +923,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1004,7 +1004,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1085,7 +1085,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1149,7 +1149,7 @@ { "name": "diskEncryptionSetName", "in": "path", - "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1240,7 +1240,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1284,7 +1284,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1437,7 +1437,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1539,7 +1539,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -1603,7 +1603,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" }, @@ -1683,7 +1683,7 @@ { "name": "diskName", "in": "path", - "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.", + "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, "type": "string" } @@ -2068,7 +2068,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" } @@ -2115,7 +2115,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" }, @@ -2208,7 +2208,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" }, @@ -2286,7 +2286,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" } @@ -2350,7 +2350,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" }, @@ -2424,7 +2424,7 @@ { "name": "snapshotName", "in": "path", - "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.", + "description": "The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The max name length is 80 characters.", "required": true, "type": "string" } From 483f0fcab1ac1ea0a22a83b9d592787c9d36b1d5 Mon Sep 17 00:00:00 2001 From: Arsene Muhire Date: Mon, 15 Jun 2026 14:13:37 -0700 Subject: [PATCH 2/3] Align DiskRP name patterns with public contract --- .../Compute/ComputeDisk/Disk.tsp | 2 +- .../Compute/ComputeDisk/Snapshot.tsp | 2 +- .../Compute/stable/2024-03-02/DiskRP.json | 24 +++++++++---------- .../Compute/stable/2025-01-02/DiskRP.json | 24 +++++++++---------- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp index 4b74f81ec63c..cf2cd4489df4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Disk.tsp @@ -19,7 +19,7 @@ model Disk is Azure.ResourceManager.TrackedResource { Resource = Disk, KeyName = "diskName", SegmentName = "disks", - NamePattern = "" + NamePattern = "^[^_\\W][\\w-._]{0,79}(?; /** diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp index e42b0620d6aa..05336b5d9531 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp @@ -21,7 +21,7 @@ model Snapshot is Azure.ResourceManager.TrackedResource { Resource = Snapshot, KeyName = "snapshotName", SegmentName = "snapshots", - NamePattern = "" + NamePattern = "^[^_\\W][\\w-._]{0,79}(?; /** diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json index c31658fe1044..c189bc912cc4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json @@ -1242,7 +1242,7 @@ "in": "path", "description": "The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, - "type": "string" + "type": "string",`r`n "pattern": "^[^_\\W][\\w-._]{0,79}(? Date: Tue, 30 Jun 2026 23:49:48 -0700 Subject: [PATCH 3/3] Add DiskRP resource name patterns --- .../Compute/ComputeDisk/DiskAccess.tsp | 2 +- .../Compute/ComputeDisk/DiskEncryptionSet.tsp | 2 +- .../Compute/ComputeDisk/DiskRestorePoint.tsp | 4 +- .../Compute/stable/2024-03-02/DiskRP.json | 87 ++++++---- .../Compute/stable/2025-01-02/DiskRP.json | 87 ++++++---- .../Compute/stable/2026-03-02/DiskRP.json | 149 +++++++++++------- 6 files changed, 210 insertions(+), 121 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp index 3a72c1295b41..e0502aab3c65 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskAccess.tsp @@ -20,7 +20,7 @@ model DiskAccess Resource = DiskAccess, KeyName = "diskAccessName", SegmentName = "diskAccesses", - NamePattern = "" + NamePattern = "^[^_\\W][\\w-._]{0,79}(?; /** diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp index db2b7b37c379..2bee1dcaa8f0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskEncryptionSet.tsp @@ -20,7 +20,7 @@ model DiskEncryptionSet Resource = DiskEncryptionSet, KeyName = "diskEncryptionSetName", SegmentName = "diskEncryptionSets", - NamePattern = "" + NamePattern = "^[^_\\W][\\w-._]{0,79}(?; /** diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskRestorePoint.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskRestorePoint.tsp index b4e141e90cb3..e83d9e0da83c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskRestorePoint.tsp +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/DiskRestorePoint.tsp @@ -20,7 +20,7 @@ model DiskRestorePoint Resource = DiskRestorePoint, KeyName = "diskRestorePointName", SegmentName = "diskRestorePoints", - NamePattern = "" + NamePattern = "^[^_\\W][\\w-._]{0,259}(?; } @@ -54,7 +54,7 @@ interface DiskRestorePointsOps DiskRestorePoint, SegmentName = "diskRestorePoints", KeyName = "diskRestorePointName", - NamePattern = "" + NamePattern = "^[^_\\W][\\w-._]{0,259}(?, }>, CloudError diff --git a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json index c189bc912cc4..77b447c63c8e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json +++ b/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2024-03-02/DiskRP.json @@ -276,7 +276,8 @@ "in": "path", "description": "The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, underscore (_), hyphen (-), and dot (.). The maximum name length is 80 characters.", "required": true, - "type": "string" + "type": "string", + "pattern": "^[^_\\W][\\w-._]{0,79}(?