Regenerate Storage Account Keys
Updated: February 24, 2016
The Regenerate Keys asynchronous operation regenerates the primary or secondary access key for the specified storage account.
The Regenerate Keys request may be specified as follows. Replace <subscription-id> with your subscription ID, and <service-name> with the name of the desired storage account.
Required. Specifies that the primary or secondary access key for the specified storage account must be regenerated.
The following table describes the request headers.
Required. Set this header to application/xml.
Required. Specifies the version of the operation to use for this request. This header should be set to 2009-10-01 or higher.
<?xml version="1.0" encoding="utf-8"?> <RegenerateKeys xmlns="http://schemas.microsoft.com/windowsazure"> <KeyType>Primary|Secondary</KeyType> </RegenerateKeys>
The following table describes the elements of the request body.
Specifies which key to regenerate. Valid values are:
The response includes an HTTP status code, a set of response headers, and a response body.
A successful operation returns status code 200 (OK).
The response for this operation includes the following headers. The response may also include additional standard HTTP headers.
A value that uniquely identifies a request made against the management service. For an asynchronous operation, you can call Get Operation Status with the value of the header to determine whether the operation is complete, has failed, or is still in progress.
<?xml version="1.0" encoding="utf-8"?> <StorageService xmlns="http://schemas.microsoft.com/windowsazure"> <Url>storage-service-request-uri</Url> <StorageServiceKeys> <Primary>primary-key</Primary> <Secondary>secondary-key</Secondary> </StorageServiceKeys> </StorageService>
The following table describes the elements of the response body.
The Service Management API request URI used to perform Get Storage Account Properties requests against the storage account.
The primary key for the specified storage account.
The secondary key for the specified storage account.