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

Handle unsupported EventGrid regions #764

Merged
merged 8 commits into from
Jul 9, 2024
Prev Previous commit
Next Next commit
Fix inline if block
  • Loading branch information
flanakin committed Jul 5, 2024
commit ee6a05dd752d386c61d18a5e0dc265f616f50f90
2 changes: 1 addition & 1 deletion src/templates/finops-hub/modules/hub.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var eventGridContributorRoleId = '1e241071-0855-49ea-94dc-649edcd759de'

// Find a fallback region for EventGrid
var eventGridAllowedLocations = ['eastus2','westus3','northeurope','westeurope','southeastasia','eastasia','southcentralus','uaenorth','eastus','centralus','westus2','uksouth','italynorth','australiasoutheast','brazilsouth','ukwest','northcentralus','centralindia','japaneast','francecentral','canadacentral','australiaeast','japanwest','canadaeast','southindia','koreacentral','koreasouth','switzerlandnorth','germanywestcentral','norwayeast','swedencentral','polandcentral','israelcentral']
var eventGridLocation = contains(eventGridAllowedLocations, location) ? location : (contains(eventGridAllowedLocations, fallbackEventGridLocation) == eventGridAllowedLocations[0])
var eventGridLocation = contains(eventGridAllowedLocations, location) ? location : (contains(eventGridAllowedLocations, fallbackEventGridLocation) ? fallbackEventGridLocation : eventGridAllowedLocations[0])

// The last segment of the telemetryId is used to identify this module
var telemetryId = '00f120b5-2007-6120-0000-40b000000000'
Expand Down
Loading