diff --git a/src/containerapp/azext_containerapp/_utils.py b/src/containerapp/azext_containerapp/_utils.py index 6caca7d971c..298611915d1 100644 --- a/src/containerapp/azext_containerapp/_utils.py +++ b/src/containerapp/azext_containerapp/_utils.py @@ -1516,9 +1516,6 @@ def validate_environment_location(cmd, location): except Exception as e: # pylint: disable=broad-except raise ValidationError("You cannot create a Containerapp environment in location {}. List of eligible locations: {}.".format(location, allowed_locs)) from e - if not location: - logger.warning("Creating environment on location %s.", res_locations[0]) - return res_locations[0] return location