Hi Shubhankar Khandai •,
Welcome to Microsoft Q&A forum.
As I understand, you are getting azure.core.exceptions.ServiceResponseError while uploading/retrieving the data from Cosmos.
This could be due to Network and Firewall settings. Check your access from Microsoft 365 to Azure Cosmos DB is allowed and not restricted.
Check TLS version between Azure Cosmos DB and Client is same.
Was the connection working fine before? Or this is the first time you have established connectivity?
Ensure that your Cosmos DB instance is configured to allow access from specific IP ranges (especially if Microsoft 365 Cloud PC uses a specific IP range).
Let us know what your observation on above pointers was.
Awaiting your reply.
Thanks