Web Pub Sub - Update

Operation to update an exiting resource.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}?api-version=2024-03-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

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

resourceName
path True

string

The name of the resource.

Regex pattern: ^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

Request Body

Name Required Type Description
location True

string

The geo-location where the resource lives

identity

ManagedIdentity

A class represent managed identities used for request and response

kind

ServiceKind

The kind of the service

properties.disableAadAuth

boolean

DisableLocalAuth Enable or disable aad auth When set as true, connection with AuthType=aad won't work.

properties.disableLocalAuth

boolean

DisableLocalAuth Enable or disable local auth with AccessKey When set as true, connection with AccessKey=xxx won't work.

properties.liveTraceConfiguration

LiveTraceConfiguration

Live trace configuration of a Microsoft.SignalRService resource.

properties.networkACLs

WebPubSubNetworkACLs

Network ACLs for the resource

properties.publicNetworkAccess

string

Enable or disable public network access. Default to "Enabled". When it's Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what you set in network ACLs.

properties.regionEndpointEnabled

string

Enable or disable the regional endpoint. Default to "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. This property is replica specific. Disable the regional endpoint without replica is not allowed.

properties.resourceLogConfiguration

ResourceLogConfiguration

Resource log configuration of a Microsoft.SignalRService resource.

properties.resourceStopped

string

Stop or start the resource. Default to "False". When it's true, the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.

properties.socketIO

WebPubSubSocketIOSettings

SocketIO settings for the resource

properties.tls

WebPubSubTlsSettings

TLS settings for the resource

sku

ResourceSku

The billing information of the resource.

tags

object

Resource tags.

Responses

Name Type Description
200 OK

WebPubSubResource

Success. The response describes a resource.

202 Accepted

Accepted. The response indicates the exiting resource is now updating and contains a Location header to query the operation result..

Headers

Location: string

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

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

WebPubSub_Update

Sample request

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.SignalRService/webPubSub/myWebPubSubService?api-version=2024-03-01

{
  "sku": {
    "name": "Premium_P1",
    "tier": "Premium",
    "capacity": 1
  },
  "properties": {
    "tls": {
      "clientCertEnabled": false
    },
    "liveTraceConfiguration": {
      "enabled": "false",
      "categories": [
        {
          "name": "ConnectivityLogs",
          "enabled": "true"
        }
      ]
    },
    "networkACLs": {
      "defaultAction": "Deny",
      "publicNetwork": {
        "allow": [
          "ClientConnection"
        ]
      },
      "privateEndpoints": [
        {
          "name": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
          "allow": [
            "ServerConnection"
          ]
        }
      ]
    },
    "publicNetworkAccess": "Enabled",
    "disableLocalAuth": false,
    "disableAadAuth": false,
    "socketIO": {
      "serviceMode": "Serverless"
    }
  },
  "kind": "WebPubSub",
  "identity": {
    "type": "SystemAssigned"
  },
  "location": "eastus",
  "tags": {
    "key1": "value1"
  }
}

Sample response

