I'm trying to connect to Azure Data Lake Storage Gen2 from an Azure Function to import some XML files and convert them to JSON. But my code is not working:
var creds = ApplicationTokenProvider.LoginSilentAsync(tenantId, applicationId, secretKey).Result;
var adlsFileSystemClient = new DataLakeStoreFileSystemManagementClient(creds);
var result = adlsFileSystemClient.FileSystem.Open(adlsAccountName, "/Test/xml.xml");
This returns an error: The remote name could not be resolved
+ "azuredatalakestore.net" while actually DNS suffix should have been different.