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:
- Resource
Group 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_P1
andPremium_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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- Identity
Service
Identity - An
identity
block as defined below. - Live
Trace ServiceLive Trace - A
live_trace
block as defined below. - Local
Auth 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.
- Public
Network boolAccess Enabled - Whether to enable public network access? Defaults to
true
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Tls
Client boolCert Enabled - Whether to request client certificate during TLS handshake? Defaults to
false
.
- Resource
Group 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_P1
andPremium_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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- Identity
Service
Identity Args - An
identity
block as defined below. - Live
Trace ServiceLive Trace Args - A
live_trace
block as defined below. - Local
Auth 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.
- Public
Network boolAccess Enabled - Whether to enable public network access? Defaults to
true
. - map[string]string
- A mapping of tags to assign to the resource.
- Tls
Client boolCert Enabled - Whether to request client certificate during TLS handshake? Defaults to
false
.
- resource
Group 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_P1
andPremium_P2
. - aad
Auth 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- identity
Service
Identity - An
identity
block as defined below. - live
Trace ServiceLive Trace - A
live_trace
block as defined below. - local
Auth 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.
- public
Network BooleanAccess Enabled - Whether to enable public network access? Defaults to
true
. - Map<String,String>
- A mapping of tags to assign to the resource.
- tls
Client BooleanCert Enabled - Whether to request client certificate during TLS handshake? Defaults to
false
.
- resource
Group 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_P1
andPremium_P2
. - aad
Auth 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- identity
Service
Identity - An
identity
block as defined below. - live
Trace ServiceLive Trace - A
live_trace
block as defined below. - local
Auth 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.
- public
Network booleanAccess Enabled - Whether to enable public network access? Defaults to
true
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- tls
Client 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_P1
andPremium_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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- identity
Service
Identity Args - An
identity
block as defined below. - live_
trace ServiceLive Trace Args - A
live_trace
block 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
.
- resource
Group 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_P1
andPremium_P2
. - aad
Auth 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- identity Property Map
- An
identity
block as defined below. - live
Trace Property Map - A
live_trace
block as defined below. - local
Auth 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.
- public
Network BooleanAccess Enabled - Whether to enable public network access? Defaults to
true
. - Map<String>
- A mapping of tags to assign to the resource.
- tls
Client 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:
- External
Ip 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.
- Primary
Access stringKey - The primary access key for the Web PubSub service.
- Primary
Connection stringString - 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 stringKey - The secondary access key for the Web PubSub service.
- Secondary
Connection stringString - 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 string
- External
Ip 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.
- Primary
Access stringKey - The primary access key for the Web PubSub service.
- Primary
Connection stringString - 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 stringKey - The secondary access key for the Web PubSub service.
- Secondary
Connection stringString - 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 string
- external
Ip 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.
- primary
Access StringKey - The primary access key for the Web PubSub service.
- primary
Connection StringString - The primary connection string for the Web PubSub service.
- public
Port Integer - The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondary
Access StringKey - The secondary access key for the Web PubSub service.
- secondary
Connection StringString - The secondary connection string for the Web PubSub service.
- server
Port Integer - The publicly accessible port of the Web PubSub service which is designed for customer server side use.
- version String
- external
Ip 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.
- primary
Access stringKey - The primary access key for the Web PubSub service.
- primary
Connection stringString - The primary connection string for the Web PubSub service.
- public
Port number - The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondary
Access stringKey - The secondary access key for the Web PubSub service.
- secondary
Connection stringString - The secondary connection string for the Web PubSub service.
- server
Port 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
- external
Ip 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.
- primary
Access StringKey - The primary access key for the Web PubSub service.
- primary
Connection StringString - The primary connection string for the Web PubSub service.
- public
Port Number - The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- secondary
Access StringKey - The secondary access key for the Web PubSub service.
- secondary
Connection StringString - The secondary connection string for the Web PubSub service.
- server
Port 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) -> Service
func 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)
Resource lookup is not supported in YAML
- 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.
- 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- External
Ip string - The publicly accessible IP of the Web PubSub service.
- Hostname string
- The FQDN of the Web PubSub service.
- Identity
Service
Identity - An
identity
block as defined below. - Live
Trace ServiceLive Trace - A
live_trace
block as defined below. - Local
Auth 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.
- Primary
Access stringKey - The primary access key for the Web PubSub service.
- Primary
Connection stringString - 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 stringName - 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 stringKey - The secondary access key for the Web PubSub service.
- Secondary
Connection stringString - 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 string
- Specifies which SKU to use. Possible values are
Free_F1
,Standard_S1
,Premium_P1
andPremium_P2
. - Dictionary<string, string>
- 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 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- External
Ip string - The publicly accessible IP of the Web PubSub service.
- Hostname string
- The FQDN of the Web PubSub service.
- Identity
Service
Identity Args - An
identity
block as defined below. - Live
Trace ServiceLive Trace Args - A
live_trace
block as defined below. - Local
Auth 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.
- Primary
Access stringKey - The primary access key for the Web PubSub service.
- Primary
Connection stringString - 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 stringName - 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 stringKey - The secondary access key for the Web PubSub service.
- Secondary
Connection stringString - 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 string
- Specifies which SKU to use. Possible values are
Free_F1
,Standard_S1
,Premium_P1
andPremium_P2
. - map[string]string
- 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 string
- aad
Auth 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- external
Ip String - The publicly accessible IP of the Web PubSub service.
- hostname String
- The FQDN of the Web PubSub service.
- identity
Service
Identity - An
identity
block as defined below. - live
Trace ServiceLive Trace - A
live_trace
block as defined below. - local
Auth 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.
- primary
Access StringKey - The primary access key for the Web PubSub service.
- primary
Connection StringString - The primary connection string for the Web PubSub service.
- public
Network BooleanAccess Enabled - Whether to enable public network access? Defaults to
true
. - public
Port Integer - The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resource
Group StringName - 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 StringKey - The secondary access key for the Web PubSub service.
- secondary
Connection StringString - The secondary connection string for the Web PubSub service.
- server
Port 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_P1
andPremium_P2
. - Map<String,String>
- A mapping of tags to assign to the resource.
- tls
Client BooleanCert Enabled - Whether to request client certificate during TLS handshake? Defaults to
false
. - version String
- aad
Auth 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- external
Ip string - The publicly accessible IP of the Web PubSub service.
- hostname string
- The FQDN of the Web PubSub service.
- identity
Service
Identity - An
identity
block as defined below. - live
Trace ServiceLive Trace - A
live_trace
block as defined below. - local
Auth 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.
- primary
Access stringKey - The primary access key for the Web PubSub service.
- primary
Connection stringString - The primary connection string for the Web PubSub service.
- public
Network booleanAccess Enabled - Whether to enable public network access? Defaults to
true
. - public
Port number - The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resource
Group stringName - 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 stringKey - The secondary access key for the Web PubSub service.
- secondary
Connection stringString - The secondary connection string for the Web PubSub service.
- server
Port 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_P1
andPremium_P2
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- tls
Client 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- external_
ip str - The publicly accessible IP of the Web PubSub service.
- hostname str
- The FQDN of the Web PubSub service.
- identity
Service
Identity Args - An
identity
block as defined below. - live_
trace ServiceLive Trace Args - A
live_trace
block 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_P1
andPremium_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
- aad
Auth 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
,900
and1000
.NOTE: The valid capacity range for sku
Free_F1
is1
, for skuPremium_P2
is from100
to1000
, and from1
to100
for skuStandard_S1
andPremium_P1
.- external
Ip String - The publicly accessible IP of the Web PubSub service.
- hostname String
- The FQDN of the Web PubSub service.
- identity Property Map
- An
identity
block as defined below. - live
Trace Property Map - A
live_trace
block as defined below. - local
Auth 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.
- primary
Access StringKey - The primary access key for the Web PubSub service.
- primary
Connection StringString - The primary connection string for the Web PubSub service.
- public
Network BooleanAccess Enabled - Whether to enable public network access? Defaults to
true
. - public
Port Number - The publicly accessible port of the Web PubSub service which is designed for browser/client use.
- resource
Group StringName - 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 StringKey - The secondary access key for the Web PubSub service.
- secondary
Connection StringString - The secondary connection string for the Web PubSub service.
- server
Port 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_P1
andPremium_P2
. - Map<String>
- A mapping of tags to assign to the resource.
- tls
Client 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
. - Identity
Ids List<string> Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub.
NOTE: This is required when
type
is set toUserAssigned
- Principal
Id string - The Principal ID associated with this Managed Service Identity.
- Tenant
Id 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
. - Identity
Ids []string Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub.
NOTE: This is required when
type
is set toUserAssigned
- Principal
Id string - The Principal ID associated with this Managed Service Identity.
- Tenant
Id 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
. - identity
Ids List<String> Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub.
NOTE: This is required when
type
is set toUserAssigned
- principal
Id String - The Principal ID associated with this Managed Service Identity.
- tenant
Id 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
. - identity
Ids string[] Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub.
NOTE: This is required when
type
is set toUserAssigned
- principal
Id string - The Principal ID associated with this Managed Service Identity.
- tenant
Id 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
type
is set toUserAssigned
- 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
. - identity
Ids List<String> Specifies a list of User Assigned Managed Identity IDs to be assigned to this Web PubSub.
NOTE: This is required when
type
is set toUserAssigned
- principal
Id String - The Principal ID associated with this Managed Service Identity.
- tenant
Id String - The Tenant ID associated with this Managed Service Identity.
ServiceLiveTrace, ServiceLiveTraceArgs
- Connectivity
Logs boolEnabled - Whether the log category
ConnectivityLogs
is enabled? Defaults totrue
- Enabled bool
- Whether the live trace is enabled? Defaults to
true
. - Http
Request boolLogs Enabled - Whether the log category
HttpRequestLogs
is enabled? Defaults totrue
- Messaging
Logs boolEnabled - Whether the log category
MessagingLogs
is enabled? Defaults totrue
- Connectivity
Logs boolEnabled - Whether the log category
ConnectivityLogs
is enabled? Defaults totrue
- Enabled bool
- Whether the live trace is enabled? Defaults to
true
. - Http
Request boolLogs Enabled - Whether the log category
HttpRequestLogs
is enabled? Defaults totrue
- Messaging
Logs boolEnabled - Whether the log category
MessagingLogs
is enabled? Defaults totrue
- connectivity
Logs BooleanEnabled - Whether the log category
ConnectivityLogs
is enabled? Defaults totrue
- enabled Boolean
- Whether the live trace is enabled? Defaults to
true
. - http
Request BooleanLogs Enabled - Whether the log category
HttpRequestLogs
is enabled? Defaults totrue
- messaging
Logs BooleanEnabled - Whether the log category
MessagingLogs
is enabled? Defaults totrue
- connectivity
Logs booleanEnabled - Whether the log category
ConnectivityLogs
is enabled? Defaults totrue
- enabled boolean
- Whether the live trace is enabled? Defaults to
true
. - http
Request booleanLogs Enabled - Whether the log category
HttpRequestLogs
is enabled? Defaults totrue
- messaging
Logs booleanEnabled - Whether the log category
MessagingLogs
is enabled? Defaults totrue
- connectivity_
logs_ boolenabled - Whether the log category
ConnectivityLogs
is enabled? Defaults totrue
- enabled bool
- Whether the live trace is enabled? Defaults to
true
. - http_
request_ boollogs_ enabled - Whether the log category
HttpRequestLogs
is enabled? Defaults totrue
- messaging_
logs_ boolenabled - Whether the log category
MessagingLogs
is enabled? Defaults totrue
- connectivity
Logs BooleanEnabled - Whether the log category
ConnectivityLogs
is enabled? Defaults totrue
- enabled Boolean
- Whether the live trace is enabled? Defaults to
true
. - http
Request BooleanLogs Enabled - Whether the log category
HttpRequestLogs
is enabled? Defaults totrue
- messaging
Logs BooleanEnabled - Whether the log category
MessagingLogs
is 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
azurerm
Terraform Provider.