docs: def generate_url(self, remote_file):
          """Sign a remote file to distribute. The azure url format is https://myaccount.blob.core.windows.net/mycontainer/myblob.
           Args:
               remote_file(str): The blob that we want to sign.
          """
          parse_url = _parse_url(remote_file)
          key = self.storage_client.storage_accounts.list_keys(self.resource_group_name, parse_url.account).keys[0].value
          if parse_url.file_type == 'blob':
              bs = BlockBlobService(account_name=parse_url.account, account_key=key)
  
              sas_token = bs.generate_blob_shared_access_signature(parse_url.container_or_share_name,
                                                                   parse_url.file,
                                                                   permission=BlobPermissions.READ,
                                                                   expiry=datetime.utcnow() + timedelta(hours=24),
                                                                   )
              source_blob_url = bs.make_blob_url(container_name=parse_url.container_or_share_name,
                                                 blob_name=parse_url.file,
                                                 sas_token=sas_token)
              return source_blob_url
          elif parse_url.file_type == 'file':
              fs = FileService(account_name=parse_url.account, account_key=key)
              sas_token = fs.generate_file_shared_access_signature(share_name=parse_url.container_or_share_name,
                                                                   directory_name=parse_url.path,
                                                                   file_name=parse_url.file,
                                                                   permission=BlobPermissions.READ,
                                                                   expiry=datetime.utcnow() + timedelta(hours=24),
                                                                   )
              source_file_url = fs.make_file_url(share_name=parse_url.container_or_share_name,
                                                 directory_name=parse_url.path,
                                                 file_name=parse_url.file,
                                                 sas_token=sas_token)
              return source_file_url
          else:
              raise ValueError("This azure storage type is not valid. It should be blob or file.")