Create or Update SAS Policy (ARM)

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

Creates a new or updates an existing Authentication Policy for a resource in a Customer Insights Hub.


The create/update SAS Policy request is constructed as follows:

HTTP Verb Request URI

URI Parameters

URI Parameter Required Description
subId Yes The Azure subscription ID
rgName Yes The resource group name
policyName Yes The name of the SAS policy to create or update.

Request Body

The format of the request body is as follows:

     'properties' : 
        "Permissions":["Read" | "Write" | "Manage"], 

Where the properties property contains a SasPolicy definition that optionally repeats the policy name.


The response includes an HTTP status code and a standard set of response headers. Upon success, the body will contain information about the newly created policy in the following form:

    "id": <policyUrl>, 
    "name": <policyName>, 
    "type": "Microsoft.CustomerInsights/hubs/AuthorizationPolicies", 
    "properties": { <policyProperties> }

Status Code

  • 200 (OK) - if the update request completed successfully.
  • 201 (Created) - if the create request completed successfully.
  • 401 (Unauthorized) - if the sender does not have write access to policies.