Skip to content
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

Azure-redeploy-fixes-upstream #13058

Merged

Conversation

violetbrina
Copy link
Contributor

@violetbrina violetbrina commented May 16, 2023

We've had to do a redeploy of our hail batch instance on Azure. This PR resolves/clarifies two issues we encountered.

  1. Storage Account Name Uniqueness

Due to Azure's restrictions on storage account naming (mainly that names must be globally unique) the redeploy did not succeed.

This is because the resource group name (we chose to reuse hail) is possible under a new subscription, but the generated storage account names were therefore identical to our previous stack.

I've added in an argument called storage_account_suffix to account for this issue. It can be set to any arbitrary string that complies with Azure's storage account naming scheme in order to avoid naming conflicts in the future.

While the option remains to simply choose a novel resource group name this is not enforced by Azure and anyone deploying a stack similarly named to someone else would not know until the terraform apply stage that the name would not work.

  1. Mysql Flexible Server Zones

The only other issue is that the zone argument for the mysql flexible server is no longer always valid depending on your compute region. We needed to comment it out for a successful deploy in Australia East.

The comment that has been added we hope will be helpful for others in future.

Copy link
Contributor

@daniel-goldstein daniel-goldstein left a comment

Choose a reason for hiding this comment

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

Thank you for these fixes!

@danking danking merged commit a2b070f into hail-is:main May 16, 2023
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.

3 participants