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..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}(?; /** @@ -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..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}(?; /** @@ -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..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}(?; /** @@ -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/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/ComputeDisk/Snapshot.tsp b/specification/compute/resource-manager/Microsoft.Compute/Compute/ComputeDisk/Snapshot.tsp index 92998ca8398e..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}(?; /** @@ -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..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 @@ -274,9 +274,10 @@ { "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" + "type": "string", + "pattern": "^[^_\\W][\\w-._]{0,79}(?