locations.ts 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. // Unfortunately this list is manually maintained as there's no (nice) automated way to get
  2. // data from Azure.
  3. export const locationMetadata = [
  4. {
  5. location: 'eastus',
  6. displayName: 'East US',
  7. supportsLogs: true,
  8. },
  9. {
  10. location: 'eastus2',
  11. displayName: 'East US 2',
  12. supportsLogs: true,
  13. },
  14. {
  15. location: 'southcentralus',
  16. displayName: 'South Central US',
  17. supportsLogs: true,
  18. },
  19. {
  20. location: 'westus2',
  21. displayName: 'West US 2',
  22. supportsLogs: true,
  23. },
  24. {
  25. location: 'westus3',
  26. displayName: 'West US 3',
  27. supportsLogs: true,
  28. },
  29. {
  30. location: 'australiaeast',
  31. displayName: 'Australia East',
  32. supportsLogs: true,
  33. },
  34. {
  35. location: 'southeastasia',
  36. displayName: 'Southeast Asia',
  37. supportsLogs: true,
  38. },
  39. {
  40. location: 'northeurope',
  41. displayName: 'North Europe',
  42. supportsLogs: true,
  43. },
  44. {
  45. location: 'uksouth',
  46. displayName: 'UK South',
  47. supportsLogs: true,
  48. },
  49. {
  50. location: 'westeurope',
  51. displayName: 'West Europe',
  52. supportsLogs: true,
  53. },
  54. {
  55. location: 'centralus',
  56. displayName: 'Central US',
  57. supportsLogs: true,
  58. },
  59. {
  60. location: 'northcentralus',
  61. displayName: 'North Central US',
  62. supportsLogs: true,
  63. },
  64. {
  65. location: 'westus',
  66. displayName: 'West US',
  67. supportsLogs: true,
  68. },
  69. {
  70. location: 'southafricanorth',
  71. displayName: 'South Africa North',
  72. supportsLogs: true,
  73. },
  74. {
  75. location: 'centralindia',
  76. displayName: 'Central India',
  77. supportsLogs: true,
  78. },
  79. {
  80. location: 'eastasia',
  81. displayName: 'East Asia',
  82. supportsLogs: true,
  83. },
  84. {
  85. location: 'japaneast',
  86. displayName: 'Japan East',
  87. supportsLogs: true,
  88. },
  89. {
  90. location: 'jioindiawest',
  91. displayName: 'Jio India West',
  92. supportsLogs: true,
  93. },
  94. {
  95. location: 'koreacentral',
  96. displayName: 'Korea Central',
  97. supportsLogs: true,
  98. },
  99. {
  100. location: 'canadacentral',
  101. displayName: 'Canada Central',
  102. supportsLogs: true,
  103. },
  104. {
  105. location: 'francecentral',
  106. displayName: 'France Central',
  107. supportsLogs: true,
  108. },
  109. {
  110. location: 'germanywestcentral',
  111. displayName: 'Germany West Central',
  112. supportsLogs: true,
  113. },
  114. {
  115. location: 'norwayeast',
  116. displayName: 'Norway East',
  117. supportsLogs: true,
  118. },
  119. {
  120. location: 'switzerlandnorth',
  121. displayName: 'Switzerland North',
  122. supportsLogs: true,
  123. },
  124. {
  125. location: 'uaenorth',
  126. displayName: 'UAE North',
  127. supportsLogs: true,
  128. },
  129. {
  130. location: 'brazilsouth',
  131. displayName: 'Brazil South',
  132. supportsLogs: true,
  133. },
  134. {
  135. location: 'centralusstage',
  136. displayName: 'Central US (Stage)',
  137. supportsLogs: true,
  138. },
  139. {
  140. location: 'eastusstage',
  141. displayName: 'East US (Stage)',
  142. supportsLogs: true,
  143. },
  144. {
  145. location: 'eastus2stage',
  146. displayName: 'East US 2 (Stage)',
  147. supportsLogs: true,
  148. },
  149. {
  150. location: 'northcentralusstage',
  151. displayName: 'North Central US (Stage)',
  152. supportsLogs: true,
  153. },
  154. {
  155. location: 'southcentralusstage',
  156. displayName: 'South Central US (Stage)',
  157. supportsLogs: true,
  158. },
  159. {
  160. location: 'westusstage',
  161. displayName: 'West US (Stage)',
  162. supportsLogs: true,
  163. },
  164. {
  165. location: 'westus2stage',
  166. displayName: 'West US 2 (Stage)',
  167. supportsLogs: true,
  168. },
  169. {
  170. location: 'asia',
  171. displayName: 'Asia',
  172. supportsLogs: true,
  173. },
  174. {
  175. location: 'asiapacific',
  176. displayName: 'Asia Pacific',
  177. supportsLogs: true,
  178. },
  179. {
  180. location: 'australia',
  181. displayName: 'Australia',
  182. supportsLogs: true,
  183. },
  184. {
  185. location: 'brazil',
  186. displayName: 'Brazil',
  187. supportsLogs: true,
  188. },
  189. {
  190. location: 'canada',
  191. displayName: 'Canada',
  192. supportsLogs: true,
  193. },
  194. {
  195. location: 'europe',
  196. displayName: 'Europe',
  197. supportsLogs: true,
  198. },
  199. {
  200. location: 'global',
  201. displayName: 'Global',
  202. supportsLogs: true,
  203. },
  204. {
  205. location: 'india',
  206. displayName: 'India',
  207. supportsLogs: true,
  208. },
  209. {
  210. location: 'japan',
  211. displayName: 'Japan',
  212. supportsLogs: true,
  213. },
  214. {
  215. location: 'uk',
  216. displayName: 'United Kingdom',
  217. supportsLogs: true,
  218. },
  219. {
  220. location: 'unitedstates',
  221. displayName: 'United States',
  222. supportsLogs: true,
  223. },
  224. {
  225. location: 'eastasiastage',
  226. displayName: 'East Asia (Stage)',
  227. supportsLogs: true,
  228. },
  229. {
  230. location: 'southeastasiastage',
  231. displayName: 'Southeast Asia (Stage)',
  232. supportsLogs: true,
  233. },
  234. {
  235. location: 'westcentralus',
  236. displayName: 'West Central US',
  237. supportsLogs: true,
  238. },
  239. {
  240. location: 'southafricawest',
  241. displayName: 'South Africa West',
  242. supportsLogs: true,
  243. },
  244. {
  245. location: 'australiacentral',
  246. displayName: 'Australia Central',
  247. supportsLogs: true,
  248. },
  249. {
  250. location: 'australiacentral2',
  251. displayName: 'Australia Central 2',
  252. supportsLogs: true,
  253. },
  254. {
  255. location: 'australiasoutheast',
  256. displayName: 'Australia Southeast',
  257. supportsLogs: true,
  258. },
  259. {
  260. location: 'japanwest',
  261. displayName: 'Japan West',
  262. supportsLogs: true,
  263. },
  264. {
  265. location: 'koreasouth',
  266. displayName: 'Korea South',
  267. supportsLogs: true,
  268. },
  269. {
  270. location: 'southindia',
  271. displayName: 'South India',
  272. supportsLogs: true,
  273. },
  274. {
  275. location: 'westindia',
  276. displayName: 'West India',
  277. supportsLogs: true,
  278. },
  279. {
  280. location: 'canadaeast',
  281. displayName: 'Canada East',
  282. supportsLogs: true,
  283. },
  284. {
  285. location: 'francesouth',
  286. displayName: 'France South',
  287. supportsLogs: true,
  288. },
  289. {
  290. location: 'germanynorth',
  291. displayName: 'Germany North',
  292. supportsLogs: true,
  293. },
  294. {
  295. location: 'norwaywest',
  296. displayName: 'Norway West',
  297. supportsLogs: true,
  298. },
  299. {
  300. location: 'switzerlandwest',
  301. displayName: 'Switzerland West',
  302. supportsLogs: true,
  303. },
  304. {
  305. location: 'ukwest',
  306. displayName: 'UK West',
  307. supportsLogs: true,
  308. },
  309. {
  310. location: 'uaecentral',
  311. displayName: 'UAE Central',
  312. supportsLogs: true,
  313. },
  314. {
  315. location: 'brazilsoutheast',
  316. displayName: 'Brazil Southeast',
  317. supportsLogs: true,
  318. },
  319. {
  320. location: 'chinaeast',
  321. displayName: 'China Eest',
  322. supportsLogs: true,
  323. },
  324. {
  325. location: 'chinaeast2',
  326. displayName: 'China Eest 2',
  327. supportsLogs: true,
  328. },
  329. {
  330. location: 'chinanorth',
  331. displayName: 'China North',
  332. supportsLogs: true,
  333. },
  334. {
  335. location: 'chinanorth2',
  336. displayName: 'China North 2',
  337. supportsLogs: true,
  338. },
  339. {
  340. location: 'chinanorth3',
  341. displayName: 'China North 3',
  342. supportsLogs: true,
  343. },
  344. ];
  345. export const logsSupportedLocationsKusto = locationMetadata
  346. .filter((v) => v.supportsLogs)
  347. .map((v) => `"${v.location}"`)
  348. .join(',');
  349. // Object, keyed by location ID
  350. export const locationDisplayNames: Record<string, string> = locationMetadata.reduce(
  351. (acc, location) => ({
  352. ...acc,
  353. [location.location]: location.displayName,
  354. }),
  355. {}
  356. );