Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Azure Blob Storage #30

Open
tvinko opened this issue Nov 8, 2021 · 0 comments
Open

Azure Blob Storage #30

tvinko opened this issue Nov 8, 2021 · 0 comments

Comments

@tvinko
Copy link

tvinko commented Nov 8, 2021

I have a question about providing credentials to the Azure Blob Storage.
I would like to read csv from storage. This is a simple powerquery:

let
	Source = AzureStorage.Blobs("my_account"),
	mycontainervar = Source{[Name="my_container"]}[Data]
in
	mycontainervar

I run it with (txtMashup.Text is just above query);


var q = new Query { Formula = txtMashup.Text };
var pq = new PowerQueryCommand();
var result = pq.Execute(q);

As expected, result.ExceptionMessage is:
Credentials are required to connect to the AzureBlobs source. (Source at https://myaccount.blob.core.windows.net/my_container.)

Can anyone point me to the right direction how to provide those credentials (url, account name, key1)?

I also pass credential to PowerQueryCommand, but with no luck:

CredentialWeb web_credentials = new CredentialWeb();
web_credentials.Username = "account_name";
web_credentials.Password = "account_key_1";
web_credentials.Url = "https://myaccount.blob.core.windows.net/mycontainer";
pq.Credentials.Add(web_credentials);
var result = pq.Execute(q);
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant