You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"tests.verify(output, 'Hello World from API Management!')\n",
127
131
"\n",
128
132
"# 2) Issue requests to API Management with Azure Maps APIs\n",
129
-
"reqs.singleGet('/map/default/geocode?query=15127%20NE%2024th%20Street%20Redmond%20WA', msg = 'Calling Default Route API with SAS Token Auth. Expect 200.')\n",
130
-
"reqs.singleGet('/map/geocode?query=15127%20NE%2024th%20Street%20Redmond%20WA', msg = 'Calling Geocode v2 API with AAD Auth. Expect 200.')\n",
"output = reqs.singleGet('/map/default/geocode?query=15127%20NE%2024th%20Street%20Redmond%20WA', msg = 'Calling Default Route API with SAS Token Auth. Expect 200.')\n",
134
+
"tests.verify('address' in output, True)\n",
135
+
"\n",
136
+
"output = reqs.singleGet('/map/geocode?query=15127%20NE%2024th%20Street%20Redmond%20WA', msg = 'Calling Geocode v2 API with AAD Auth. Expect 200.')\n",
" {\"query\": \"?query=400 Broad St, Seattle, WA 98109&limit=3\"},\n",
134
142
" {\"query\": \"?query=One, Microsoft Way, Redmond, WA 98052&limit=3\"},\n",
@@ -137,6 +145,10 @@
137
145
" {\"query\": \"?query=Champ de Mars, 5 Avenue Anatole France, 75007 Paris, France&limit=1\"}\n",
138
146
" ]\n",
139
147
"}, msg = 'Calling Async Geocode Batch v1 API with Share Key Auth. Expect initial 202, then a 200 on the polling response', timeout=120, poll_interval=3)\n",
Copy file name to clipboardExpand all lines: samples/azure-maps/main.bicep
+15-9Lines changed: 15 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
@description('Location to be used for resources. Defaults to the resource group location')
6
6
paramlocationstring = resourceGroup().location
7
7
8
-
parammapsLocationstring = 'eastus'// Azure Maps is only available in certain regions, adjust as needed
8
+
parammapsLocationstring = 'eastus'// Azure Maps is only available in certain regions: https://learn.microsoft.com/en-us/azure/azure-maps/creator-geographic-scope#geographic-and-regional-mapping
9
9
10
10
@description('The unique suffix to append. Defaults to a unique string based on subscription and resource group IDs.')
@@ -155,35 +161,35 @@ module apisModule '../../shared/bicep/modules/apim/v1/api.bicep' = [for api in a
155
161
]
156
162
}]
157
163
158
-
// Grant APIM managed identity access to Azure Maps, here are the RBAC roles you might need: https://learn.microsoft.com/en-us/azure/azure-maps/azure-maps-authentication#picking-a-role-definition
164
+
// Grant APIM managed identity Azure Maps Seaarch and Render Data Reader role to Azure Maps
0 commit comments