ServiceArgs

data class ServiceArgs(val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val serviceTopologyName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val targetLocation: Output<String>? = null, val targetSubscriptionId: Output<String>? = null) : ConvertibleToJava<ServiceArgs>

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

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}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, serviceTopologyName: Output<String>? = null, tags: Output<Map<String, String>>? = null, targetLocation: Output<String>? = null, targetSubscriptionId: Output<String>? = null)

Properties

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

The name of the resource group. The name is case insensitive.

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

The name of the service resource.

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

The name of the service topology .

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

Resource tags.

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

The Azure location to which the resources in the service belong to or should be deployed to.

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

The subscription to which the resources in the service belong to or should be deployed to.

Functions

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