The validation rule for Shared Image gallery and Image definition names in the Documentation page may need to be updated. The current pattern mentioned in the document is '^[^_\W][\w-._]{0,79}(?<![-.])$ which still allows dashes. My tests show that the right pattern would be ^[^_\W][\w_._]{0,79}(?<![-.])$ .
Please advise.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@benhurjoel
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.
@olayemio
Can you please check and add your comments on this doc update request as applicable.
We will make the changes in the error messages of our API and once they have been updated, I will update the error message.
Thank you @VikasPullagura-MSFT and @olayemio