Skip to content

Commit daa8f5e

Browse files
Add support for App Gateway VNet & minor formatting
1 parent c7b9ce9 commit daa8f5e

File tree

11 files changed

+11
-12
lines changed

11 files changed

+11
-12
lines changed

samples/authX-pro/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"# Create the notebook helper with JWT support\n",
4141
"sample_folder = 'authX-pro'\n",
4242
"rg_name = get_infra_rg_name(deployment, index)\n",
43-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
43+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
4444
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, True, index = index, apim_sku = apim_sku)\n",
4545
"\n",
4646
"# Define the APIs and their operations and policies\n",

samples/authX/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"# Create the notebook helper with JWT support\n",
4141
"sample_folder = 'authX'\n",
4242
"rg_name = get_infra_rg_name(deployment, index)\n",
43-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
43+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
4444
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, True, index = index, apim_sku = apim_sku)\n",
4545
"\n",
4646
"# Define the APIs and their operations and policies\n",

samples/azure-maps/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"\n",
4444
"sample_folder = 'azure-maps'\n",
4545
"rg_name = get_infra_rg_name(deployment, index)\n",
46-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
46+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
4747
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, index = index, apim_sku = apim_sku)\n",
4848
"azure_maps_url = 'https://atlas.microsoft.com'\n",
4949
"\n",

samples/general/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"\n",
4040
"sample_folder = 'general'\n",
4141
"rg_name = get_infra_rg_name(deployment, index)\n",
42-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
42+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
4343
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, index = index, apim_sku = apim_sku)\n",
4444
"\n",
4545
"# Define the APIs and their operations and policies\n",

samples/load-balancing/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"\n",
4040
"sample_folder = 'load-balancing'\n",
4141
"rg_name = get_infra_rg_name(deployment, index)\n",
42-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE]\n",
42+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE]\n",
4343
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, index = index, apim_sku = apim_sku)\n",
4444
"\n",
4545
"# Define the APIs and their operations and policies\n",

samples/oauth-3rd-party/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"# Create the notebook helper with JWT support\n",
5151
"sample_folder = 'oauth-3rd-party'\n",
5252
"rg_name = get_infra_rg_name(deployment, index)\n",
53-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
53+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
5454
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, True, index = index, apim_sku = apim_sku)\n",
5555
"\n",
5656
"# OAuth credentials (required environment variables)\n",

samples/secure-blob-access/create.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"# Create the notebook helper with JWT support\n",
4343
"sample_folder = 'secure-blob-access'\n",
4444
"rg_name = get_infra_rg_name(deployment, index)\n",
45-
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
45+
"supported_infras = [INFRASTRUCTURE.AFD_APIM_PE, INFRASTRUCTURE.APIM_ACA, INFRASTRUCTURE.APPGW_APIM, INFRASTRUCTURE.APPGW_APIM_PE, INFRASTRUCTURE.SIMPLE_APIM]\n",
4646
"nb_helper = utils.NotebookHelper(sample_folder, rg_name, rg_location, deployment, supported_infras, True, index = index, apim_sku = apim_sku)\n",
4747
"\n",
4848
"# Blob storage configuration\n",

shared/bicep/modules/apim/v1/apim.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ output id string = apimService.id
143143
output name string = apimService.name
144144
output principalId string = apimService.identity.principalId
145145
output gatewayUrl string = apimService.properties.gatewayUrl
146-
output privateIpAddresses array = apimService.properties.privateIPAddresses
146+
output privateIpAddresses array = apimService.properties.privateIPAddresses ?? []

shared/python/console.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ def _print_log(message: str, prefix: str = '', color: str = '', output: str = ''
156156

157157
def print_command(cmd: str = '') -> None:
158158
"""Print a command message."""
159-
# Two spaces after the cog as opposed to one elsewhere are intentional for formatting. Please don't change this.
160-
_print_log(cmd, '⚙️ ', BOLD_B, blank_above = True, blank_below = True, level = logging.INFO)
159+
_print_log(cmd, '⚙️ ', BOLD_B, blank_above = True, blank_below = True, level = logging.INFO)
161160

162161
def print_error(msg: str, output: str = '', duration: str = '') -> None:
163162
"""Print an error message."""

shared/python/infrastructures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def deploy_infrastructure(self, is_update: bool = False) -> utils.Output:
232232

233233
try:
234234
os.chdir(infra_dir)
235-
print_plain(f'📁 Changed working directory to: {infra_dir}')
235+
print_plain(f'📁 Changed working directory to: {infra_dir}', blank_above = True)
236236

237237
# Prepare deployment parameters and run directly to avoid path detection issues
238238
bicep_parameters_format = {

0 commit comments

Comments
 (0)