Accessing VM Share Path with service account and password from Synapse Scala Note Book
Hi Team, We need reference document or code sample to access VM Share path from Azure Synapse notebook Scala. For below mentioned scenario.
Share path location: \AZVMSQL01*EarthFilesPPE*
Username: testdomain\testaccount
password: XXXXX
Under this EarthFilesPPE folder we have multiple .dat files
for example:
countryflowers.dat, countryanimals.dat like this.
By using synapse scala notebook want to read countryflowers.dat as mentioned below.
// Read data from the VM Shared File Path into a DataFrame
val df = spark.read
.format("csv")
.option("header", "true") // If your file has a header
.load(filePath)
// Show the DataFrame
df.show()
Please provide sample related to it by using above information.