Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Container app] az containerapp compose create: Fix issue where the environment's location is not resolved from --location #28920

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
def create_containerapps_compose_environment(cmd,
name,
resource_group_name,
tags=None):
tags=None,
location=None):

return create_managed_environment(cmd,
name,
resource_group_name,
tags=tags)
tags=tags,
location=location)


def build_containerapp_from_compose_service(cmd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4817,7 +4817,8 @@ def create_containerapps_from_compose(cmd, # pylint: disable=R0914
managed_environment = create_containerapps_compose_environment(cmd,
managed_env_name,
env_rg,
tags=tags)
tags=tags,
location=location)

compose_yaml = load_yaml_file(compose_file_path)
parsed_compose_file = ComposeFile(compose_yaml)
Expand Down
Loading