{
  "sku": {
    "name": "Premium_P1",
    "tier": "Premium",
    "size": "P1",
    "capacity": 1
  },
  "properties": {
    "provisioningState": "Succeeded",
    "externalIP": "10.0.0.1",
    "hostName": "mywebpubsubservice.webpubsub.azure.com",
    "publicPort": 443,
    "serverPort": 443,
    "version": "1.0",
    "privateEndpointConnections": [
      {
        "properties": {
          "provisioningState": "Succeeded",
          "privateEndpoint": {
            "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint"
          },
          "privateLinkServiceConnectionState": {
            "status": "Approved",
            "actionsRequired": "None"
          }
        },
        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService/privateEndpointConnections/mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
        "name": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
        "type": "Microsoft.SignalRService/WebPubSub/privateEndpointConnections",
        "systemData": {
          "createdBy": "string",
          "createdByType": "User",
          "createdAt": "2015-02-03T04:05:06Z",
          "lastModifiedBy": "string",
          "lastModifiedByType": "User",
          "lastModifiedAt": "2015-02-03T04:05:06Z"
        }
      }
    ],
    "tls": {
      "clientCertEnabled": true
    },
    "liveTraceConfiguration": {
      "enabled": "false",
      "categories": [
        {
          "name": "ConnectivityLogs",
          "enabled": "true"
        }
      ]
    },
    "resourceLogConfiguration": {
      "categories": [
        {
          "name": "ConnectivityLogs",
          "enabled": "true"
        }
      ]
    },
    "networkACLs": {
      "defaultAction": "Deny",
      "publicNetwork": {
        "allow": [
          "ClientConnection"
        ]
      },
      "privateEndpoints": [
        {
          "name": "mywebpubsubservice.1fa229cd-bf3f-47f0-8c49-afb36723997e",
          "allow": [
            "ServerConnection"
          ]
        }
      ],
      "ipRules": [
        {
          "value": "123.456.789.123/24",
          "action": "Allow"
        },
        {
          "value": "123.456.789.123",
          "action": "Allow"
        },
        {
          "value": "AppService",
          "action": "Allow"
        }
      ]
    },
    "publicNetworkAccess": "Enabled",
    "disableLocalAuth": false,
    "disableAadAuth": false,
    "regionEndpointEnabled": "Enabled",
    "resourceStopped": "false",
    "socketIO": {
      "serviceMode": "Serverless"
    }
  },
  "kind": "WebPubSub",
  "identity": {
    "type": "SystemAssigned",
    "principalId": "00000000-0000-0000-0000-000000000000",
    "tenantId": "00000000-0000-0000-0000-000000000000"
  },
  "location": "eastus",
  "tags": {
    "key1": "value1"
  },
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.SignalRService/WebPubSub/myWebPubSubService",
  "name": "myWebPubSubService",
  "type": "Microsoft.SignalRService/WebPubSub",
  "systemData": {
    "createdBy": "string",
    "createdByType": "User",
    "createdAt": "2015-02-03T04:05:06Z",
    "lastModifiedBy": "string",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2015-02-03T04:05:06Z"
  }
}
Location: https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationResult...
Azure-AsyncOperation: https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToOperationStatus...

Definitions

Name Description
ACLAction

Azure Networking ACL Action.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

IPRule

An IP rule

LiveTraceCategory

Live trace category configuration of a Microsoft.SignalRService resource.

LiveTraceConfiguration

Live trace configuration of a Microsoft.SignalRService resource.

ManagedIdentity

A class represent managed identities used for request and response

ManagedIdentityType

Represents the identity type: systemAssigned, userAssigned, None

NetworkACL

Network ACL

PrivateEndpoint

Private endpoint

PrivateEndpointACL

ACL for a private endpoint

PrivateEndpointConnection

A private endpoint connection to an azure resource

PrivateLinkServiceConnectionState

Connection state of the private endpoint connection

PrivateLinkServiceConnectionStatus

Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

ProvisioningState

Provisioning state of the resource.

ResourceLogCategory

Resource log category configuration of a Microsoft.SignalRService resource.

ResourceLogConfiguration

Resource log configuration of a Microsoft.SignalRService resource.

ResourceSku

The billing information of the resource.

ServiceKind

The kind of the service

SharedPrivateLinkResource

Describes a Shared Private Link Resource

SharedPrivateLinkResourceStatus

Status of the shared private link resource

systemData

Metadata pertaining to creation and last modification of the resource.

UserAssignedIdentityProperty

Properties of user assigned identity.

WebPubSubNetworkACLs

Network ACLs for the resource

WebPubSubRequestType

The incoming request type to the service

WebPubSubResource

A class represent a resource.

WebPubSubSkuTier

Optional tier of this particular SKU. 'Standard' or 'Free'.

Basic is deprecated, use Standard instead.

WebPubSubSocketIOSettings

SocketIO settings for the resource

WebPubSubTlsSettings

TLS settings for the resource

ACLAction

Azure Networking ACL Action.

Name Type Description
Allow

string

Deny

string

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

IPRule

An IP rule

Name Type Description
action

ACLAction

Azure Networking ACL Action.

value

string

An IP or CIDR or ServiceTag

LiveTraceCategory

Live trace category configuration of a Microsoft.SignalRService resource.

Name Type Description
enabled

string

