I would like to get an instance of Microsoft.WindowsAzure.Storage.Table.CloudTable
object
from:
- Azure username,
- Azure password,
- storage account name, and
- table name.
I know how to do access the table having the accountName
and the accountKey
:
//I would like to use username + password and then specify which account to access
var storageCredentials = new StorageCredentials(accountName, accountKey);
var storageAccount = new CloudStorageAccount(storageCredentials, useHttps: true);
var tableClient = storageAccount.CreateCloudTableClient();
var table = tableClient.GetTableReference("my_table");
This is for a simple data export app where the user provides their username and password.
For the record, I ended up using an SAS Token for now.