Application
This type describes an application resource. Uses Azure REST API version 2018-09-01-preview. In version 2.x of the Azure Native provider, it used API version 2018-09-01-preview.
Example Usage
CreateOrUpdateApplication
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var application = new AzureNative.ServiceFabricMesh.Application("application", new()
{
ApplicationResourceName = "sampleApplication",
Description = "Service Fabric Mesh sample application.",
Location = "EastUS",
ResourceGroupName = "sbz_demo",
Services = new[]
{
new AzureNative.ServiceFabricMesh.Inputs.ServiceResourceDescriptionArgs
{
CodePackages = new[]
{
new AzureNative.ServiceFabricMesh.Inputs.ContainerCodePackagePropertiesArgs
{
Endpoints = new[]
{
new AzureNative.ServiceFabricMesh.Inputs.EndpointPropertiesArgs
{
Name = "helloWorldListener",
Port = 80,
},
},
Image = "seabreeze/sbz-helloworld:1.0-alpine",
Name = "helloWorldCode",
Resources = new AzureNative.ServiceFabricMesh.Inputs.ResourceRequirementsArgs
{
Requests = new AzureNative.ServiceFabricMesh.Inputs.ResourceRequestsArgs
{
Cpu = 1,
MemoryInGB = 1,
},
},
},
},
Description = "SeaBreeze Hello World Service.",
Name = "helloWorldService",
NetworkRefs = new[]
{
new AzureNative.ServiceFabricMesh.Inputs.NetworkRefArgs
{
EndpointRefs = new[]
{
new AzureNative.ServiceFabricMesh.Inputs.EndpointRefArgs
{
Name = "helloWorldListener",
},
},
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
},
},
OsType = AzureNative.ServiceFabricMesh.OperatingSystemType.Linux,
ReplicaCount = 1,
},
},
Tags = null,
});
});
package main
import (
servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicefabricmesh.NewApplication(ctx, "application", &servicefabricmesh.ApplicationArgs{
ApplicationResourceName: pulumi.String("sampleApplication"),
Description: pulumi.String("Service Fabric Mesh sample application."),
Location: pulumi.String("EastUS"),
ResourceGroupName: pulumi.String("sbz_demo"),
Services: servicefabricmesh.ServiceResourceDescriptionArray{
&servicefabricmesh.ServiceResourceDescriptionArgs{
CodePackages: servicefabricmesh.ContainerCodePackagePropertiesArray{
&servicefabricmesh.ContainerCodePackagePropertiesArgs{
Endpoints: servicefabricmesh.EndpointPropertiesArray{
&servicefabricmesh.EndpointPropertiesArgs{
Name: pulumi.String("helloWorldListener"),
Port: pulumi.Int(80),
},
},
Image: pulumi.String("seabreeze/sbz-helloworld:1.0-alpine"),
Name: pulumi.String("helloWorldCode"),
Resources: &servicefabricmesh.ResourceRequirementsArgs{
Requests: &servicefabricmesh.ResourceRequestsArgs{
Cpu: pulumi.Float64(1),
MemoryInGB: pulumi.Float64(1),
},
},
},
},
Description: pulumi.String("SeaBreeze Hello World Service."),
Name: pulumi.String("helloWorldService"),
NetworkRefs: servicefabricmesh.NetworkRefArray{
&servicefabricmesh.NetworkRefArgs{
EndpointRefs: servicefabricmesh.EndpointRefArray{
&servicefabricmesh.EndpointRefArgs{
Name: pulumi.String("helloWorldListener"),
},
},
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork"),
},
},
OsType: pulumi.String(servicefabricmesh.OperatingSystemTypeLinux),
ReplicaCount: pulumi.Int(1),
},
},
Tags: pulumi.StringMap{},
})
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.servicefabricmesh.Application;
import com.pulumi.azurenative.servicefabricmesh.ApplicationArgs;
import com.pulumi.azurenative.servicefabricmesh.inputs.ServiceResourceDescriptionArgs;
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 application = new Application("application", ApplicationArgs.builder()
.applicationResourceName("sampleApplication")
.description("Service Fabric Mesh sample application.")
.location("EastUS")
.resourceGroupName("sbz_demo")
.services(ServiceResourceDescriptionArgs.builder()
.codePackages(ContainerCodePackagePropertiesArgs.builder()
.endpoints(EndpointPropertiesArgs.builder()
.name("helloWorldListener")
.port(80)
.build())
.image("seabreeze/sbz-helloworld:1.0-alpine")
.name("helloWorldCode")
.resources(ResourceRequirementsArgs.builder()
.requests(ResourceRequestsArgs.builder()
.cpu(1.0)
.memoryInGB(1.0)
.build())
.build())
.build())
.description("SeaBreeze Hello World Service.")
.name("helloWorldService")
.networkRefs(NetworkRefArgs.builder()
.endpointRefs(EndpointRefArgs.builder()
.name("helloWorldListener")
.build())
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork")
.build())
.osType("Linux")
.replicaCount(1)
.build())
.tags(Map.ofEntries(
))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicefabricmesh:Application sampleApplication /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationResourceName}
Properties
The Azure API version of the resource.
Internal - used by Visual Studio to setup the debugging session on the local development environment.
User readable description of the application.
Describes the diagnostics definition and usage for an application resource.
Describes the health state of an application resource.
State of the resource.
Names of the services in the application.
Describes the services in the application. This property is used to create or modify services of the application. On get only the name of the service is returned. The service description can be obtained by querying for the service resource.
Gives additional information about the current status of the application.
When the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.