def _MakeAzureCommandSuffix(account_name, account_key, for_cli):
  """ This function returns a suffix for Azure command.

  Args:
    account_name: The name of the Azure storage account.
    account_key: The key to access the account.
    for_cli: If true, the suffix can be passed to the Azure cli tool; if false,
      the suffix created will be used to call our own test script for api-based
      tests.

  returns:
    A string represents a command suffix.
  """

  if for_cli:
    return (' -a %s -k %s') % (account_name, account_key)
  else:
    return (' --azure_account=%s --azure_key=%s') % (account_name, account_key)