From 91b538b8d1943eb9b978458afacf98d820fb1fec Mon Sep 17 00:00:00 2001
From: "Aayush D.C Dangi" <89606048+dcaayushd@users.noreply.github.com>
Date: Sun, 24 May 2026 16:57:48 +0545
Subject: [PATCH] fix: escape invalid \W escape sequence in generated model
docstrings across compute and workloads SDKs
---
.../azure-mgmt-compute/azure/mgmt/compute/models/_models.py | 6 +++---
.../azure/mgmt/computebulkactions/models/_models.py | 2 +-
.../azure/mgmt/computefleet/models/_models.py | 2 +-
.../azure/mgmt/containerservice/models/_models.py | 2 +-
.../azure/mgmt/workloads/models/_models_py3.py | 4 ++--
.../mgmt/workloadssapvirtualinstance/models/_models.py | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py
index 44076a4889dc..e692d5a9294a 100644
--- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py
+++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py
@@ -12582,7 +12582,7 @@ class OSProfile(_Model):
characters
**Minimum-length (Linux):** 6 characters
**Max-length (Windows):**
123 characters
**Max-length (Linux):** 72 characters
**Complexity
requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
-
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
+
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see `How to reset the Remote Desktop service or its login
@@ -12692,7 +12692,7 @@ class OSProfileProvisioningData(_Model):
characters
**Minimum-length (Linux):** 6 characters
**Max-length (Windows):**
123 characters
**Max-length (Linux):** 72 characters
**Complexity
requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
-
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
+
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see `How to reset the Remote Desktop service or its login
@@ -23847,7 +23847,7 @@ class VirtualMachineScaleSetOSProfile(_Model):
characters
**Minimum-length (Linux):** 6 characters
**Max-length (Windows):**
123 characters
**Max-length (Linux):** 72 characters
**Complexity
requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
-
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
+
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see `How to reset the Remote Desktop service or its login
diff --git a/sdk/computebulkactions/azure-mgmt-computebulkactions/azure/mgmt/computebulkactions/models/_models.py b/sdk/computebulkactions/azure-mgmt-computebulkactions/azure/mgmt/computebulkactions/models/_models.py
index 22ed2aaf70a4..80d12fb88fae 100644
--- a/sdk/computebulkactions/azure-mgmt-computebulkactions/azure/mgmt/computebulkactions/models/_models.py
+++ b/sdk/computebulkactions/azure-mgmt-computebulkactions/azure/mgmt/computebulkactions/models/_models.py
@@ -2723,7 +2723,7 @@ class OSProfile(_Model):
characters
**Minimum-length (Linux):** 6 characters
**Max-length (Windows):**
123 characters
**Max-length (Linux):** 72 characters
**Complexity
requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
-
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
+
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see `How to reset the Remote Desktop service or its login
diff --git a/sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models/_models.py b/sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models/_models.py
index 4059179cc9c2..0b38e357973c 100644
--- a/sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models/_models.py
+++ b/sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models/_models.py
@@ -3972,7 +3972,7 @@ class VirtualMachineScaleSetOSProfile(_Model):
**Max-length (Windows):** 123 characters
**Max-length
(Linux):** 72 characters
**Complexity requirements:** 3 out of 4
conditions below need to be fulfilled
Has lower characters
Has upper
- characters
Has a digit
Has a special character (Regex match [\W_])
+ characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\",
\"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\",
\"Password22\", \"iloveyou!\"
For resetting the password, see `How to
diff --git a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models/_models.py b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models/_models.py
index 81a3d7f70f96..6f66dd1c77c5 100644
--- a/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models/_models.py
+++ b/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models/_models.py
@@ -11102,7 +11102,7 @@ class ManagedClusterWindowsProfile(_Model):
"""Specifies the password of the administrator account.
**Minimum-length:** 8 characters
**Max-length:** 123 characters
**Complexity requirements:** 3 out of 4
conditions below need to be fulfilled
Has lower characters
Has upper characters
- Has a digit
Has a special character (Regex match [\W_])
**Disallowed values:**
+ Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:**
\"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\",
\"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"."""
license_type: Optional[Union[str, "_models.LicenseType"]] = rest_field(
diff --git a/sdk/workloads/azure-mgmt-workloads/azure/mgmt/workloads/models/_models_py3.py b/sdk/workloads/azure-mgmt-workloads/azure/mgmt/workloads/models/_models_py3.py
index 1fcc745d36bc..37be4330ae34 100644
--- a/sdk/workloads/azure-mgmt-workloads/azure/mgmt/workloads/models/_models_py3.py
+++ b/sdk/workloads/azure-mgmt-workloads/azure/mgmt/workloads/models/_models_py3.py
@@ -2906,7 +2906,7 @@ class OSProfile(_serialization.Model):
characters :code:`
`:code:`
` **Max-length (Linux):** 72 characters
:code:`
`:code:`
` **Complexity requirements:** 3 out of 4 conditions below need to be
fulfilled :code:`
` Has lower characters :code:`
`Has upper characters :code:`
` Has a
- digit :code:`
` Has a special character (Regex match [\W_]) :code:`
`:code:`
`
+ digit :code:`
` Has a special character (Regex match [\\W_]) :code:`
`:code:`
`
**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word",
"pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
`:code:`
` For
resetting the password, see `How to reset the Remote Desktop service or its login password in a
@@ -2951,7 +2951,7 @@ def __init__(
characters :code:`
`:code:`
` **Max-length (Linux):** 72 characters
:code:`
`:code:`
` **Complexity requirements:** 3 out of 4 conditions below need to be
fulfilled :code:`
` Has lower characters :code:`
`Has upper characters :code:`
` Has a
- digit :code:`
` Has a special character (Regex match [\W_]) :code:`
`:code:`
`
+ digit :code:`
` Has a special character (Regex match [\\W_]) :code:`
`:code:`
`
**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word",
"pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
`:code:`
` For
resetting the password, see `How to reset the Remote Desktop service or its login password in a
diff --git a/sdk/workloads/azure-mgmt-workloadssapvirtualinstance/azure/mgmt/workloadssapvirtualinstance/models/_models.py b/sdk/workloads/azure-mgmt-workloadssapvirtualinstance/azure/mgmt/workloadssapvirtualinstance/models/_models.py
index 99f1ed135fe4..bbd914664c0a 100644
--- a/sdk/workloads/azure-mgmt-workloadssapvirtualinstance/azure/mgmt/workloadssapvirtualinstance/models/_models.py
+++ b/sdk/workloads/azure-mgmt-workloadssapvirtualinstance/azure/mgmt/workloadssapvirtualinstance/models/_models.py
@@ -1866,7 +1866,7 @@ class OSProfile(_model_base.Model):
characters
**Minimum-length (Linux):** 6 characters
**Max-length (Windows):**
123 characters
**Max-length (Linux):** 72 characters
**Complexity
requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
-
Has upper characters
Has a digit
Has a special character (Regex match [\W_])
+
Has upper characters
Has a digit
Has a special character (Regex match [\\W_])
**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
For resetting the password, see `How to reset the Remote Desktop service or its login