Skip to content

Commit cb273a3

Browse files
Add supported infrastructure check
1 parent 7127bb4 commit cb273a3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

samples/_TEMPLATE/create.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
"\n",
6161
"# 2) Service-defined parameters (please do not change these)\n",
6262
"rg_name = utils.get_infra_rg_name(deployment, index)\n",
63+
"supported_infrastructures = [] # ENTER SUPPORTED INFRASTRUCTURES HERE, e.g., [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.AFD_APIM_FE]\n",
64+
"utils.validate_infrastructure(deployment, supported_infrastructures)\n",
6365
"\n",
6466
"# 3) Define the APIs and their operations and policies\n",
6567
"\n",

samples/general/create.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
"\n",
5252
"# 2) Service-defined parameters (please do not change these)\n",
5353
"rg_name = utils.get_infra_rg_name(deployment, index)\n",
54+
"supported_infrastructures = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.SIMPLE_APIM]\n",
55+
"utils.validate_infrastructure(deployment, supported_infrastructures)\n",
5456
"\n",
5557
"# 3) Define the APIs and their operations and policies\n",
5658
"\n",

samples/load-balancing/create.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
"\n",
6565
"# 2) Service-defined parameters (please do not change these)\n",
6666
"rg_name = utils.get_infra_rg_name(deployment, index)\n",
67+
"supported_infrastructures = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA]\n",
68+
"utils.validate_infrastructure(deployment, supported_infrastructures)\n",
6769
"\n",
6870
"# 3) Define the APIs and their operations and policies\n",
6971
"\n",

0 commit comments

Comments
 (0)