Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions src/containerapp/azext_containerapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ def create_containerapp(cmd,
if not managed_env_info:
raise ValidationError("The environment '{}' does not exist. Specify a valid environment".format(managed_env))

while not no_wait and "properties" in managed_env_info and managed_env_info["properties"]["provisioningState"].lower() in ["inprogress", "updating"]:
Comment thread
p-bouchon marked this conversation as resolved.
Outdated
logger.info("Waiting for environment provisioning to finish before creating container app")
time.sleep(10)
Comment thread
p-bouchon marked this conversation as resolved.
Outdated
managed_env_info = ManagedEnvironmentClient.show(cmd=cmd, resource_group_name=managed_env_rg, name=managed_env_name)

location = managed_env_info["location"]
_ensure_location_allowed(cmd, location, CONTAINER_APPS_RP, "containerApps")

Expand Down
Loading