azure-native.signalrservice.SignalRReplica
Explore with Pulumi AI
A class represent a replica resource. Azure REST API version: 2023-03-01-preview.
Other available API versions: 2023-06-01-preview, 2023-08-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview, 2024-08-01-preview, 2024-10-01-preview.
Example Usage
SignalRReplicas_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var signalRReplica = new AzureNative.SignalRService.SignalRReplica("signalRReplica", new()
    {
        Location = "eastus",
        ReplicaName = "mySignalRService-eastus",
        ResourceGroupName = "myResourceGroup",
        ResourceName = "mySignalRService",
        Sku = new AzureNative.SignalRService.Inputs.ResourceSkuArgs
        {
            Capacity = 1,
            Name = "Premium_P1",
            Tier = AzureNative.SignalRService.SignalRSkuTier.Premium,
        },
        Tags = 
        {
            { "key1", "value1" },
        },
    });
});
package main
import (
	signalrservice "github.com/pulumi/pulumi-azure-native-sdk/signalrservice/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := signalrservice.NewSignalRReplica(ctx, "signalRReplica", &signalrservice.SignalRReplicaArgs{
			Location:          pulumi.String("eastus"),
			ReplicaName:       pulumi.String("mySignalRService-eastus"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
			ResourceName:      pulumi.String("mySignalRService"),
			Sku: &signalrservice.ResourceSkuArgs{
				Capacity: pulumi.Int(1),
				Name:     pulumi.String("Premium_P1"),
				Tier:     pulumi.String(signalrservice.SignalRSkuTierPremium),
			},
			Tags: pulumi.StringMap{
				"key1": pulumi.String("value1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.signalrservice.SignalRReplica;
import com.pulumi.azurenative.signalrservice.SignalRReplicaArgs;
import com.pulumi.azurenative.signalrservice.inputs.ResourceSkuArgs;
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 signalRReplica = new SignalRReplica("signalRReplica", SignalRReplicaArgs.builder()
            .location("eastus")
            .replicaName("mySignalRService-eastus")
            .resourceGroupName("myResourceGroup")
            .resourceName("mySignalRService")
            .sku(ResourceSkuArgs.builder()
                .capacity(1)
                .name("Premium_P1")
                .tier("Premium")
                .build())
            .tags(Map.of("key1", "value1"))
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const signalRReplica = new azure_native.signalrservice.SignalRReplica("signalRReplica", {
    location: "eastus",
    replicaName: "mySignalRService-eastus",
    resourceGroupName: "myResourceGroup",
    resourceName: "mySignalRService",
    sku: {
        capacity: 1,
        name: "Premium_P1",
        tier: azure_native.signalrservice.SignalRSkuTier.Premium,
    },
    tags: {
        key1: "value1",
    },
});
import pulumi
import pulumi_azure_native as azure_native
signal_r_replica = azure_native.signalrservice.SignalRReplica("signalRReplica",
    location="eastus",
    replica_name="mySignalRService-eastus",
    resource_group_name="myResourceGroup",
    resource_name_="mySignalRService",
    sku={
        "capacity": 1,
        "name": "Premium_P1",
        "tier": azure_native.signalrservice.SignalRSkuTier.PREMIUM,
    },
    tags={
        "key1": "value1",
    })
resources:
  signalRReplica:
    type: azure-native:signalrservice:SignalRReplica
    properties:
      location: eastus
      replicaName: mySignalRService-eastus
      resourceGroupName: myResourceGroup
      resourceName: mySignalRService
      sku:
        capacity: 1
        name: Premium_P1
        tier: Premium
      tags:
        key1: value1
Create SignalRReplica Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SignalRReplica(name: string, args: SignalRReplicaArgs, opts?: CustomResourceOptions);@overload
def SignalRReplica(resource_name: str,
                   args: SignalRReplicaArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def SignalRReplica(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   resource_group_name: Optional[str] = None,
                   resource_name_: Optional[str] = None,
                   location: Optional[str] = None,
                   replica_name: Optional[str] = None,
                   sku: Optional[ResourceSkuArgs] = None,
                   tags: Optional[Mapping[str, str]] = None)func NewSignalRReplica(ctx *Context, name string, args SignalRReplicaArgs, opts ...ResourceOption) (*SignalRReplica, error)public SignalRReplica(string name, SignalRReplicaArgs args, CustomResourceOptions? opts = null)
public SignalRReplica(String name, SignalRReplicaArgs args)
public SignalRReplica(String name, SignalRReplicaArgs args, CustomResourceOptions options)
type: azure-native:signalrservice:SignalRReplica
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 SignalRReplicaArgs
- 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 SignalRReplicaArgs
- 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 SignalRReplicaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SignalRReplicaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SignalRReplicaArgs
- 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 signalRReplicaResource = new AzureNative.SignalRService.SignalRReplica("signalRReplicaResource", new()
{
    ResourceGroupName = "string",
    ResourceName = "string",
    Location = "string",
    ReplicaName = "string",
    Sku = new AzureNative.SignalRService.Inputs.ResourceSkuArgs
    {
        Name = "string",
        Capacity = 0,
        Tier = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := signalrservice.NewSignalRReplica(ctx, "signalRReplicaResource", &signalrservice.SignalRReplicaArgs{
	ResourceGroupName: pulumi.String("string"),
	ResourceName:      pulumi.String("string"),
	Location:          pulumi.String("string"),
	ReplicaName:       pulumi.String("string"),
	Sku: &signalrservice.ResourceSkuArgs{
		Name:     pulumi.String("string"),
		Capacity: pulumi.Int(0),
		Tier:     pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var signalRReplicaResource = new SignalRReplica("signalRReplicaResource", SignalRReplicaArgs.builder()
    .resourceGroupName("string")
    .resourceName("string")
    .location("string")
    .replicaName("string")
    .sku(ResourceSkuArgs.builder()
        .name("string")
        .capacity(0)
        .tier("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
signal_r_replica_resource = azure_native.signalrservice.SignalRReplica("signalRReplicaResource",
    resource_group_name="string",
    resource_name_="string",
    location="string",
    replica_name="string",
    sku={
        "name": "string",
        "capacity": 0,
        "tier": "string",
    },
    tags={
        "string": "string",
    })
const signalRReplicaResource = new azure_native.signalrservice.SignalRReplica("signalRReplicaResource", {
    resourceGroupName: "string",
    resourceName: "string",
    location: "string",
    replicaName: "string",
    sku: {
        name: "string",
        capacity: 0,
        tier: "string",
    },
    tags: {
        string: "string",
    },
});
type: azure-native:signalrservice:SignalRReplica
properties:
    location: string
    replicaName: string
    resourceGroupName: string
    resourceName: string
    sku:
        capacity: 0
        name: string
        tier: string
    tags:
        string: string
SignalRReplica 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 SignalRReplica resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the resource.
- Location string
- The geo-location where the resource lives
- ReplicaName string
- The name of the replica.
- Sku
Pulumi.Azure Native. Signal RService. Inputs. Resource Sku 
- The billing information of the resource.
- Dictionary<string, string>
- Resource tags.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ResourceName string
- The name of the resource.
- Location string
- The geo-location where the resource lives
- ReplicaName string
- The name of the replica.
- Sku
ResourceSku Args 
- The billing information of the resource.
- map[string]string
- Resource tags.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the resource.
- location String
- The geo-location where the resource lives
- replicaName String
- The name of the replica.
- sku
ResourceSku 
- The billing information of the resource.
- Map<String,String>
- Resource tags.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- resourceName string
- The name of the resource.
- location string
- The geo-location where the resource lives
- replicaName string
- The name of the replica.
- sku
ResourceSku 
- The billing information of the resource.
- {[key: string]: string}
- Resource tags.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- resource_name str
- The name of the resource.
- location str
- The geo-location where the resource lives
- replica_name str
- The name of the replica.
- sku
ResourceSku Args 
- The billing information of the resource.
- Mapping[str, str]
- Resource tags.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- resourceName String
- The name of the resource.
- location String
- The geo-location where the resource lives
- replicaName String
- The name of the replica.
- sku Property Map
- The billing information of the resource.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SignalRReplica resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning state of the resource.
- SystemData Pulumi.Azure Native. Signal RService. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning state of the resource.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Provisioning state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioningState string
- Provisioning state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_state str
- Provisioning state of the resource.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioningState String
- Provisioning state of the resource.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ResourceSku, ResourceSkuArgs    
- Name string
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- Capacity int
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- Tier
string | Pulumi.Azure Native. Signal RService. Signal RSku Tier 
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- Name string
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- Capacity int
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- Tier
string | SignalRSku Tier 
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- name String
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- capacity Integer
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier
String | SignalRSku Tier 
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- name string
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- capacity number
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier
string | SignalRSku Tier 
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- name str
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- capacity int
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier
str | SignalRSku Tier 
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- name String
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- capacity Number
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier String | "Free" | "Basic" | "Standard" | "Premium"
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
ResourceSkuResponse, ResourceSkuResponseArgs      
- Family string
- Not used. Retained for future use.
- Name string
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- Size string
- Not used. Retained for future use.
- Capacity int
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- Tier string
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- Family string
- Not used. Retained for future use.
- Name string
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- Size string
- Not used. Retained for future use.
- Capacity int
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- Tier string
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- family String
- Not used. Retained for future use.
- name String
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- size String
- Not used. Retained for future use.
- capacity Integer
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier String
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- family string
- Not used. Retained for future use.
- name string
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- size string
- Not used. Retained for future use.
- capacity number
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier string
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- family str
- Not used. Retained for future use.
- name str
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- size str
- Not used. Retained for future use.
- capacity int
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier str
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
- family String
- Not used. Retained for future use.
- name String
- The name of the SKU. Required. - Allowed values: Standard_S1, Free_F1, Premium_P1 
- size String
- Not used. Retained for future use.
- capacity Number
- Optional, integer. The unit count of the resource. 1 by default. - If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; 
- tier String
- Optional tier of this particular SKU. 'Standard' or 'Free'. - Basicis deprecated, use- Standardinstead.
SignalRSkuTier, SignalRSkuTierArgs      
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- SignalRSku Tier Free 
- Free
- SignalRSku Tier Basic 
- Basic
- SignalRSku Tier Standard 
- Standard
- SignalRSku Tier Premium 
- Premium
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- FREE
- Free
- BASIC
- Basic
- STANDARD
- Standard
- PREMIUM
- Premium
- "Free"
- Free
- "Basic"
- Basic
- "Standard"
- Standard
- "Premium"
- Premium
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:signalrservice:SignalRReplica mySignalRService-eastus /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0