Auto-Increment Resource Instance
- Dominant language
- C#
- Stars
- 604
- Forks
- 1.3k
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 3
Description
**Tool version**
Azure Naming Tool v5.0.2
**Describe the bug**
With the Auto-Increment Resource Instance set to on, when you generate a new name, it increments not only the Instance (1 - 5 digits) but also numbers in the name. I have a free form field that I named description that can contain numbers. When the name for example ca-p-dc-app-01-1 already exists, it increments it to ca-p-dc-app-02-2 when it should increment it to ca-p-dc-app-01-2
**To Reproduce**
Steps to reproduce the behavior:
1. Set the Auto-Increment Resource Instance set to On
2. Go to Generate
4. Fill in all the field but make sure that the second to last field ends with a number. Use the SAME number as the one for the Instance
5. Click on generate
6. Now enter the same information to generate a second name
7. Check the generated names log
.
**Expected behavior**
For example ca-p-dc-app-01-1 already exists, it increments it to ca-p-dc-app-02-2 when it should increment it to ca-p-dc-app-01-2
1. Set Auto-Increment Resource Instance set to On
**Installation Method**
Azure naming tool is installed as a container in Google cloud
**Additional context**
Contributor guide
Research direction
Reproduce the issue from the Generate screen with Auto-Increment Resource Instance enabled and an earlier field ending in the same number as the instance. Trace the name-generation path and verify that only the resource instance changes; done means a name such as ca-p-dc-app-01-1 becomes ca-p-dc-app-01-2 rather than changing the earlier 01.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100