Share via


Clusters - Create Or Update

Creates a Stream Analytics Cluster or replaces an already existing cluster.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}?api-version=2020-03-01

URI Parameters

Name In Required Type Description
clusterName
path True

string

The name of the cluster.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+$

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Header

Name Required Type Description
If-Match

string

The ETag of the resource. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.

If-None-Match

string

Set to '*' to allow a new resource to be created, but to prevent updating an existing record set. Other values will result in a 412 Pre-condition Failed response.

Request Body

Name Type Description
location

string

The geo-location where the resource lives

sku

ClusterSku

The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.

tags

object

Resource tags.

Responses

Name Type Description
200 OK

Cluster

The cluster was successfully created or replaced.

201 Created

Cluster

The cluster was successfully created or replaced.

Other Status Codes

Error

Error.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Create a new cluster

Sample request

PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/An Example Cluster?api-version=2020-03-01

{
  "location": "North US",
  "tags": {
    "key": "value"
  },
  "sku": {
    "name": "Default",
    "capacity": 48
  }
}

Sample response

{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster",
  "name": "An Example Cluster",
  "type": "Microsoft.StreamAnalytics/clusters",
  "location": "North US",
  "tags": {
    "key": "value"
  },
  "sku": {
    "name": "Default",
    "capacity": 48
  },
  "properties": {
    "createdDate": "2020-01-25T01:00:00Z",
    "clusterId": "B01C67EF-4739-4DDD-9FB2-427EB43DE839",
    "provisioningState": "Succeeded",
    "capacityAllocated": 0,
    "capacityAssigned": 0
  },
  "etag": "F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"
}
{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster",
  "name": "An Example Cluster",
  "type": "Microsoft.StreamAnalytics/clusters",
  "location": "North US",
  "tags": {
    "key": "value"
  },
  "sku": {
    "name": "Default",
    "capacity": 48
  },
  "properties": {
    "createdDate": "2020-01-25T01:00:00Z",
    "clusterId": "B01C67EF-4739-4DDD-9FB2-427EB43DE839",
    "provisioningState": "Succeeded",
    "capacityAllocated": 0,
    "capacityAssigned": 0
  },
  "etag": "F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"
}

Definitions

Name Description
Cluster

A Stream Analytics Cluster object

ClusterProvisioningState

The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled

ClusterSku

The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.

ClusterSkuName

Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.

Error

Common error representation.

Cluster

A Stream Analytics Cluster object

Name Type Description
etag

string

The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.

id

string

Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties.capacityAllocated

integer (int32)

Represents the number of streaming units currently being used on the cluster.

properties.capacityAssigned

integer (int32)

Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.

properties.clusterId

string

Unique identifier for the cluster.

properties.createdDate

string (date-time)

The date this cluster was created.

properties.provisioningState

ClusterProvisioningState

The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled

sku

ClusterSku

The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.

tags

object

Resource tags.

type

string

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

ClusterProvisioningState

The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled

Value Description
Succeeded

The cluster provisioning succeeded.

Failed

The cluster provisioning failed.

Canceled

The cluster provisioning was canceled.

InProgress

The cluster provisioning was inprogress.

ClusterSku

The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.

Name Type Description
capacity

integer (int32)

minimum: 36
maximum: 396

Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.

name

ClusterSkuName

Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.

ClusterSkuName

Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.

Value Description
Default

The default SKU.

Error

Common error representation.

Name Type Description
error

Error

Error definition properties.