Application Args
data class ApplicationArgs(val applicationResourceName: Output<String>? = null, val debugParams: Output<String>? = null, val description: Output<String>? = null, val diagnostics: Output<DiagnosticsDescriptionArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val services: Output<List<ServiceResourceDescriptionArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationArgs>
This type describes an application resource. 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 = "Linux",
ReplicaCount = 1,
},
},
Tags = null,
});
});
Content copied to clipboard
package main
import (
servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh"
"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.ServiceResourceDescriptionArgs{
{
CodePackages: []servicefabricmesh.ContainerCodePackagePropertiesArgs{
{
Endpoints: servicefabricmesh.EndpointPropertiesArray{
{
Name: pulumi.String("helloWorldListener"),
Port: pulumi.Int(80),
},
},
Image: pulumi.String("seabreeze/sbz-helloworld:1.0-alpine"),
Name: pulumi.String("helloWorldCode"),
Resources: {
Requests: {
Cpu: pulumi.Float64(1),
MemoryInGB: pulumi.Float64(1),
},
},
},
},
Description: pulumi.String("SeaBreeze Hello World Service."),
Name: pulumi.String("helloWorldService"),
NetworkRefs: servicefabricmesh.NetworkRefArray{
{
EndpointRefs: servicefabricmesh.EndpointRefArray{
{
Name: pulumi.String("helloWorldListener"),
},
},
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork"),
},
},
OsType: pulumi.String("Linux"),
ReplicaCount: pulumi.Int(1),
},
},
Tags: nil,
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("codePackages", Map.ofEntries(
Map.entry("endpoints", Map.ofEntries(
Map.entry("name", "helloWorldListener"),
Map.entry("port", 80)
)),
Map.entry("image", "seabreeze/sbz-helloworld:1.0-alpine"),
Map.entry("name", "helloWorldCode"),
Map.entry("resources", Map.of("requests", Map.ofEntries(
Map.entry("cpu", 1),
Map.entry("memoryInGB", 1)
)))
)),
Map.entry("description", "SeaBreeze Hello World Service."),
Map.entry("name", "helloWorldService"),
Map.entry("networkRefs", Map.ofEntries(
Map.entry("endpointRefs", Map.of("name", "helloWorldListener")),
Map.entry("name", "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork")
)),
Map.entry("osType", "Linux"),
Map.entry("replicaCount", 1)
))
.tags()
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicefabricmesh:Application sampleApplication /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/sampleApplication
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(applicationResourceName: Output<String>? = null, debugParams: Output<String>? = null, description: Output<String>? = null, diagnostics: Output<DiagnosticsDescriptionArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, services: Output<List<ServiceResourceDescriptionArgs>>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The identity of the application.
Link copied to clipboard
Internal - used by Visual Studio to setup the debugging session on the local development environment.
Link copied to clipboard
User readable description of the application.
Link copied to clipboard
Describes the diagnostics definition and usage for an application resource.
Link copied to clipboard
Azure resource group name
Link copied to clipboard
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.