ServiceTopology

class ServiceTopology : KotlinCustomResource

The resource representation of a service topology. API Version: 2019-11-01-preview.

Example Usage

Create a topology with Artifact Source

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceTopology = new AzureNative.DeploymentManager.ServiceTopology("serviceTopology", new()
{
ArtifactSourceId = "Microsoft.DeploymentManager/artifactSources/myArtifactSource",
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceTopologyName = "myTopology",
Tags = null,
});
});
package main
import (
deploymentmanager "github.com/pulumi/pulumi-azure-native-sdk/deploymentmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deploymentmanager.NewServiceTopology(ctx, "serviceTopology", &deploymentmanager.ServiceTopologyArgs{
ArtifactSourceId: pulumi.String("Microsoft.DeploymentManager/artifactSources/myArtifactSource"),
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceTopologyName: pulumi.String("myTopology"),
Tags: nil,
})
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.deploymentmanager.ServiceTopology;
import com.pulumi.azurenative.deploymentmanager.ServiceTopologyArgs;
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 serviceTopology = new ServiceTopology("serviceTopology", ServiceTopologyArgs.builder()
.artifactSourceId("Microsoft.DeploymentManager/artifactSources/myArtifactSource")
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceTopologyName("myTopology")
.tags()
.build());
}
}

Create a topology without Artifact Source

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceTopology = new AzureNative.DeploymentManager.ServiceTopology("serviceTopology", new()
{
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceTopologyName = "myTopology",
Tags = null,
});
});
package main
import (
deploymentmanager "github.com/pulumi/pulumi-azure-native-sdk/deploymentmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deploymentmanager.NewServiceTopology(ctx, "serviceTopology", &deploymentmanager.ServiceTopologyArgs{
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceTopologyName: pulumi.String("myTopology"),
Tags: nil,
})
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.deploymentmanager.ServiceTopology;
import com.pulumi.azurenative.deploymentmanager.ServiceTopologyArgs;
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 serviceTopology = new ServiceTopology("serviceTopology", ServiceTopologyArgs.builder()
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceTopologyName("myTopology")
.tags()
.build());
}
}

Import

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

$ pulumi import azure-native:deploymentmanager:ServiceTopology myTopology /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}

Properties

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

The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name 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>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>