From eefaa8e6976b54ed046605ac73601fdb3b78f4e0 Mon Sep 17 00:00:00 2001 From: Silas Strawn Date: Wed, 8 Jun 2022 13:50:22 -0700 Subject: [PATCH] fix bug --- src/containerapp/HISTORY.rst | 1 + src/containerapp/azext_containerapp/custom.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 821596abbcf..a69f765e906 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -5,6 +5,7 @@ Release History 0.3.7 ++++++ +* 'az containerapp env create': fixed bug where "--internal-only" didn't work 0.3.6 ++++++ diff --git a/src/containerapp/azext_containerapp/custom.py b/src/containerapp/azext_containerapp/custom.py index ec3545fcbfa..67885a6bc2a 100644 --- a/src/containerapp/azext_containerapp/custom.py +++ b/src/containerapp/azext_containerapp/custom.py @@ -807,7 +807,6 @@ def create_managed_environment(cmd, managed_env_def = ManagedEnvironmentModel managed_env_def["location"] = location - managed_env_def["properties"]["internalLoadBalancerEnabled"] = False managed_env_def["properties"]["appLogsConfiguration"] = app_logs_config_def managed_env_def["tags"] = tags managed_env_def["properties"]["zoneRedundant"] = zone_redundant @@ -835,7 +834,7 @@ def create_managed_environment(cmd, if internal_only: if not infrastructure_subnet_resource_id: raise ValidationError('Infrastructure subnet resource ID needs to be supplied for internal only environments.') - managed_env_def["properties"]["internalLoadBalancerEnabled"] = True + managed_env_def["properties"]["vnetConfiguration"]["internal"] = True try: r = ManagedEnvironmentClient.create(