-
Notifications
You must be signed in to change notification settings - Fork 233
Add schema validation for name
in azure.yaml and add name validity check in AZD
#5380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Fix #4638. This PR includes the following changes:
Added a regex pattern to the

name
field inazure.yaml.json
to ensure it only contains letters, numbers, underscores, and hyphens. Characters such as slashes, spaces, and other special symbols are not allowed. When editing, any invalid characters will be indicated with a red wavy underline as shown below:Added a validation check during

azd package
orazd deploy
commands to verify the validity of thename
; the operation will exit early if the name is invalid as shown below:@rajeshkamal5050 and @vhvb1989 for notification.