Indicates whether or the live trace category is enabled. Available values: true, false. Case insensitive.

name

string

Gets or sets the live trace category's name. Available values: ConnectivityLogs, MessagingLogs. Case insensitive.

LiveTraceConfiguration

Live trace configuration of a Microsoft.SignalRService resource.

Name Type Default value Description
categories

LiveTraceCategory[]

Gets or sets the list of category configurations.

enabled

string

false

Indicates whether or not enable live trace. When it's set to true, live trace client can connect to the service. Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories". Available values: true, false. Case insensitive.

ManagedIdentity

A class represent managed identities used for request and response

Name Type Description
principalId

string

Get the principal id for the system assigned identity. Only be used in response.

tenantId

string

Get the tenant id for the system assigned identity. Only be used in response

type

ManagedIdentityType

Represents the identity type: systemAssigned, userAssigned, None

userAssignedIdentities

<string,  UserAssignedIdentityProperty>

Get or set the user assigned identities

ManagedIdentityType

Represents the identity type: systemAssigned, userAssigned, None

Name Type Description
None

string

SystemAssigned

string

UserAssigned

string

NetworkACL

Network ACL

Name Type Description
allow

WebPubSubRequestType[]

Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.

deny

WebPubSubRequestType[]

Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.

PrivateEndpoint

Private endpoint

Name Type Description
id

string

Full qualified Id of the private endpoint

PrivateEndpointACL

ACL for a private endpoint

Name Type Description
allow

WebPubSubRequestType[]

Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.

deny

WebPubSubRequestType[]

Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.

name

string

Name of the private endpoint connection

PrivateEndpointConnection

A private endpoint connection to an azure resource

Name Type Description
id

string

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

The name of the resource

properties.groupIds

string[]

Group IDs

properties.privateEndpoint

PrivateEndpoint

Private endpoint

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionState

Connection state of the private endpoint connection

properties.provisioningState

ProvisioningState

Provisioning state of the resource.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

PrivateLinkServiceConnectionState

Connection state of the private endpoint connection

Name Type Description
actionsRequired

string

A message indicating if changes on the service provider require any updates on the consumer.

description

string

The reason for approval/rejection of the connection.

status

PrivateLinkServiceConnectionStatus

Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

PrivateLinkServiceConnectionStatus

Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

Name Type Description
Approved

string

Disconnected

string

Pending

string

Rejected

string

ProvisioningState

Provisioning state of the resource.

Name Type Description
Canceled

string

Creating

string

Deleting

string

Failed

string

Moving

string

Running

string

Succeeded

string

Unknown

string

Updating

string

ResourceLogCategory

Resource log category configuration of a Microsoft.SignalRService resource.

Name Type Description
enabled

string

Indicates whether or the resource log category is enabled. Available values: true, false. Case insensitive.

name

string

Gets or sets the resource log category's name. Available values: ConnectivityLogs, MessagingLogs. Case insensitive.

ResourceLogConfiguration

Resource log configuration of a Microsoft.SignalRService resource.

Name Type Description
categories

ResourceLogCategory[]

Gets or sets the list of category configurations.

ResourceSku

The billing information of the resource.

Name Type Description
capacity

integer

Optional, integer. The unit count of the resource. 1 for Free_F1/Standard_S1/Premium_P1, 100 for Premium_P2 by default.

If present, following values are allowed: Free_F1: 1; Standard_S1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium_P1: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium_P2: 100,200,300,400,500,600,700,800,900,1000;

family

string

Not used. Retained for future use.

name

string

The name of the SKU. Required.

Allowed values: Standard_S1, Free_F1, Premium_P1, Premium_P2

size

string

Not used. Retained for future use.

tier

WebPubSubSkuTier

Optional tier of this particular SKU. 'Standard' or 'Free'.

Basic is deprecated, use Standard instead.

ServiceKind

The kind of the service

Name Type Description
SocketIO

string

WebPubSub

string

SharedPrivateLinkResource

Describes a Shared Private Link Resource

Name Type Description
id

string

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

The name of the resource

properties.groupId

string

The group id from the provider of resource the shared private link resource is for

properties.privateLinkResourceId

string

