text: import json, subprocess
  from ..... pyaz_utils import get_cli_name, get_params
  
  
  def list(resource_group, namespace_name, hybrid_connection_name, name):
      params = get_params(locals())   
      command = "az relay hyco authorization-rule keys list " + params
      print(command)
      output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      stdout =  output.stdout.decode("utf-8")
      stderr = output.stderr.decode("utf-8")
      if stdout:
          return json.loads(stdout)
          print(stdout)
      else:
          raise Exception(stderr)
          print(stderr)  
  
  def renew(resource_group, namespace_name, hybrid_connection_name, name, key, key_value=None):
      params = get_params(locals())   
      command = "az relay hyco authorization-rule keys renew " + params
      print(command)
      output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      stdout =  output.stdout.decode("utf-8")
      stderr = output.stderr.decode("utf-8")
      if stdout:
          return json.loads(stdout)
          print(stdout)
      else:
          raise Exception(stderr)
          print(stderr)  
  