def METHOD_NAME(cmd, namespace):
    name = _get_app_name_from_namespace(namespace)
    if not name or not namespace.service or not namespace.resource_group:
        return
    client = cf_spring_cloud_20220101preview(cmd.cli_ctx)
    deployment = _get_active_deployment(client, namespace.resource_group, namespace.service, name)
    if not deployment:
        raise InvalidArgumentValueError(NO_PRODUCTION_DEPLOYMENT_SET_ERROR)