Regenerate Secondary Key of a SAS Policy (ARM)

[This topic is pre-release documentation and is subject to change.]

Regenerates the secondary key of the storage account associated with a Authentication Policy.

Request

The request is constructed as follows:

HTTP Verb Request URI
POST https://management.azure.com/subscriptions/<subId>/resourceGroups/<rgName>/providers/Microsoft.CustomerInsights/hubs/<hubName>/AuthorizationPolicies/<policyName>/regeneratesecondarykey?api-version=2017-04-26

URI Parameters

URI Parameter Required Description
subId Yes The Azure subscription ID
rgName Yes The resource group name
policyName Yes The name of SAS Policy associated with the key


Response

The response includes a response body, an HTTP status code and a set of standard response headers.

Response Body

A SasPolicy type definition containing the new key.

Status Code

  • 200 (OK) - if the request completed successfully.
  • 401 (Access denied) - not authorized to perform regen operation.