We recommend using Azure Native.
azure.webpubsub.Service
Explore with Pulumi AI
Manages an Azure Web PubSub Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "terraform-webpubsub",
    location: "east us",
});
const exampleService = new azure.webpubsub.Service("example", {
    name: "tfex-webpubsub",
    location: example.location,
    resourceGroupName: example.name,
    sku: "Standard_S1",
    capacity: 1,
    publicNetworkAccessEnabled: false,
    liveTrace: {
        enabled: true,
        messagingLogsEnabled: true,
        connectivityLogsEnabled: false,
    },
    identity: {
        type: "SystemAssigned",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="terraform-webpubsub",
    location="east us")
example_service = azure.webpubsub.Service("example",
    name="tfex-webpubsub",
    location=example.location,
    resource_group_name=example.name,
    sku="Standard_S1",
    capacity=1,
    public_network_access_enabled=False,
    live_trace={
        "enabled": True,
        "messaging_logs_enabled": True,
        "connectivity_logs_enabled": False,
    },
    identity={
        "type": "SystemAssigned",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/webpubsub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("terraform-webpubsub"),
			Location: pulumi.String("east us"),
		})
		if err != nil {
			return err
		}
		_, err = webpubsub.NewService(ctx, "example", &webpubsub.ServiceArgs{
			Name:                       pulumi.String("tfex-webpubsub"),
			Location:                   example.Location,
			ResourceGroupName:          example.Name,
			Sku:                        pulumi.String("Standard_S1"),
			Capacity:                   pulumi.Int(1),
			PublicNetworkAccessEnabled: pulumi.Bool(false),
			LiveTrace: &webpubsub.ServiceLiveTraceArgs{
				Enabled:                 pulumi.Bool(true),
				MessagingLogsEnabled:    pulumi.Bool(true),
				ConnectivityLogsEnabled: pulumi.Bool(false),
			},
			Identity: &webpubsub.ServiceIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "terraform-webpubsub",
        Location = "east us",
    });
    var exampleService = new Azure.WebPubSub.Service("example", new()
    {
        Name = "tfex-webpubsub",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "Standard_S1",
        Capacity = 1,
        PublicNetworkAccessEnabled = false,
        LiveTrace = new Azure.WebPubSub.Inputs.ServiceLiveTraceArgs
        {
            Enabled = true,
            MessagingLogsEnabled = true,
            ConnectivityLogsEnabled = false,
        },
        Identity = new Azure.WebPubSub.Inputs.ServiceIdentityArgs
        {
            Type = "SystemAssigned",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.webpubsub.Service;
import com.pulumi.azure.webpubsub.ServiceArgs;
import com.pulumi.azure.webpubsub.inputs.ServiceLiveTraceArgs;
import com.pulumi.azure.webpubsub.inputs.ServiceIdentityArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("terraform-webpubsub")
            .location("east us")
            .build());
        var exampleService = new Service("exampleService", ServiceArgs.builder()
            .name("tfex-webpubsub")
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("Standard_S1")
            .capacity(1)
            .publicNetworkAccessEnabled(false)
            .liveTrace(ServiceLiveTraceArgs.builder()
                .enabled(true)
                .messagingLogsEnabled(true)
                .connectivityLogsEnabled(false)
                .build())
            .identity(ServiceIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: terraform-webpubsub
      location: east us
  exampleService:
    type: azure:webpubsub:Service
    name: example
    properties:
      name: tfex-webpubsub
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: Standard_S1
      capacity: 1
      publicNetworkAccessEnabled: false
      liveTrace:
        enabled: true
        messagingLogsEnabled: true
        connectivityLogsEnabled: false
      identity:
        type: SystemAssigned
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);@overload
def Service(resource_name: str,
            args: ServiceArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            resource_group_name: Optional[str] = None,
            sku: Optional[str] = None,
            aad_auth_enabled: Optional[bool] = None,
            capacity: Optional[int] = None,
            identity: Optional[ServiceIdentityArgs] = None,
            live_trace: Optional[ServiceLiveTraceArgs] = None,
            local_auth_enabled: Optional[bool] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            public_network_access_enabled: Optional[bool] = None,
            tags: Optional[Mapping[str, str]] = None,
            tls_client_cert_enabled: Optional[bool] = None)func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: azure:webpubsub:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleserviceResourceResourceFromWebpubsubservice = new Azure.WebPubSub.Service("exampleserviceResourceResourceFromWebpubsubservice", new()
{
    ResourceGroupName = "string",
    Sku = "string",
    AadAuthEnabled = false,
    Capacity = 0,
    Identity = new Azure.WebPubSub.Inputs.ServiceIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    LiveTrace = new Azure.WebPubSub.Inputs.ServiceLiveTraceArgs
    {
        ConnectivityLogsEnabled = false,
        Enabled = false,
        HttpRequestLogsEnabled = false,
        MessagingLogsEnabled = false,
    },
    LocalAuthEnabled = false,
    Location = "string",
    Name = "string",
    PublicNetworkAccessEnabled = false,
    Tags = 
    {
        { "string", "string" },
    },
    TlsClientCertEnabled = false,
});
example, err := webpubsub.NewService(ctx, "exampleserviceResourceResourceFromWebpubsubservice", &webpubsub.ServiceArgs{
	ResourceGroupName: pulumi.String("string"),
	Sku:               pulumi.String("string"),
	AadAuthEnabled:    pulumi.Bool(false),
	Capacity:          pulumi.Int(0),
	Identity: &webpubsub.ServiceIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	LiveTrace: &webpubsub.ServiceLiveTraceArgs{
		ConnectivityLogsEnabled: pulumi.Bool(false),
		Enabled:                 pulumi.Bool(false),
		HttpRequestLogsEnabled:  pulumi.Bool(false),
		MessagingLogsEnabled:    pulumi.Bool(false),
	},
	LocalAuthEnabled:           pulumi.Bool(false),
	Location:                   pulumi.String("string"),
	Name:                       pulumi.String("string"),
	PublicNetworkAccessEnabled: pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TlsClientCertEnabled: pulumi.Bool(false),
})
var exampleserviceResourceResourceFromWebpubsubservice = new Service("exampleserviceResourceResourceFromWebpubsubservice", ServiceArgs.builder()
    .resourceGroupName("string")
    .sku("string")
    .aadAuthEnabled(false)
    .capacity(0)
    .identity(ServiceIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .liveTrace(ServiceLiveTraceArgs.builder()
        .connectivityLogsEnabled(false)
        .enabled(false)
        .httpRequestLogsEnabled(false)
        .messagingLogsEnabled(false)
        .build())
    .localAuthEnabled(false)
    .location("string")
    .name("string")
    .publicNetworkAccessEnabled(false)
    .tags(Map.of("string", "string"))
    .tlsClientCertEnabled(false)
    .build());
exampleservice_resource_resource_from_webpubsubservice = azure.webpubsub.Service("exampleserviceResourceResourceFromWebpubsubservice",
    resource_group_name="string",
    sku="string",
    aad_auth_enabled=False,
    capacity=0,
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    live_trace={
        "connectivity_logs_enabled": False,
        "enabled": False,
        "http_request_logs_enabled": False,
        "messaging_logs_enabled": False,
    },
    local_auth_enabled=False,
    location="string",
    name="string",
    public_network_access_enabled=False,
    tags={
        "string": "string",
    },
    tls_client_cert_enabled=False)
const exampleserviceResourceResourceFromWebpubsubservice = new azure.webpubsub.Service("exampleserviceResourceResourceFromWebpubsubservice", {
    resourceGroupName: "string",
    sku: "string",
    aadAuthEnabled: false,
    capacity: 0,
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    liveTrace: {
        connectivityLogsEnabled: false,
        enabled: false,
        httpRequestLogsEnabled: false,
        messagingLogsEnabled: false,
    },
    localAuthEnabled: false,
    location: "string",
    name: "string",
    publicNetworkAccessEnabled: false,
    tags: {
        string: "string",
    },
    tlsClientCertEnabled: false,
});
type: azure:webpubsub:Service
properties:
    aadAuthEnabled: false
    capacity: 0
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    liveTrace:
        connectivityLogsEnabled: false
        enabled: false
        httpRequestLogsEnabled: false
        messagingLogsEnabled: false
    localAuthEnabled: false
    location: string
    name: string
    publicNetworkAccessEnabled: false
    resourceGroupName: string
    sku: string
    tags:
        string: string
    tlsClientCertEnabled: false
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Service resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- Sku string
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- AadAuth boolEnabled 
- Whether to enable AAD auth? Defaults to true.
- Capacity int
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- Identity
ServiceIdentity 
- An identityblock as defined below.
- LiveTrace ServiceLive Trace 
- A live_traceblock as defined below.
- LocalAuth boolEnabled 
- Whether to enable local auth? Defaults to true.
- Location string
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- Name string
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether to enable public network access? Defaults to true.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TlsClient boolCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- ResourceGroup stringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- Sku string
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- AadAuth boolEnabled 
- Whether to enable AAD auth? Defaults to true.
- Capacity int
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- Identity
ServiceIdentity Args 
- An identityblock as defined below.
- LiveTrace ServiceLive Trace Args 
- A live_traceblock as defined below.
- LocalAuth boolEnabled 
- Whether to enable local auth? Defaults to true.
- Location string
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- Name string
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- PublicNetwork boolAccess Enabled 
- Whether to enable public network access? Defaults to true.
- map[string]string
- A mapping of tags to assign to the resource.
- TlsClient boolCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- resourceGroup StringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- sku String
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- aadAuth BooleanEnabled 
- Whether to enable AAD auth? Defaults to true.
- capacity Integer
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- identity
ServiceIdentity 
- An identityblock as defined below.
- liveTrace ServiceLive Trace 
- A live_traceblock as defined below.
- localAuth BooleanEnabled 
- Whether to enable local auth? Defaults to true.
- location String
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name String
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether to enable public network access? Defaults to true.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tlsClient BooleanCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- resourceGroup stringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- sku string
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- aadAuth booleanEnabled 
- Whether to enable AAD auth? Defaults to true.
- capacity number
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- identity
ServiceIdentity 
- An identityblock as defined below.
- liveTrace ServiceLive Trace 
- A live_traceblock as defined below.
- localAuth booleanEnabled 
- Whether to enable local auth? Defaults to true.
- location string
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name string
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- publicNetwork booleanAccess Enabled 
- Whether to enable public network access? Defaults to true.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tlsClient booleanCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- resource_group_ strname 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- sku str
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- aad_auth_ boolenabled 
- Whether to enable AAD auth? Defaults to true.
- capacity int
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- identity
ServiceIdentity Args 
- An identityblock as defined below.
- live_trace ServiceLive Trace Args 
- A live_traceblock as defined below.
- local_auth_ boolenabled 
- Whether to enable local auth? Defaults to true.
- location str
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name str
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- public_network_ boolaccess_ enabled 
- Whether to enable public network access? Defaults to true.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tls_client_ boolcert_ enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- resourceGroup StringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- sku String
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- aadAuth BooleanEnabled 
- Whether to enable AAD auth? Defaults to true.
- capacity Number
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- identity Property Map
- An identityblock as defined below.
- liveTrace Property Map
- A live_traceblock as defined below.
- localAuth BooleanEnabled 
- Whether to enable local auth? Defaults to true.
- location String
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name String
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- publicNetwork BooleanAccess Enabled 
- Whether to enable public network access? Defaults to true.
- Map<String>
- A mapping of tags to assign to the resource.
- tlsClient BooleanCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- ExternalIp string
- The publicly accessible IP of the Web PubSub service.
- Hostname string
- The FQDN of the Web PubSub service.
- Id string
- The provider-assigned unique ID for this managed resource.
- PrimaryAccess stringKey 
- The primary access key for the Web PubSub service.
- PrimaryConnection stringString 
- The primary connection string for the Web PubSub service.
- PublicPort int
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- SecondaryAccess stringKey 
- The secondary access key for the Web PubSub service.
- SecondaryConnection stringString 
- The secondary connection string for the Web PubSub service.
- ServerPort int
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- Version string
- ExternalIp string
- The publicly accessible IP of the Web PubSub service.
- Hostname string
- The FQDN of the Web PubSub service.
- Id string
- The provider-assigned unique ID for this managed resource.
- PrimaryAccess stringKey 
- The primary access key for the Web PubSub service.
- PrimaryConnection stringString 
- The primary connection string for the Web PubSub service.
- PublicPort int
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- SecondaryAccess stringKey 
- The secondary access key for the Web PubSub service.
- SecondaryConnection stringString 
- The secondary connection string for the Web PubSub service.
- ServerPort int
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- Version string
- externalIp String
- The publicly accessible IP of the Web PubSub service.
- hostname String
- The FQDN of the Web PubSub service.
- id String
- The provider-assigned unique ID for this managed resource.
- primaryAccess StringKey 
- The primary access key for the Web PubSub service.
- primaryConnection StringString 
- The primary connection string for the Web PubSub service.
- publicPort Integer
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondaryAccess StringKey 
- The secondary access key for the Web PubSub service.
- secondaryConnection StringString 
- The secondary connection string for the Web PubSub service.
- serverPort Integer
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- version String
- externalIp string
- The publicly accessible IP of the Web PubSub service.
- hostname string
- The FQDN of the Web PubSub service.
- id string
- The provider-assigned unique ID for this managed resource.
- primaryAccess stringKey 
- The primary access key for the Web PubSub service.
- primaryConnection stringString 
- The primary connection string for the Web PubSub service.
- publicPort number
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondaryAccess stringKey 
- The secondary access key for the Web PubSub service.
- secondaryConnection stringString 
- The secondary connection string for the Web PubSub service.
- serverPort number
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- version string
- external_ip str
- The publicly accessible IP of the Web PubSub service.
- hostname str
- The FQDN of the Web PubSub service.
- id str
- The provider-assigned unique ID for this managed resource.
- primary_access_ strkey 
- The primary access key for the Web PubSub service.
- primary_connection_ strstring 
- The primary connection string for the Web PubSub service.
- public_port int
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondary_access_ strkey 
- The secondary access key for the Web PubSub service.
- secondary_connection_ strstring 
- The secondary connection string for the Web PubSub service.
- server_port int
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- version str
- externalIp String
- The publicly accessible IP of the Web PubSub service.
- hostname String
- The FQDN of the Web PubSub service.
- id String
- The provider-assigned unique ID for this managed resource.
- primaryAccess StringKey 
- The primary access key for the Web PubSub service.
- primaryConnection StringString 
- The primary connection string for the Web PubSub service.
- publicPort Number
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondaryAccess StringKey 
- The secondary access key for the Web PubSub service.
- secondaryConnection StringString 
- The secondary connection string for the Web PubSub service.
- serverPort Number
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- version String
Look up Existing Service Resource
Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        aad_auth_enabled: Optional[bool] = None,
        capacity: Optional[int] = None,
        external_ip: Optional[str] = None,
        hostname: Optional[str] = None,
        identity: Optional[ServiceIdentityArgs] = None,
        live_trace: Optional[ServiceLiveTraceArgs] = None,
        local_auth_enabled: Optional[bool] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        primary_access_key: Optional[str] = None,
        primary_connection_string: Optional[str] = None,
        public_network_access_enabled: Optional[bool] = None,
        public_port: Optional[int] = None,
        resource_group_name: Optional[str] = None,
        secondary_access_key: Optional[str] = None,
        secondary_connection_string: Optional[str] = None,
        server_port: Optional[int] = None,
        sku: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tls_client_cert_enabled: Optional[bool] = None,
        version: Optional[str] = None) -> Servicefunc GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)resources:  _:    type: azure:webpubsub:Service    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AadAuth boolEnabled 
- Whether to enable AAD auth? Defaults to true.
- Capacity int
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- ExternalIp string
- The publicly accessible IP of the Web PubSub service.
- Hostname string
- The FQDN of the Web PubSub service.
- Identity
ServiceIdentity 
- An identityblock as defined below.
- LiveTrace ServiceLive Trace 
- A live_traceblock as defined below.
- LocalAuth boolEnabled 
- Whether to enable local auth? Defaults to true.
- Location string
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- Name string
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- PrimaryAccess stringKey 
- The primary access key for the Web PubSub service.
- PrimaryConnection stringString 
- The primary connection string for the Web PubSub service.
- PublicNetwork boolAccess Enabled 
- Whether to enable public network access? Defaults to true.
- PublicPort int
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- ResourceGroup stringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- SecondaryAccess stringKey 
- The secondary access key for the Web PubSub service.
- SecondaryConnection stringString 
- The secondary connection string for the Web PubSub service.
- ServerPort int
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- Sku string
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TlsClient boolCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- Version string
- AadAuth boolEnabled 
- Whether to enable AAD auth? Defaults to true.
- Capacity int
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- ExternalIp string
- The publicly accessible IP of the Web PubSub service.
- Hostname string
- The FQDN of the Web PubSub service.
- Identity
ServiceIdentity Args 
- An identityblock as defined below.
- LiveTrace ServiceLive Trace Args 
- A live_traceblock as defined below.
- LocalAuth boolEnabled 
- Whether to enable local auth? Defaults to true.
- Location string
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- Name string
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- PrimaryAccess stringKey 
- The primary access key for the Web PubSub service.
- PrimaryConnection stringString 
- The primary connection string for the Web PubSub service.
- PublicNetwork boolAccess Enabled 
- Whether to enable public network access? Defaults to true.
- PublicPort int
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- ResourceGroup stringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- SecondaryAccess stringKey 
- The secondary access key for the Web PubSub service.
- SecondaryConnection stringString 
- The secondary connection string for the Web PubSub service.
- ServerPort int
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- Sku string
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- map[string]string
- A mapping of tags to assign to the resource.
- TlsClient boolCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- Version string
- aadAuth BooleanEnabled 
- Whether to enable AAD auth? Defaults to true.
- capacity Integer
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- externalIp String
- The publicly accessible IP of the Web PubSub service.
- hostname String
- The FQDN of the Web PubSub service.
- identity
ServiceIdentity 
- An identityblock as defined below.
- liveTrace ServiceLive Trace 
- A live_traceblock as defined below.
- localAuth BooleanEnabled 
- Whether to enable local auth? Defaults to true.
- location String
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name String
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- primaryAccess StringKey 
- The primary access key for the Web PubSub service.
- primaryConnection StringString 
- The primary connection string for the Web PubSub service.
- publicNetwork BooleanAccess Enabled 
- Whether to enable public network access? Defaults to true.
- publicPort Integer
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resourceGroup StringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- secondaryAccess StringKey 
- The secondary access key for the Web PubSub service.
- secondaryConnection StringString 
- The secondary connection string for the Web PubSub service.
- serverPort Integer
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- sku String
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- Map<String,String>
- A mapping of tags to assign to the resource.
- tlsClient BooleanCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- version String
- aadAuth booleanEnabled 
- Whether to enable AAD auth? Defaults to true.
- capacity number
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- externalIp string
- The publicly accessible IP of the Web PubSub service.
- hostname string
- The FQDN of the Web PubSub service.
- identity
ServiceIdentity 
- An identityblock as defined below.
- liveTrace ServiceLive Trace 
- A live_traceblock as defined below.
- localAuth booleanEnabled 
- Whether to enable local auth? Defaults to true.
- location string
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name string
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- primaryAccess stringKey 
- The primary access key for the Web PubSub service.
- primaryConnection stringString 
- The primary connection string for the Web PubSub service.
- publicNetwork booleanAccess Enabled 
- Whether to enable public network access? Defaults to true.
- publicPort number
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resourceGroup stringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- secondaryAccess stringKey 
- The secondary access key for the Web PubSub service.
- secondaryConnection stringString 
- The secondary connection string for the Web PubSub service.
- serverPort number
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- sku string
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- tlsClient booleanCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- version string
- aad_auth_ boolenabled 
- Whether to enable AAD auth? Defaults to true.
- capacity int
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- external_ip str
- The publicly accessible IP of the Web PubSub service.
- hostname str
- The FQDN of the Web PubSub service.
- identity
ServiceIdentity Args 
- An identityblock as defined below.
- live_trace ServiceLive Trace Args 
- A live_traceblock as defined below.
- local_auth_ boolenabled 
- Whether to enable local auth? Defaults to true.
- location str
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name str
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- primary_access_ strkey 
- The primary access key for the Web PubSub service.
- primary_connection_ strstring 
- The primary connection string for the Web PubSub service.
- public_network_ boolaccess_ enabled 
- Whether to enable public network access? Defaults to true.
- public_port int
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resource_group_ strname 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- secondary_access_ strkey 
- The secondary access key for the Web PubSub service.
- secondary_connection_ strstring 
- The secondary connection string for the Web PubSub service.
- server_port int
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- sku str
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- tls_client_ boolcert_ enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- version str
- aadAuth BooleanEnabled 
- Whether to enable AAD auth? Defaults to true.
- capacity Number
- Specifies the number of units associated with this Web PubSub resource. Valid values are - 1,- 2,- 3,- 4,- 5,- 6,- 7,- 8,- 9,- 10,- 20,- 30,- 40,- 50,- 60,- 70,- 80,- 90,- 100,- 200,- 300,- 400,- 500,- 600,- 700,- 800,- 900and- 1000.- NOTE: The valid capacity range for sku - Free_F1is- 1, for sku- Premium_P2is from- 100to- 1000, and from- 1to- 100for sku- Standard_S1and- Premium_P1.
- externalIp String
- The publicly accessible IP of the Web PubSub service.
- hostname String
- The FQDN of the Web PubSub service.
- identity Property Map
- An identityblock as defined below.
- liveTrace Property Map
- A live_traceblock as defined below.
- localAuth BooleanEnabled 
- Whether to enable local auth? Defaults to true.
- location String
- Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created.
- name String
- The name of the Web PubSub service. Changing this forces a new resource to be created.
- primaryAccess StringKey 
- The primary access key for the Web PubSub service.
- primaryConnection StringString 
- The primary connection string for the Web PubSub service.
- publicNetwork BooleanAccess Enabled 
- Whether to enable public network access? Defaults to true.
- publicPort Number
- The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resourceGroup StringName 
- The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created.
- secondaryAccess StringKey 
- The secondary access key for the Web PubSub service.
- secondaryConnection StringString 
- The secondary connection string for the Web PubSub service.
- serverPort Number
- The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- sku String
- Specifies which SKU to use. Possible values are Free_F1,Standard_S1,Premium_P1andPremium_P2.
- Map<String>
- A mapping of tags to assign to the resource.
- tlsClient BooleanCert Enabled 
- Whether to request client certificate during TLS handshake? Defaults to false.
- version String
Supporting Types
ServiceIdentity, ServiceIdentityArgs    
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Web PubSub. Possible values are SystemAssigned,UserAssigned.
- IdentityIds List<string>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub. - NOTE: This is required when - typeis set to- UserAssigned
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Web PubSub. Possible values are SystemAssigned,UserAssigned.
- IdentityIds []string
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub. - NOTE: This is required when - typeis set to- UserAssigned
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this Web PubSub. Possible values are SystemAssigned,UserAssigned.
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub. - NOTE: This is required when - typeis set to- UserAssigned
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
- type string
- Specifies the type of Managed Service Identity that should be configured on this Web PubSub. Possible values are SystemAssigned,UserAssigned.
- identityIds string[]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub. - NOTE: This is required when - typeis set to- UserAssigned
- principalId string
- The Principal ID associated with this Managed Service Identity.
- tenantId string
- The Tenant ID associated with this Managed Service Identity.
- type str
- Specifies the type of Managed Service Identity that should be configured on this Web PubSub. Possible values are SystemAssigned,UserAssigned.
- identity_ids Sequence[str]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub. - NOTE: This is required when - typeis set to- UserAssigned
- principal_id str
- The Principal ID associated with this Managed Service Identity.
- tenant_id str
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this Web PubSub. Possible values are SystemAssigned,UserAssigned.
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub. - NOTE: This is required when - typeis set to- UserAssigned
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
ServiceLiveTrace, ServiceLiveTraceArgs      
- ConnectivityLogs boolEnabled 
- Whether the log category ConnectivityLogsis enabled? Defaults totrue
- Enabled bool
- Whether the live trace is enabled? Defaults to true.
- HttpRequest boolLogs Enabled 
- Whether the log category HttpRequestLogsis enabled? Defaults totrue
- MessagingLogs boolEnabled 
- Whether the log category MessagingLogsis enabled? Defaults totrue
- ConnectivityLogs boolEnabled 
- Whether the log category ConnectivityLogsis enabled? Defaults totrue
- Enabled bool
- Whether the live trace is enabled? Defaults to true.
- HttpRequest boolLogs Enabled 
- Whether the log category HttpRequestLogsis enabled? Defaults totrue
- MessagingLogs boolEnabled 
- Whether the log category MessagingLogsis enabled? Defaults totrue
- connectivityLogs BooleanEnabled 
- Whether the log category ConnectivityLogsis enabled? Defaults totrue
- enabled Boolean
- Whether the live trace is enabled? Defaults to true.
- httpRequest BooleanLogs Enabled 
- Whether the log category HttpRequestLogsis enabled? Defaults totrue
- messagingLogs BooleanEnabled 
- Whether the log category MessagingLogsis enabled? Defaults totrue
- connectivityLogs booleanEnabled 
- Whether the log category ConnectivityLogsis enabled? Defaults totrue
- enabled boolean
- Whether the live trace is enabled? Defaults to true.
- httpRequest booleanLogs Enabled 
- Whether the log category HttpRequestLogsis enabled? Defaults totrue
- messagingLogs booleanEnabled 
- Whether the log category MessagingLogsis enabled? Defaults totrue
- connectivity_logs_ boolenabled 
- Whether the log category ConnectivityLogsis enabled? Defaults totrue
- enabled bool
- Whether the live trace is enabled? Defaults to true.
- http_request_ boollogs_ enabled 
- Whether the log category HttpRequestLogsis enabled? Defaults totrue
- messaging_logs_ boolenabled 
- Whether the log category MessagingLogsis enabled? Defaults totrue
- connectivityLogs BooleanEnabled 
- Whether the log category ConnectivityLogsis enabled? Defaults totrue
- enabled Boolean
- Whether the live trace is enabled? Defaults to true.
- httpRequest BooleanLogs Enabled 
- Whether the log category HttpRequestLogsis enabled? Defaults totrue
- messagingLogs BooleanEnabled 
- Whether the log category MessagingLogsis enabled? Defaults totrue
Import
Web PubSub services can be imported using the resource id, e.g.
$ pulumi import azure:webpubsub/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/pubsub1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.