Service Args
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The name of the service resource.
Link copied to clipboard
The name of the service topology .
Link copied to clipboard
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.