Chris
Chris

Reputation: 15

Is it possible to get an Azure Storage account connection-string using the REST API?

Is there any authorised API call I can make that would retrieve a connection string for a storage account?

e.g.

DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=caestor1;AccountKey=<KEY>==

Upvotes: 1

Views: 808

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136366

As such there's no REST API to get the connection string for a storage account. This is something you will have to construct manually. You would need account key to construct the connection string and for that you can use List Keys REST API operation.

Upvotes: 1

Related Questions