Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Last active May 13, 2021 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Wesley-Lomax/ed3847969da2b465c3115916e240b8fe to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/ed3847969da2b465c3115916e240b8fe to your computer and use it in GitHub Desktop.
Update all regions of the Azure Calculator to the specified region
//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
//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