ApplicationArgs

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. 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/v2"
"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)
.memoryInGB(1)
.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()
.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}

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
val applicationResourceName: Output<String>? = null

The identity of the application.

Link copied to clipboard
val debugParams: Output<String>? = null

Internal - used by Visual Studio to setup the debugging session on the local development environment.

Link copied to clipboard
val description: Output<String>? = null

User readable description of the application.

Link copied to clipboard

Describes the diagnostics definition and usage for an application resource.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): ApplicationArgs