Created two table entities to query the top entity that is BlueMarker in myTable.

You can get the Top row by http URL, via filtering your table with top parameter:
Refer here
Run this command to get Top1 table entity per page :
List_entities > Lists the entities in the table
from azure.data.tables import TableClient
table_client = TableClient.from_connection_string(conn_str="xxxxDefaultEndpointsProtocol=https;AccountName=<AccountName>;AccountKey=<Accountkey>==;EndpointSuffix=core.windows.net", table_name="<myTable>")
for entity in table_client.list_entities(results_per_page=1):
print(entity)

Top entity is returned in the output.

- BlueMarker is the Top entity of the table.
- After you know the Topmost entity in your table, you can get that specific entity by filtering out its
PartitionKey and RowKey with get_entity as per the below code.
If you need only a specific Top entity you can use the following code:
from azure.data.tables import TableClient
from azure.data.tables import TableServiceClient
table_client = TableClient.from_connection_string(conn_str="xxxxxEndpointsProtocol=https;AccountName=<AccountName>;AccountKey=<accountkey>==;EndpointSuffix=core.windows.net", table_name="<myTable>")
task = table_client.get_entity( 'BlueMarker', 'RowID')
print(task)
Output:

Only the top Entity BlueMarker is printed in the output by filtering with Partition Key and Row Key.
You can use this code to get the topmost entity > by combining get-entity and list_entity command. Refer below:-
from select import select
from tkinter import TOP
from azure.data.tables import TableClient
from azure.data.tables import TableServiceClient
table_client = TableClient.from_connection_string(conn_str="xxxxxEndpointsProtocol=https;AccountName=<AccountName";AccountKey=<AccountKey>==;EndpointSuffix=core.windows.net", table_name="<myTable>")
for entity in table_client.list_entities(results_per_page=1, select=["PartitionKey", "RowKey"] ):
entity.task = table_client.get_entity( 'BlueMarker', 'RowID')
else:
print(entity.task)
Output:

You will get the Topmost entity:
Without else-
from select import select
from tkinter import TOP
from azure.data.tables import TableClient
from azure.data.tables import TableServiceClient
table_client = TableClient.from_connection_string(conn_str="xxxxxEndpointsProtocol=https;AccountName=<AccountName>;AccountKey=<AccountKey>==;EndpointSuffix=core.windows.net", table_name="<myTable>")
for entity in table_client.list_entities(results_per_page=1, select=["PartitionKey", "RowKey"] ):
entity.task = table_client.get_entity('BlueMarker', 'RowID')
print(entity.task)
Output:

Note:
- Install
pip install azure-data-tables
- Get a connection string from
StorageAccounts -> AccessKeys as shown below.

References:
MsDoc
Github