Azure special characters regex contains fault ones but i cant find out which ones

158 Views Asked by At

I am trying to make a regex for the azure virtual machines admin passwords But it contains fault ones and the errors don't specify which ones are the fault ones and also on the azure portal there is no information on which characters you cant use

this is the regex:

[^!@$#%^&*()_+\-=\[\]{};'':"\\|,.<>\/? ]
1

There are 1 best solutions below

0
On BEST ANSWER

After a Microsoft Support ticket, the Microsoft support told me that [\W_] should be what i am trying to achieve. it isn't perfect but it seems to work for now.