ServiceFabric

class ServiceFabric : KotlinCustomResource

A Service Fabric. Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 2018-09-15.

Example Usage

ServiceFabrics_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceFabric = new AzureNative.DevTestLab.ServiceFabric("serviceFabric", new()
{
EnvironmentId = "{environmentId}",
ExternalServiceFabricId = "{serviceFabricId}",
LabName = "{labName}",
Location = "{location}",
Name = "{serviceFabricName}",
ResourceGroupName = "resourceGroupName",
Tags =
{
{ "tagName1", "tagValue1" },
},
UserName = "{userName}",
});
});
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewServiceFabric(ctx, "serviceFabric", &devtestlab.ServiceFabricArgs{
EnvironmentId: pulumi.String("{environmentId}"),
ExternalServiceFabricId: pulumi.String("{serviceFabricId}"),
LabName: pulumi.String("{labName}"),
Location: pulumi.String("{location}"),
Name: pulumi.String("{serviceFabricName}"),
ResourceGroupName: pulumi.String("resourceGroupName"),
Tags: pulumi.StringMap{
"tagName1": pulumi.String("tagValue1"),
},
UserName: pulumi.String("{userName}"),
})
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.devtestlab.ServiceFabric;
import com.pulumi.azurenative.devtestlab.ServiceFabricArgs;
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 serviceFabric = new ServiceFabric("serviceFabric", ServiceFabricArgs.builder()
.environmentId("{environmentId}")
.externalServiceFabricId("{serviceFabricId}")
.labName("{labName}")
.location("{location}")
.name("{serviceFabricName}")
.resourceGroupName("resourceGroupName")
.tags(Map.of("tagName1", "tagValue1"))
.userName("{userName}")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devtestlab:ServiceFabric {serviceFabricName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/servicefabrics/{name}

Properties

Link copied to clipboard

The applicable schedule for the virtual machine.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val environmentId: Output<String>?

The resource id of the environment under which the service fabric resource is present

Link copied to clipboard

The backing service fabric resource's id

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

The location of the resource.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

The provisioning status of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

The tags of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard

The unique immutable identifier of a resource (Guid).

Link copied to clipboard
val urn: Output<String>