Skip to content

Remove hyphens from SHM and SRE names#1650

Merged
craddm merged 6 commits into
alan-turing-institute:developfrom
craddm:reject-hyphen
Oct 20, 2023
Merged

Remove hyphens from SHM and SRE names#1650
craddm merged 6 commits into
alan-turing-institute:developfrom
craddm:reject-hyphen

Conversation

@craddm

@craddm craddm commented Oct 19, 2023

Copy link
Copy Markdown
Contributor

✅ Checklist

  • You have given your pull request a meaningful title (e.g. Enable foobar integration rather than 515 foobar).
  • You are targeting the appropriate branch. If you're not certain which one this is, it should be develop.
  • Your branch is up-to-date with the target branch (it probably was when you started, but it may have changed since then).
  • You have marked this pull request as a draft and added '[WIP]' to the title if needed (if you're not yet ready to merge).
  • You have formatted your code using appropriate automated tools (for example ./tests/AutoFormat_Powershell.ps1 -TargetPath <path to file or directory> for Powershell).

⤴️ Summary

Checks for hyphens in SHM and SRE names when creating storage accounts. Hyphens are not allowed in storage account names. It removes them if found, and prints a warning message, but then continues deploying.

🌂 Related issues

Closes #799

🔬 Tests

Deployed an SRE with a hyphen in the name in the config.

@JimMadge JimMadge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@craddm
craddm merged commit c7a6b6a into alan-turing-institute:develop Oct 20, 2023
@craddm
craddm deleted the reject-hyphen branch October 20, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix hyphens in SRE name

2 participants