@Dhilip Subramanian please go through this link https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/resources-self-help-sql-on-demand
As described there, common reasons are your Azure AD identity does not have the right RBAC permissions to access the file or maybe firewall is blocking the access.