The resource id of the resource the shared private link resource is for

properties.provisioningState

ProvisioningState

Provisioning state of the resource.

properties.requestMessage

string

The request message for requesting approval of the shared private link resource

properties.status

SharedPrivateLinkResourceStatus

Status of the shared private link resource

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

SharedPrivateLinkResourceStatus

Status of the shared private link resource

Name Type Description
Approved

string

Disconnected

string

Pending

string

Rejected

string

Timeout

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

UserAssignedIdentityProperty

Properties of user assigned identity.

Name Type Description
clientId

string

Get the client id for the user assigned identity

principalId

string

Get the principal id for the user assigned identity

WebPubSubNetworkACLs

Network ACLs for the resource

Name Type Description
defaultAction

ACLAction

Azure Networking ACL Action.

ipRules

IPRule[]

IP rules for filtering public traffic

privateEndpoints

PrivateEndpointACL[]

ACLs for requests from private endpoints

publicNetwork

NetworkACL

Network ACL

WebPubSubRequestType

The incoming request type to the service

Name Type Description
ClientConnection

string

RESTAPI

string

ServerConnection

string

Trace

string

WebPubSubResource

A class represent a resource.

Name Type Default value Description
id

string

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

identity

ManagedIdentity

A class represent managed identities used for request and response

kind

ServiceKind

The kind of the service

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties.disableAadAuth

boolean

False

DisableLocalAuth Enable or disable aad auth When set as true, connection with AuthType=aad won't work.

properties.disableLocalAuth

boolean

False

DisableLocalAuth Enable or disable local auth with AccessKey When set as true, connection with AccessKey=xxx won't work.

properties.externalIP

string

The publicly accessible IP of the resource.

properties.hostName

string

FQDN of the service instance.

properties.hostNamePrefix

string

Deprecated.

properties.liveTraceConfiguration

LiveTraceConfiguration

Live trace configuration of a Microsoft.SignalRService resource.

properties.networkACLs

WebPubSubNetworkACLs

Network ACLs for the resource

properties.privateEndpointConnections

PrivateEndpointConnection[]

Private endpoint connections to the resource.

properties.provisioningState

ProvisioningState

Provisioning state of the resource.

properties.publicNetworkAccess

string

Enabled

Enable or disable public network access. Default to "Enabled". When it's Enabled, network ACLs still apply. When it's Disabled, public network access is always disabled no matter what you set in network ACLs.

properties.publicPort

integer

The publicly accessible port of the resource which is designed for browser/client side usage.

properties.regionEndpointEnabled

string

Enabled

Enable or disable the regional endpoint. Default to "Enabled". When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected. This property is replica specific. Disable the regional endpoint without replica is not allowed.

properties.resourceLogConfiguration

ResourceLogConfiguration

Resource log configuration of a Microsoft.SignalRService resource.

properties.resourceStopped

string

false

Stop or start the resource. Default to "False". When it's true, the data plane of the resource is shutdown. When it's false, the data plane of the resource is started.

properties.serverPort

integer

The publicly accessible port of the resource which is designed for customer server side usage.

properties.sharedPrivateLinkResources

SharedPrivateLinkResource[]

The list of shared private link resources.

properties.socketIO

WebPubSubSocketIOSettings

SocketIO settings for the resource

properties.tls

WebPubSubTlsSettings

TLS settings for the resource

properties.version

string

Version of the resource. Probably you need the same or higher version of client SDKs.

sku

ResourceSku

The billing information of the resource.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

WebPubSubSkuTier

Optional tier of this particular SKU. 'Standard' or 'Free'.

Basic is deprecated, use Standard instead.

Name Type Description
Basic

string

Free

string

Premium

string

Standard

string

WebPubSubSocketIOSettings

SocketIO settings for the resource

Name Type Description
serviceMode

string

The service mode of Web PubSub for Socket.IO. Values allowed: "Default": have your own backend Socket.IO server "Serverless": your application doesn't have a backend server

WebPubSubTlsSettings

TLS settings for the resource

Name Type Default value Description
clientCertEnabled

boolean

False

Request client certificate during TLS handshake if enabled. Not supported for free tier. Any input will be ignored for free tier.