I did like below and it worked perfectly. the only thing I think you are missing is the 'f' at jdbcurl.
server`` ``=`` ``'myserver.database.windows.net'``
Port`` ``=`` ``1433``
Database`` ``=`` ``"sqldb-mydb-001"
jdbcUrl`` ``=`` ``f"jdbc:sqlserver://``{``server``}``:``{``Port``}``;databaseName=``{``Database``}``;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30"``
token=TokenLibrary.getConnectionString``(``"CmbSqlDatabase"``)
query`` ``=`` ``"(SELECT * FROM dbo.table)as tb"``
conn_Prop`` ``=`` { ``"driver"`` : ``"com.microsoft.sqlserver.jdbc.SQLServerDriver"``, ``"accessToken"`` : ``token``
}
df`` ``=`` ``spark``.``read``.``jdbc``(``url=jdbcUrl``, ``table=query``, ``properties=conn_Prop``) ``display``(``df``)