Skip to content

Commit c62e458

Browse files
simonkurtz-MSFTanotherRedbeard
authored andcommitted
Fix policy XML read
1 parent 8d3c32a commit c62e458

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

samples/azure-maps/create.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@
3232
"rg_name = utils.get_infra_rg_name(deployment, index)\n",
3333
"supported_infrastructures = [INFRASTRUCTURE.SIMPLE_APIM, INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA] # ENTER SUPPORTED INFRASTRUCTURES HERE, e.g., [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.AFD_APIM_FE]\n",
3434
"utils.validate_infrastructure(deployment, supported_infrastructures)\n",
35+
"sample_folder = \"azure-maps\"\n",
3536
"\n",
3637
"# 3) Define the APIs and their operations and policies\n",
3738
"\n",
3839
"# Policies\n",
3940
"# Named values must be set up a bit differently as they need to have two surrounding curly braces\n",
40-
"map_async_geocode_batch_v1_keyauth_post_xml = utils.read_policy_xml('./map_async_geocode_batch_v1_keyauth_post.xml')\n",
41-
"map_default_route_v2_aad_get_xml = utils.read_policy_xml('./map_default_route_v2_aad_get.xml')\n",
42-
"map_geocode_v2_aad_get_xml = utils.read_policy_xml('./map_geocode_v2_aad_get.xml')\n",
41+
"map_async_geocode_batch_v1_keyauth_post_xml = utils.read_policy_xml('map_async_geocode_batch_v1_keyauth_post.xml', sample_name = sample_folder)\n",
42+
"map_default_route_v2_aad_get_xml = utils.read_policy_xml('map_default_route_v2_aad_get.xml', sample_name = sample_folder)\n",
43+
"map_geocode_v2_aad_get_xml = utils.read_policy_xml('map_geocode_v2_aad_get.xml', sample_name = sample_folder)\n",
4344
"\n",
4445
"# Map API \n",
4546
"mapApi_v2_default_get = GET_APIOperation2('get-default-route','Get default route','/default/*','This is the default route that will allow all requests to go through to the backend api',map_default_route_v2_aad_get_xml)\n",

0 commit comments

Comments
 (0)