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.
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 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",
})
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",
},
});
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the resource.
- Location string
- The geo-location where the resource lives
- Replica
Name 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.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the resource.
- Location string
- The geo-location where the resource lives
- Replica
Name string - The name of the replica.
- Sku
Resource
Sku Args - The billing information of the resource.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the resource.
- location String
- The geo-location where the resource lives
- replica
Name String - The name of the replica.
- sku
Resource
Sku - The billing information of the resource.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the resource.
- location string
- The geo-location where the resource lives
- replica
Name string - The name of the replica.
- sku
Resource
Sku - 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
Resource
Sku Args - The billing information of the resource.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the resource.
- location String
- The geo-location where the resource lives
- replica
Name 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
- Provisioning
State string - Provisioning state of the resource.
- System
Data 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
- Provisioning
State string - Provisioning state of the resource.
- System
Data 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
- provisioning
State String - Provisioning state of the resource.
- system
Data 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
- provisioning
State string - Provisioning state of the resource.
- system
Data 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
- provisioning
State String - Provisioning state of the resource.
- system
Data 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'.
Basic
is deprecated, useStandard
instead.
- 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 | Signal
RSku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- 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 | Signal
RSku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- 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 | Signal
RSku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- 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 | Signal
RSku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- 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'.
Basic
is deprecated, useStandard
instead.
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'.
Basic
is deprecated, useStandard
instead.
- 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'.
Basic
is deprecated, useStandard
instead.
- 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'.
Basic
is deprecated, useStandard
instead.
- 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'.
Basic
is deprecated, useStandard
instead.
- 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'.
Basic
is deprecated, useStandard
instead.
- 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'.
Basic
is deprecated, useStandard
instead.
SignalRSkuTier, SignalRSkuTierArgs
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Signal
RSku Tier Free - Free
- Signal
RSku Tier Basic - Basic
- Signal
RSku Tier Standard - Standard
- Signal
RSku 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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