1. Packages
  2. Azure Native v1
  3. API Docs
  4. deploymentmanager
  5. Service
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.Service

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 in a service topology. API Version: 2019-11-01-preview.

    Example Usage

    Create service

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var service = new AzureNative.DeploymentManager.Service("service", new()
        {
            Location = "centralus",
            ResourceGroupName = "myResourceGroup",
            ServiceName = "myService",
            ServiceTopologyName = "myTopology",
            Tags = null,
            TargetLocation = "centralus",
            TargetSubscriptionId = "600c95c5-3ee5-44fe-b190-ca38a19adcd7",
        });
    
    });
    
    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.NewService(ctx, "service", &deploymentmanager.ServiceArgs{
    			Location:             pulumi.String("centralus"),
    			ResourceGroupName:    pulumi.String("myResourceGroup"),
    			ServiceName:          pulumi.String("myService"),
    			ServiceTopologyName:  pulumi.String("myTopology"),
    			Tags:                 nil,
    			TargetLocation:       pulumi.String("centralus"),
    			TargetSubscriptionId: pulumi.String("600c95c5-3ee5-44fe-b190-ca38a19adcd7"),
    		})
    		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.Service;
    import com.pulumi.azurenative.deploymentmanager.ServiceArgs;
    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 service = new Service("service", ServiceArgs.builder()        
                .location("centralus")
                .resourceGroupName("myResourceGroup")
                .serviceName("myService")
                .serviceTopologyName("myTopology")
                .tags()
                .targetLocation("centralus")
                .targetSubscriptionId("600c95c5-3ee5-44fe-b190-ca38a19adcd7")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    service = azure_native.deploymentmanager.Service("service",
        location="centralus",
        resource_group_name="myResourceGroup",
        service_name="myService",
        service_topology_name="myTopology",
        tags={},
        target_location="centralus",
        target_subscription_id="600c95c5-3ee5-44fe-b190-ca38a19adcd7")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const service = new azure_native.deploymentmanager.Service("service", {
        location: "centralus",
        resourceGroupName: "myResourceGroup",
        serviceName: "myService",
        serviceTopologyName: "myTopology",
        tags: {},
        targetLocation: "centralus",
        targetSubscriptionId: "600c95c5-3ee5-44fe-b190-ca38a19adcd7",
    });
    
    resources:
      service:
        type: azure-native:deploymentmanager:Service
        properties:
          location: centralus
          resourceGroupName: myResourceGroup
          serviceName: myService
          serviceTopologyName: myTopology
          tags: {}
          targetLocation: centralus
          targetSubscriptionId: 600c95c5-3ee5-44fe-b190-ca38a19adcd7
    

    Create Service Resource

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

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                service_topology_name: Optional[str] = None,
                target_location: Optional[str] = None,
                target_subscription_id: Optional[str] = None,
                location: Optional[str] = None,
                service_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: azure-native:deploymentmanager:Service
    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 ServiceArgs
    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 ServiceArgs
    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 ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    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 exampleserviceResourceResourceFromDeploymentmanager = new AzureNative.Deploymentmanager.Service("exampleserviceResourceResourceFromDeploymentmanager", new()
    {
        ResourceGroupName = "string",
        ServiceTopologyName = "string",
        TargetLocation = "string",
        TargetSubscriptionId = "string",
        Location = "string",
        ServiceName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := deploymentmanager.NewService(ctx, "exampleserviceResourceResourceFromDeploymentmanager", &deploymentmanager.ServiceArgs{
    	ResourceGroupName:    "string",
    	ServiceTopologyName:  "string",
    	TargetLocation:       "string",
    	TargetSubscriptionId: "string",
    	Location:             "string",
    	ServiceName:          "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var exampleserviceResourceResourceFromDeploymentmanager = new Service("exampleserviceResourceResourceFromDeploymentmanager", ServiceArgs.builder()
        .resourceGroupName("string")
        .serviceTopologyName("string")
        .targetLocation("string")
        .targetSubscriptionId("string")
        .location("string")
        .serviceName("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    exampleservice_resource_resource_from_deploymentmanager = azure_native.deploymentmanager.Service("exampleserviceResourceResourceFromDeploymentmanager",
        resource_group_name=string,
        service_topology_name=string,
        target_location=string,
        target_subscription_id=string,
        location=string,
        service_name=string,
        tags={
            string: string,
        })
    
    const exampleserviceResourceResourceFromDeploymentmanager = new azure_native.deploymentmanager.Service("exampleserviceResourceResourceFromDeploymentmanager", {
        resourceGroupName: "string",
        serviceTopologyName: "string",
        targetLocation: "string",
        targetSubscriptionId: "string",
        location: "string",
        serviceName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:deploymentmanager:Service
    properties:
        location: string
        resourceGroupName: string
        serviceName: string
        serviceTopologyName: string
        tags:
            string: string
        targetLocation: string
        targetSubscriptionId: string
    

    Service 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 Service resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceTopologyName string
    The name of the service topology .
    TargetLocation string
    The Azure location to which the resources in the service belong to or should be deployed to.
    TargetSubscriptionId string
    The subscription to which the resources in the service belong to or should be deployed to.
    Location string
    The geo-location where the resource lives
    ServiceName string
    The name of the service resource.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ServiceTopologyName string
    The name of the service topology .
    TargetLocation string
    The Azure location to which the resources in the service belong to or should be deployed to.
    TargetSubscriptionId string
    The subscription to which the resources in the service belong to or should be deployed to.
    Location string
    The geo-location where the resource lives
    ServiceName string
    The name of the service resource.
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceTopologyName String
    The name of the service topology .
    targetLocation String
    The Azure location to which the resources in the service belong to or should be deployed to.
    targetSubscriptionId String
    The subscription to which the resources in the service belong to or should be deployed to.
    location String
    The geo-location where the resource lives
    serviceName String
    The name of the service resource.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    serviceTopologyName string
    The name of the service topology .
    targetLocation string
    The Azure location to which the resources in the service belong to or should be deployed to.
    targetSubscriptionId string
    The subscription to which the resources in the service belong to or should be deployed to.
    location string
    The geo-location where the resource lives
    serviceName string
    The name of the service resource.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    service_topology_name str
    The name of the service topology .
    target_location str
    The Azure location to which the resources in the service belong to or should be deployed to.
    target_subscription_id str
    The subscription to which the resources in the service belong to or should be deployed to.
    location str
    The geo-location where the resource lives
    service_name str
    The name of the service resource.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    serviceTopologyName String
    The name of the service topology .
    targetLocation String
    The Azure location to which the resources in the service belong to or should be deployed to.
    targetSubscriptionId String
    The subscription to which the resources in the service belong to or should be deployed to.
    location String
    The geo-location where the resource lives
    serviceName String
    The name of the service resource.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service 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:Service myService /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName} 
    

    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