Last active
May 13, 2021 10:00
-
-
Save Wesley-Lomax/ed3847969da2b465c3115916e240b8fe to your computer and use it in GitHub Desktop.
Update all regions of the Azure Calculator to the specified region
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Allowed Azure Regions | |
asia-pacific-east | |
asia-pacific-southeast | |
australia-central | |
australia-central-2 | |
australia-east | |
australia-southeast | |
brazil-south | |
canada-central | |
canada-east | |
central-india | |
south-india | |
west-india | |
europe-north | |
europe-west | |
france-central | |
france-south | |
germany-central | |
germany-north | |
germany-northeast | |
germany-west-central | |
japan-east | |
japan-west | |
korea-central | |
korea-south | |
south-africa-north | |
south-africa-west | |
united-kingdom-south | |
united-kingdom-west | |
us-central | |
us-east | |
us-east-2 | |
us-north-central | |
us-south-central | |
us-west-central | |
us-west | |
us-west-2 | |
usgov-arizona | |
usgov-iowa | |
usgov-texas | |
usgov-virginia | |
switzerland-north | |
switzerland-west | |
uae-central | |
uae-north | |
norway-east | |
norway-west |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Set all regions to North Europe | |
document.querySelectorAll('[aria-label="Region"]').forEach((select) => | |
{ | |
select.value = "europe-north", | |
select.dispatchEvent(new Event("change", {bubbles: true})) | |
}); | |
//Set all regions to UK South | |
document.querySelectorAll('[aria-label="Region"]').forEach((select) => | |
{ | |
select.value = "united-kingdom-south", | |
select.dispatchEvent(new Event("change", {bubbles: true})) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment