1. Packages
  2. Azure Native v1
  3. API Docs
  4. deploymentmanager
  5. ServiceTopology
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.deploymentmanager.ServiceTopology

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    service_topology = azure_native.deploymentmanager.ServiceTopology("serviceTopology",
        artifact_source_id="Microsoft.DeploymentManager/artifactSources/myArtifactSource",
        location="centralus",
        resource_group_name="myResourceGroup",
        service_topology_name="myTopology",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serviceTopology = new azure_native.deploymentmanager.ServiceTopology("serviceTopology", {
        artifactSourceId: "Microsoft.DeploymentManager/artifactSources/myArtifactSource",
        location: "centralus",
        resourceGroupName: "myResourceGroup",
        serviceTopologyName: "myTopology",
        tags: {},
    });
    
    resources:
      serviceTopology:
        type: azure-native:deploymentmanager:ServiceTopology
        properties:
          artifactSourceId: Microsoft.DeploymentManager/artifactSources/myArtifactSource
          location: centralus
          resourceGroupName: myResourceGroup
          serviceTopologyName: myTopology
          tags: {}
    

    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 pulumi
    import pulumi_azure_native as azure_native
    
    service_topology = azure_native.deploymentmanager.ServiceTopology("serviceTopology",
        location="centralus",
        resource_group_name="myResourceGroup",
        service_topology_name="myTopology",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serviceTopology = new azure_native.deploymentmanager.ServiceTopology("serviceTopology", {
        location: "centralus",
        resourceGroupName: "myResourceGroup",
        serviceTopologyName: "myTopology",
        tags: {},
    });
    
    resources:
      serviceTopology:
        type: azure-native:deploymentmanager:ServiceTopology
        properties:
          location: centralus
          resourceGroupName: myResourceGroup
          serviceTopologyName: myTopology
          tags: {}
    

    Create ServiceTopology Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceTopology(name: string, args: ServiceTopologyArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceTopology(resource_name: str,
                        args: ServiceTopologyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceTopology(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_group_name: Optional[str] = None,
                        artifact_source_id: Optional[str] = None,
                        location: Optional[str] = None,
                        service_topology_name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewServiceTopology(ctx *Context, name string, args ServiceTopologyArgs, opts ...ResourceOption) (*ServiceTopology, error)
    public ServiceTopology(string name, ServiceTopologyArgs args, CustomResourceOptions? opts = null)
    public ServiceTopology(String name, ServiceTopologyArgs args)
    public ServiceTopology(String name, ServiceTopologyArgs args, CustomResourceOptions options)
    
    type: azure-native:deploymentmanager:ServiceTopology
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceTopologyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceTopologyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceTopologyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceTopologyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceTopologyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serviceTopologyResource = new AzureNative.Deploymentmanager.ServiceTopology("serviceTopologyResource", new()
    {
        ResourceGroupName = "string",
        ArtifactSourceId = "string",
        Location = "string",
        ServiceTopologyName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := deploymentmanager.NewServiceTopology(ctx, "serviceTopologyResource", &deploymentmanager.ServiceTopologyArgs{
    	ResourceGroupName:   "string",
    	ArtifactSourceId:    "string",
    	Location:            "string",
    	ServiceTopologyName: "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var serviceTopologyResource = new ServiceTopology("serviceTopologyResource", ServiceTopologyArgs.builder()
        .resourceGroupName("string")
        .artifactSourceId("string")
        .location("string")
        .serviceTopologyName("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    service_topology_resource = azure_native.deploymentmanager.ServiceTopology("serviceTopologyResource",
        resource_group_name=string,
        artifact_source_id=string,
        location=string,
        service_topology_name=string,
        tags={
            string: string,
        })
    
    const serviceTopologyResource = new azure_native.deploymentmanager.ServiceTopology("serviceTopologyResource", {
        resourceGroupName: "string",
        artifactSourceId: "string",
        location: "string",
        serviceTopologyName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:deploymentmanager:ServiceTopology
    properties:
        artifactSourceId: string
        location: string
        resourceGroupName: string
        serviceTopologyName: string
        tags:
            string: string
    

    ServiceTopology Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServiceTopology resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ArtifactSourceId string
    The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
    Location string
    The geo-location where the resource lives
    ServiceTopologyName string
    The name of the service topology .
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ArtifactSourceId string
    The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
    Location string
    The geo-location where the resource lives
    ServiceTopologyName string
    The name of the service topology .
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    artifactSourceId String
    The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
    location String
    The geo-location where the resource lives
    serviceTopologyName String
    The name of the service topology .
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    artifactSourceId string
    The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
    location string
    The geo-location where the resource lives
    serviceTopologyName string
    The name of the service topology .
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    artifact_source_id str
    The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
    location str
    The geo-location where the resource lives
    service_topology_name str
    The name of the service topology .
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    artifactSourceId String
    The resource Id of the artifact source that contains the artifacts that can be referenced in the service units.
    location String
    The geo-location where the resource lives
    serviceTopologyName String
    The name of the service topology .
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceTopology resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi