I am working on reading Azure SQL data from a U-SQL script into Data Lake. I am working on creating an external data source in U-SQL. A part of this effort involves the creation of a “credential” using PowerShell. I am following this guidance:
But, am stuck on an error, shown below. This part of it has me especially stumped: "The resource '' does not exist.". Due to this part of the command : "-Credential (Get-Credential)", I get prompted for login name and password. After that, I get presented with the error.
Please help me decipher this situation. Thank you! Eric
C:\WINDOWS\system32> New-AzureRmDataLakeAnalyticsCatalogCredential -AccountName "" `
-DatabaseName "<MYDBNAME>" ` -CredentialName "<MYCREDENTIALNAME>" ` -Credential (Get-Credential) ` -Uri "http://<MYSERVERNAME>.database.windows.net:1433"
cmdlet Get-Credential at command pipeline position 1 Supply values for the following parameters: Credential WARNING: The output type defined for this cmdlet is incorrect and will be updated to reflect what is actually returned (and defined in the help) in a future release. New-AzureRmDataLakeAnalyticsCatalogCredential : The resource '' does not exist. Trace: c3e04b2a-2690-4c5e-b61c-58a5ded93c6b Time: 2017-05-10T09:09:07.8971058-07:00 At line:1 char:1 + New-AzureRmDataLakeAnalyticsCatalogCredential -AccountName "bladlalog ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureRmData...talogCredential], CloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.DataLakeAnalytics.NewAzureDataLakeAnalyticsCatalogCredential
Test-AdlAnalyticsAccount -Name "<MYACCOUNTNAME>"andTest-AdlCatalogItem -Account "<MYACCOUNTNAME>" -ItemType Database -Path "<MYDBNAME>", what output do you see? These should both return true, indicating that both the Data Lake Analytics account and the U-SQL database exist. If one of those return false, then you'll need to first create the missing thing before creating the credential. I hope this helps! - Matt H