Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
brendacusabel
Regular Visitor

How do I update credentials for an Azure table using API

Hello,

 

I am new to PowerBI.

 

My pbix data source is an Azure table,  and I can switch to a different table storage account after I have published

my pbix to PowerBI service via Set Parameter API.

 

Is there a way through PowerBI API to update the credentials (account key) when ever I switch to a different Azure table

storage account.

 

Thank you.

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @brendacusabel,

 

Based on my test, it seems to be that updating the credentials (account key) for Azure Table Storage isn't supported current. 

 

I used this call: GetBoundGatewayDatasources (https://msdn.microsoft.com/en-us/library/mt732874.aspx). However, there is no account key listed in the connectionDetails.

 

r2.PNG

 

So I would suggest you add it as an idea on Power BI Ideas forum to improve Power BI on this feature. Here is a similar idea for your reference. Smiley Happy

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @brendacusabel,

 

Based on my test, it seems to be that updating the credentials (account key) for Azure Table Storage isn't supported current. 

 

I used this call: GetBoundGatewayDatasources (https://msdn.microsoft.com/en-us/library/mt732874.aspx). However, there is no account key listed in the connectionDetails.

 

r2.PNG

 

So I would suggest you add it as an idea on Power BI Ideas forum to improve Power BI on this feature. Here is a similar idea for your reference. Smiley Happy

 

Regards

brendacusabel
Regular Visitor

Hello.

 

I am trying to update an Azure Table Storage Key and used the message body below for a Patch data source API request.

 

{
"credentialType": "Key",
"credentials":
{ "credentialData": [
{"name": "key",
"value": "<Azure table storage key>"
}]
},
"encryptedConnection": "NotEncrypted",

"privacyLevel": "Private",

"encryptionAlgorithm":"None"
}

 

And I get a bad request response:

 

{
"error": {
"code": "BadRequest",
"message": "Bad Request",
"details": [
{
"message": "The property 'credentials' does not exist on type 'Microsoft.PowerBI.ServiceContracts.Api.GatewayDatasource'. Make sure to only use property names that are defined by the type.",
"target": "datasourceDelta"
}
]
}
}

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.