GetService

Use this data source to access information about an existing Azure SignalR service.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.SignalR.GetService.InvokeAsync(new Azure.SignalR.GetServiceArgs
        {
            Name = "test-signalr",
            ResourceGroupName = "signalr-resource-group",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/signalr"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := signalr.LookupService(ctx, &signalr.LookupServiceArgs{
            Name:              "test-signalr",
            ResourceGroupName: "signalr-resource-group",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.signalr.get_service(name="test-signalr",
    resource_group_name="signalr-resource-group")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.signalr.getService({
    name: "test-signalr",
    resourceGroupName: "signalr-resource-group",
}, { async: true }));

Using GetService

function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function  get_service(name=None, resource_group_name=None, opts=None)
func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)

Note: This function is named LookupService in the Go SDK.

public static class GetService {
    public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specifies the name of the SignalR service.

ResourceGroupName string

Specifies the name of the resource group the SignalR service is located in.

Name string

Specifies the name of the SignalR service.

ResourceGroupName string

Specifies the name of the resource group the SignalR service is located in.

name string

Specifies the name of the SignalR service.

resourceGroupName string

Specifies the name of the resource group the SignalR service is located in.

name str

Specifies the name of the SignalR service.

resource_group_name str

Specifies the name of the resource group the SignalR service is located in.

GetService Result

The following output properties are available:

Hostname string

The FQDN of the SignalR service.

Id string

The provider-assigned unique ID for this managed resource.

IpAddress string

The publicly accessible IP of the SignalR service.

Location string

Specifies the supported Azure location where the SignalR service exists.

Name string
PrimaryAccessKey string

The primary access key of the SignalR service.

PrimaryConnectionString string

The primary connection string of the SignalR service.

PublicPort int

The publicly accessible port of the SignalR service which is designed for browser/client use.

ResourceGroupName string
SecondaryAccessKey string

The secondary access key of the SignalR service.

SecondaryConnectionString string

The secondary connection string of the SignalR service.

ServerPort int

The publicly accessible port of the SignalR service which is designed for customer server side use.

Tags Dictionary<string, string>
Hostname string

The FQDN of the SignalR service.

Id string

The provider-assigned unique ID for this managed resource.

IpAddress string

The publicly accessible IP of the SignalR service.

Location string

Specifies the supported Azure location where the SignalR service exists.

Name string
PrimaryAccessKey string

The primary access key of the SignalR service.

PrimaryConnectionString string

The primary connection string of the SignalR service.

PublicPort int

The publicly accessible port of the SignalR service which is designed for browser/client use.

ResourceGroupName string
SecondaryAccessKey string

The secondary access key of the SignalR service.

SecondaryConnectionString string

The secondary connection string of the SignalR service.

ServerPort int

The publicly accessible port of the SignalR service which is designed for customer server side use.

Tags map[string]string
hostname string

The FQDN of the SignalR service.

id string

The provider-assigned unique ID for this managed resource.

ipAddress string

The publicly accessible IP of the SignalR service.

location string

Specifies the supported Azure location where the SignalR service exists.

name string
primaryAccessKey string

The primary access key of the SignalR service.

primaryConnectionString string

The primary connection string of the SignalR service.

publicPort number

The publicly accessible port of the SignalR service which is designed for browser/client use.

resourceGroupName string
secondaryAccessKey string

The secondary access key of the SignalR service.

secondaryConnectionString string

The secondary connection string of the SignalR service.

serverPort number

The publicly accessible port of the SignalR service which is designed for customer server side use.

tags {[key: string]: string}
hostname str

The FQDN of the SignalR service.

id str

The provider-assigned unique ID for this managed resource.

ip_address str

The publicly accessible IP of the SignalR service.

location str

Specifies the supported Azure location where the SignalR service exists.

name str
primary_access_key str

The primary access key of the SignalR service.

primary_connection_string str

The primary connection string of the SignalR service.

public_port float

The publicly accessible port of the SignalR service which is designed for browser/client use.

resource_group_name str
secondary_access_key str

The secondary access key of the SignalR service.

secondary_connection_string str

The secondary connection string of the SignalR service.

server_port float

The publicly accessible port of the SignalR service which is designed for customer server side use.

tags Dict[str, str]

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.