question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validation of resource group name has a bug!

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

> az group show -g '""'
validation error: Parameter 'resource_group_name' must have length greater than 1.

Resource group name can be one character. The message misleads users.

To Reproduce

Expected behavior

Environment summary

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zhoxing-mscommented, Jan 11, 2021

This is a issue related to msrest, I have opened a issue on their repo: Azure/msrest-for-python#219

0reactions
RakeshMohanMSFTcommented, Jul 19, 2022

@qwordy This is fixed with valid error message now. az group show -g β€˜β€œβ€β€™ (InvalidResourceGroup) The provided resource group name β€˜β€™β€˜β€™ has these invalid characters: β€˜β€™β€˜β€™. The name can only be a letter, digit, β€˜-’, β€˜.’, β€˜(’, β€˜)’ or β€˜β€˜. Code: InvalidResourceGroup Message: The provided resource group name β€˜β€™β€™β€™ has these invalid characters: β€˜β€™β€˜β€™. The name can only be a letter, digit, β€˜-’, β€˜.’, β€˜(’, β€˜)’ or '’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG:: Azure Resource Groups Validation Rules NOT ... - MSDN
I have been working with this naming for almost two years, should you expect I start recreating resourceGroups and move resources to otherΒ ......
Read more >
BUG:: Azure Resource Groups Validation Rules NOT WORKING
Since we can't edit the name of created resource group, you may need to create a new resource group and move the resources...
Read more >
Azure Resource Group Deployment
I am using "Azure Resource Group Deployment" task to deploy App Services in Azure via ARM template. The problem is with "Deployment Mode"....
Read more >
Bug #1690369 β€œOS::Heat::ResourceGroup validation failed if ...
The image name was just an example. If you for example distribute fixed IPs or some other parameters which is verified in the...
Read more >
Troubleshoot Terraform - HashiCorp Developer
Run terraform validate in your terminal. The output contains a cycle error that highlights a mutual dependency between two security group resources.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found