Forum Discussion
David_Bond
2 years agoProfessor
The script will:
- Find Resources in the ResourceGroup with the Id set in the appsettings.json.
- Note those with a display name ending with #1 (e.g “xxx#1”) that have a “twin” (e.g. “xxx”)
- Prompt the user to delete the duplicate (the one ending in “#1”)
- ONLY IF the user types Capital Y” on the keyboard (deliberate safety feature for people that didn’t read the code properly!) will the device be deleted.
- Repeat for all such devices
- You can stop the code with Ctrl+C.
Related Content
- 6 months ago
- 3 years ago
- 7 months agoAnonymous