Service

class Service : KotlinCustomResource

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}

Properties

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 targetLocation: Output<String>

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

Link copied to clipboard

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

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>