Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
StrawnSC committed Jun 8, 2022
1 parent b6caad0 commit eefaa8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/containerapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release History

0.3.7
++++++
* 'az containerapp env create': fixed bug where "--internal-only" didn't work

0.3.6
++++++
Expand Down
3 changes: 1 addition & 2 deletions src/containerapp/azext_containerapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit eefaa8e

Please sign in to comment.