We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Import
Service Fabric Mesh Secret Value can be imported using the resource id, e.g.
$ pulumi import azure:servicefabric/meshSecretValue:MeshSecretValue value1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceFabricMesh/secrets/secret1/values/value1
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleMeshSecret = new Azure.ServiceFabric.MeshSecret("exampleMeshSecret", new Azure.ServiceFabric.MeshSecretArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleMeshSecretValue = new Azure.ServiceFabric.MeshSecretValue("exampleMeshSecretValue", new Azure.ServiceFabric.MeshSecretValueArgs
{
ServiceFabricMeshSecretId = azurerm_service_fabric_mesh_secret_inline.Test.Id,
Location = azurerm_resource_group.Test.Location,
Value = "testValue",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/servicefabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = servicefabric.NewMeshSecret(ctx, "exampleMeshSecret", &servicefabric.MeshSecretArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
_, err = servicefabric.NewMeshSecretValue(ctx, "exampleMeshSecretValue", &servicefabric.MeshSecretValueArgs{
ServiceFabricMeshSecretId: pulumi.Any(azurerm_service_fabric_mesh_secret_inline.Test.Id),
Location: pulumi.Any(azurerm_resource_group.Test.Location),
Value: pulumi.String("testValue"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleMeshSecret = new azure.servicefabric.MeshSecret("exampleMeshSecret", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleMeshSecretValue = new azure.servicefabric.MeshSecretValue("exampleMeshSecretValue", {
serviceFabricMeshSecretId: azurerm_service_fabric_mesh_secret_inline.test.id,
location: azurerm_resource_group.test.location,
value: "testValue",
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_mesh_secret = azure.servicefabric.MeshSecret("exampleMeshSecret",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_mesh_secret_value = azure.servicefabric.MeshSecretValue("exampleMeshSecretValue",
service_fabric_mesh_secret_id=azurerm_service_fabric_mesh_secret_inline["test"]["id"],
location=azurerm_resource_group["test"]["location"],
value="testValue")
Example coming soon!
Create MeshSecretValue Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MeshSecretValue(name: string, args: MeshSecretValueArgs, opts?: CustomResourceOptions);@overload
def MeshSecretValue(resource_name: str,
args: MeshSecretValueArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MeshSecretValue(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_fabric_mesh_secret_id: Optional[str] = None,
value: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewMeshSecretValue(ctx *Context, name string, args MeshSecretValueArgs, opts ...ResourceOption) (*MeshSecretValue, error)public MeshSecretValue(string name, MeshSecretValueArgs args, CustomResourceOptions? opts = null)
public MeshSecretValue(String name, MeshSecretValueArgs args)
public MeshSecretValue(String name, MeshSecretValueArgs args, CustomResourceOptions options)
type: azure:servicefabric:MeshSecretValue
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 MeshSecretValueArgs
- 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 MeshSecretValueArgs
- 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 MeshSecretValueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MeshSecretValueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MeshSecretValueArgs
- 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 meshSecretValueResource = new Azure.ServiceFabric.MeshSecretValue("meshSecretValueResource", new()
{
ServiceFabricMeshSecretId = "string",
Value = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := servicefabric.NewMeshSecretValue(ctx, "meshSecretValueResource", &servicefabric.MeshSecretValueArgs{
ServiceFabricMeshSecretId: pulumi.String("string"),
Value: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var meshSecretValueResource = new MeshSecretValue("meshSecretValueResource", MeshSecretValueArgs.builder()
.serviceFabricMeshSecretId("string")
.value("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
mesh_secret_value_resource = azure.servicefabric.MeshSecretValue("meshSecretValueResource",
service_fabric_mesh_secret_id="string",
value="string",
location="string",
name="string",
tags={
"string": "string",
})
const meshSecretValueResource = new azure.servicefabric.MeshSecretValue("meshSecretValueResource", {
serviceFabricMeshSecretId: "string",
value: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:servicefabric:MeshSecretValue
properties:
location: string
name: string
serviceFabricMeshSecretId: string
tags:
string: string
value: string
MeshSecretValue 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 MeshSecretValue resource accepts the following input properties:
- Service
Fabric stringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- Value string
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- Location string
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Service
Fabric stringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- Value string
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- Location string
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- service
Fabric StringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- value String
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location String
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- service
Fabric stringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- value string
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location string
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name string
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- service_
fabric_ strmesh_ secret_ id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- value str
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location str
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name str
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- service
Fabric StringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- value String
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location String
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MeshSecretValue resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MeshSecretValue Resource
Get an existing MeshSecretValue 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?: MeshSecretValueState, opts?: CustomResourceOptions): MeshSecretValue@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
name: Optional[str] = None,
service_fabric_mesh_secret_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
value: Optional[str] = None) -> MeshSecretValuefunc GetMeshSecretValue(ctx *Context, name string, id IDInput, state *MeshSecretValueState, opts ...ResourceOption) (*MeshSecretValue, error)public static MeshSecretValue Get(string name, Input<string> id, MeshSecretValueState? state, CustomResourceOptions? opts = null)public static MeshSecretValue get(String name, Output<String> id, MeshSecretValueState state, CustomResourceOptions options)resources: _: type: azure:servicefabric:MeshSecretValue get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Location string
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- Service
Fabric stringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Value string
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- Location string
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- Service
Fabric stringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- Value string
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location String
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- service
Fabric StringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- value String
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location string
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name string
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- service
Fabric stringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- value string
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location str
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name str
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- service_
fabric_ strmesh_ secret_ id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- value str
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
- location String
- Specifies the Azure Region where the Service Fabric Mesh Secret Value should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Secret Value. Changing this forces a new resource to be created.
- service
Fabric StringMesh Secret Id - The id of the Service Fabric Mesh Secret in which the value will be applied to. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- value String
- Specifies the value that will be applied to the Service Fabric Mesh Secret. Changing this forces a new resource to be created.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
