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 Application can be imported using the resource id, e.g.
$ pulumi import azure:servicefabric/meshApplication:MeshApplication application1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceFabricMesh/applications/application1
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 exampleMeshApplication = new Azure.ServiceFabric.MeshApplication("exampleMeshApplication", new Azure.ServiceFabric.MeshApplicationArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Services =
{
new Azure.ServiceFabric.Inputs.MeshApplicationServiceArgs
{
Name = "testservice1",
OsType = "Linux",
CodePackages =
{
new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageArgs
{
Name = "testcodepackage1",
ImageName = "seabreeze/sbz-helloworld:1.0-alpine",
Resources = new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageResourcesArgs
{
Requests = new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageResourcesRequestsArgs
{
Memory = 1,
Cpu = 1,
},
},
},
},
},
},
});
}
}
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.NewMeshApplication(ctx, "exampleMeshApplication", &servicefabric.MeshApplicationArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Services: servicefabric.MeshApplicationServiceArray{
&servicefabric.MeshApplicationServiceArgs{
Name: pulumi.String("testservice1"),
OsType: pulumi.String("Linux"),
CodePackages: servicefabric.MeshApplicationServiceCodePackageArray{
&servicefabric.MeshApplicationServiceCodePackageArgs{
Name: pulumi.String("testcodepackage1"),
ImageName: pulumi.String("seabreeze/sbz-helloworld:1.0-alpine"),
Resources: &servicefabric.MeshApplicationServiceCodePackageResourcesArgs{
Requests: &servicefabric.MeshApplicationServiceCodePackageResourcesRequestsArgs{
Memory: pulumi.Float64(1),
Cpu: pulumi.Float64(1),
},
},
},
},
},
},
})
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 exampleMeshApplication = new azure.servicefabric.MeshApplication("exampleMeshApplication", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
services: [{
name: "testservice1",
osType: "Linux",
codePackages: [{
name: "testcodepackage1",
imageName: "seabreeze/sbz-helloworld:1.0-alpine",
resources: {
requests: {
memory: 1,
cpu: 1,
},
},
}],
}],
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_mesh_application = azure.servicefabric.MeshApplication("exampleMeshApplication",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
services=[azure.servicefabric.MeshApplicationServiceArgs(
name="testservice1",
os_type="Linux",
code_packages=[azure.servicefabric.MeshApplicationServiceCodePackageArgs(
name="testcodepackage1",
image_name="seabreeze/sbz-helloworld:1.0-alpine",
resources=azure.servicefabric.MeshApplicationServiceCodePackageResourcesArgs(
requests=azure.servicefabric.MeshApplicationServiceCodePackageResourcesRequestsArgs(
memory=1,
cpu=1,
),
),
)],
)])
Example coming soon!
Create MeshApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MeshApplication(name: string, args: MeshApplicationArgs, opts?: CustomResourceOptions);@overload
def MeshApplication(resource_name: str,
args: MeshApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MeshApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
services: Optional[Sequence[MeshApplicationServiceArgs]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewMeshApplication(ctx *Context, name string, args MeshApplicationArgs, opts ...ResourceOption) (*MeshApplication, error)public MeshApplication(string name, MeshApplicationArgs args, CustomResourceOptions? opts = null)
public MeshApplication(String name, MeshApplicationArgs args)
public MeshApplication(String name, MeshApplicationArgs args, CustomResourceOptions options)
type: azure:servicefabric:MeshApplication
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 MeshApplicationArgs
- 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 MeshApplicationArgs
- 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 MeshApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MeshApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MeshApplicationArgs
- 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 meshApplicationResource = new Azure.ServiceFabric.MeshApplication("meshApplicationResource", new()
{
ResourceGroupName = "string",
Services = new[]
{
new Azure.ServiceFabric.Inputs.MeshApplicationServiceArgs
{
CodePackages = new[]
{
new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageArgs
{
ImageName = "string",
Name = "string",
Resources = new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageResourcesArgs
{
Requests = new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageResourcesRequestsArgs
{
Cpu = 0,
Memory = 0,
},
Limits = new Azure.ServiceFabric.Inputs.MeshApplicationServiceCodePackageResourcesLimitsArgs
{
Cpu = 0,
Memory = 0,
},
},
},
},
Name = "string",
OsType = "string",
},
},
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := servicefabric.NewMeshApplication(ctx, "meshApplicationResource", &servicefabric.MeshApplicationArgs{
ResourceGroupName: pulumi.String("string"),
Services: servicefabric.MeshApplicationServiceArray{
&servicefabric.MeshApplicationServiceArgs{
CodePackages: servicefabric.MeshApplicationServiceCodePackageArray{
&servicefabric.MeshApplicationServiceCodePackageArgs{
ImageName: pulumi.String("string"),
Name: pulumi.String("string"),
Resources: &servicefabric.MeshApplicationServiceCodePackageResourcesArgs{
Requests: &servicefabric.MeshApplicationServiceCodePackageResourcesRequestsArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.Float64(0),
},
Limits: &servicefabric.MeshApplicationServiceCodePackageResourcesLimitsArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.Float64(0),
},
},
},
},
Name: pulumi.String("string"),
OsType: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var meshApplicationResource = new MeshApplication("meshApplicationResource", MeshApplicationArgs.builder()
.resourceGroupName("string")
.services(MeshApplicationServiceArgs.builder()
.codePackages(MeshApplicationServiceCodePackageArgs.builder()
.imageName("string")
.name("string")
.resources(MeshApplicationServiceCodePackageResourcesArgs.builder()
.requests(MeshApplicationServiceCodePackageResourcesRequestsArgs.builder()
.cpu(0.0)
.memory(0.0)
.build())
.limits(MeshApplicationServiceCodePackageResourcesLimitsArgs.builder()
.cpu(0.0)
.memory(0.0)
.build())
.build())
.build())
.name("string")
.osType("string")
.build())
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
mesh_application_resource = azure.servicefabric.MeshApplication("meshApplicationResource",
resource_group_name="string",
services=[{
"code_packages": [{
"image_name": "string",
"name": "string",
"resources": {
"requests": {
"cpu": 0,
"memory": 0,
},
"limits": {
"cpu": 0,
"memory": 0,
},
},
}],
"name": "string",
"os_type": "string",
}],
location="string",
name="string",
tags={
"string": "string",
})
const meshApplicationResource = new azure.servicefabric.MeshApplication("meshApplicationResource", {
resourceGroupName: "string",
services: [{
codePackages: [{
imageName: "string",
name: "string",
resources: {
requests: {
cpu: 0,
memory: 0,
},
limits: {
cpu: 0,
memory: 0,
},
},
}],
name: "string",
osType: "string",
}],
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:servicefabric:MeshApplication
properties:
location: string
name: string
resourceGroupName: string
services:
- codePackages:
- imageName: string
name: string
resources:
limits:
cpu: 0
memory: 0
requests:
cpu: 0
memory: 0
name: string
osType: string
tags:
string: string
MeshApplication 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 MeshApplication resource accepts the following input properties:
- Resource
Group stringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- Services
List<Mesh
Application Service> - Any number of
serviceblock as defined below. - Location string
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Resource
Group stringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- Services
[]Mesh
Application Service Args - Any number of
serviceblock as defined below. - Location string
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- resource
Group StringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services
List<Mesh
Application Service> - Any number of
serviceblock as defined below. - location String
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- resource
Group stringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services
Mesh
Application Service[] - Any number of
serviceblock as defined below. - location string
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name string
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- resource_
group_ strname - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services
Sequence[Mesh
Application Service Args] - Any number of
serviceblock as defined below. - location str
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name str
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- resource
Group StringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services List<Property Map>
- Any number of
serviceblock as defined below. - location String
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Application. 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 MeshApplication 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 MeshApplication Resource
Get an existing MeshApplication 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?: MeshApplicationState, opts?: CustomResourceOptions): MeshApplication@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
services: Optional[Sequence[MeshApplicationServiceArgs]] = None,
tags: Optional[Mapping[str, str]] = None) -> MeshApplicationfunc GetMeshApplication(ctx *Context, name string, id IDInput, state *MeshApplicationState, opts ...ResourceOption) (*MeshApplication, error)public static MeshApplication Get(string name, Input<string> id, MeshApplicationState? state, CustomResourceOptions? opts = null)public static MeshApplication get(String name, Output<String> id, MeshApplicationState state, CustomResourceOptions options)resources: _: type: azure:servicefabric:MeshApplication 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 Application should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- Services
List<Mesh
Application Service> - Any number of
serviceblock as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Location string
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- Name string
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- Services
[]Mesh
Application Service Args - Any number of
serviceblock as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- location String
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services
List<Mesh
Application Service> - Any number of
serviceblock as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- location string
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name string
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services
Mesh
Application Service[] - Any number of
serviceblock as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- location str
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name str
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services
Sequence[Mesh
Application Service Args] - Any number of
serviceblock as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- location String
- Specifies the Azure Region where the Service Fabric Mesh Application should exist. Changing this forces a new resource to be created.
- name String
- The name of the Service Fabric Mesh Application. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group in which the Service Fabric Mesh Application exists. Changing this forces a new resource to be created.
- services List<Property Map>
- Any number of
serviceblock as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
MeshApplicationService, MeshApplicationServiceArgs
- Code
Packages List<MeshApplication Service Code Package> - Any number
code_packageblock as described below. - Name string
- The name of the service resource.
- Os
Type string - The operating system required by the code in service. Valid values are
LinuxorWindows.
- Code
Packages []MeshApplication Service Code Package - Any number
code_packageblock as described below. - Name string
- The name of the service resource.
- Os
Type string - The operating system required by the code in service. Valid values are
LinuxorWindows.
- code
Packages List<MeshApplication Service Code Package> - Any number
code_packageblock as described below. - name String
- The name of the service resource.
- os
Type String - The operating system required by the code in service. Valid values are
LinuxorWindows.
- code
Packages MeshApplication Service Code Package[] - Any number
code_packageblock as described below. - name string
- The name of the service resource.
- os
Type string - The operating system required by the code in service. Valid values are
LinuxorWindows.
- code_
packages Sequence[MeshApplication Service Code Package] - Any number
code_packageblock as described below. - name str
- The name of the service resource.
- os_
type str - The operating system required by the code in service. Valid values are
LinuxorWindows.
- code
Packages List<Property Map> - Any number
code_packageblock as described below. - name String
- The name of the service resource.
- os
Type String - The operating system required by the code in service. Valid values are
LinuxorWindows.
MeshApplicationServiceCodePackage, MeshApplicationServiceCodePackageArgs
- Image
Name string - The Container image the code package will use.
- Name string
- The name of the code package.
- Resources
Mesh
Application Service Code Package Resources - A
resourcesblock as defined below.
- Image
Name string - The Container image the code package will use.
- Name string
- The name of the code package.
- Resources
Mesh
Application Service Code Package Resources - A
resourcesblock as defined below.
- image
Name String - The Container image the code package will use.
- name String
- The name of the code package.
- resources
Mesh
Application Service Code Package Resources - A
resourcesblock as defined below.
- image
Name string - The Container image the code package will use.
- name string
- The name of the code package.
- resources
Mesh
Application Service Code Package Resources - A
resourcesblock as defined below.
- image_
name str - The Container image the code package will use.
- name str
- The name of the code package.
- resources
Mesh
Application Service Code Package Resources - A
resourcesblock as defined below.
- image
Name String - The Container image the code package will use.
- name String
- The name of the code package.
- resources Property Map
- A
resourcesblock as defined below.
MeshApplicationServiceCodePackageResources, MeshApplicationServiceCodePackageResourcesArgs
- Requests
Mesh
Application Service Code Package Resources Requests - A
requestsblock as defined below. - Limits
Mesh
Application Service Code Package Resources Limits - A
limitsblock as defined below.
- Requests
Mesh
Application Service Code Package Resources Requests - A
requestsblock as defined below. - Limits
Mesh
Application Service Code Package Resources Limits - A
limitsblock as defined below.
- requests
Mesh
Application Service Code Package Resources Requests - A
requestsblock as defined below. - limits
Mesh
Application Service Code Package Resources Limits - A
limitsblock as defined below.
- requests
Mesh
Application Service Code Package Resources Requests - A
requestsblock as defined below. - limits
Mesh
Application Service Code Package Resources Limits - A
limitsblock as defined below.
- requests
Mesh
Application Service Code Package Resources Requests - A
requestsblock as defined below. - limits
Mesh
Application Service Code Package Resources Limits - A
limitsblock as defined below.
- requests Property Map
- A
requestsblock as defined below. - limits Property Map
- A
limitsblock as defined below.
MeshApplicationServiceCodePackageResourcesLimits, MeshApplicationServiceCodePackageResourcesLimitsArgs
MeshApplicationServiceCodePackageResourcesRequests, MeshApplicationServiceCodePackageResourcesRequestsArgs
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
