code: def _query_account_rg(cli_ctx, account_name):
      
      scf = get_mgmt_service_client(cli_ctx, CUSTOM_MGMT_STORAGE)
      acc = next((x for x in scf.storage_accounts.list() if x.name == account_name), None)
      if acc:
          from msrestazure.tools import parse_resource_id
          return parse_resource_id(acc.id)['resource_group'], scf
      raise ValueError("Storage account '{}' not found.".format(account_name))
docs: Query the storage account's resource group, which the mgmt sdk requires.