ServiceUnitArgs

data class ServiceUnitArgs(val artifacts: Output<ServiceUnitArtifactsArgs>? = null, val deploymentMode: Output<DeploymentMode>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val serviceTopologyName: Output<String>? = null, val serviceUnitName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val targetResourceGroup: Output<String>? = null) : ConvertibleToJava<ServiceUnitArgs>

Represents the response of a service unit resource. API Version: 2019-11-01-preview.

Example Usage

Create service unit using SAS URIs

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceUnit = new AzureNative.DeploymentManager.ServiceUnit("serviceUnit", new()
{
Artifacts = new AzureNative.DeploymentManager.Inputs.ServiceUnitArtifactsArgs
{
ParametersUri = "https://mystorageaccount.blob.core.windows.net/myartifactsource/parameter/myTopologyUnit.parameters.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
TemplateUri = "https://mystorageaccount.blob.core.windows.net/myartifactsource/templates/myTopologyUnit.template.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
},
DeploymentMode = AzureNative.DeploymentManager.DeploymentMode.Incremental,
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceName = "myService",
ServiceTopologyName = "myTopology",
ServiceUnitName = "myServiceUnit",
Tags = null,
TargetResourceGroup = "myDeploymentResourceGroup",
});
});
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.NewServiceUnit(ctx, "serviceUnit", &deploymentmanager.ServiceUnitArgs{
Artifacts: &deploymentmanager.ServiceUnitArtifactsArgs{
ParametersUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/myartifactsource/parameter/myTopologyUnit.parameters.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"),
TemplateUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/myartifactsource/templates/myTopologyUnit.template.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"),
},
DeploymentMode: deploymentmanager.DeploymentModeIncremental,
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myService"),
ServiceTopologyName: pulumi.String("myTopology"),
ServiceUnitName: pulumi.String("myServiceUnit"),
Tags: nil,
TargetResourceGroup: pulumi.String("myDeploymentResourceGroup"),
})
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.ServiceUnit;
import com.pulumi.azurenative.deploymentmanager.ServiceUnitArgs;
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 serviceUnit = new ServiceUnit("serviceUnit", ServiceUnitArgs.builder()
.artifacts(Map.ofEntries(
Map.entry("parametersUri", "https://mystorageaccount.blob.core.windows.net/myartifactsource/parameter/myTopologyUnit.parameters.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"),
Map.entry("templateUri", "https://mystorageaccount.blob.core.windows.net/myartifactsource/templates/myTopologyUnit.template.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D")
))
.deploymentMode("Incremental")
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceName("myService")
.serviceTopologyName("myTopology")
.serviceUnitName("myServiceUnit")
.tags()
.targetResourceGroup("myDeploymentResourceGroup")
.build());
}
}

Create service unit using relative paths into the artifact source

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceUnit = new AzureNative.DeploymentManager.ServiceUnit("serviceUnit", new()
{
Artifacts = new AzureNative.DeploymentManager.Inputs.ServiceUnitArtifactsArgs
{
ParametersArtifactSourceRelativePath = "parameter/myTopologyUnit.parameters.json",
TemplateArtifactSourceRelativePath = "templates/myTopologyUnit.template.json",
},
DeploymentMode = AzureNative.DeploymentManager.DeploymentMode.Incremental,
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceName = "myService",
ServiceTopologyName = "myTopology",
ServiceUnitName = "myServiceUnit",
Tags = null,
TargetResourceGroup = "myDeploymentResourceGroup",
});
});
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.NewServiceUnit(ctx, "serviceUnit", &deploymentmanager.ServiceUnitArgs{
Artifacts: &deploymentmanager.ServiceUnitArtifactsArgs{
ParametersArtifactSourceRelativePath: pulumi.String("parameter/myTopologyUnit.parameters.json"),
TemplateArtifactSourceRelativePath: pulumi.String("templates/myTopologyUnit.template.json"),
},
DeploymentMode: deploymentmanager.DeploymentModeIncremental,
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myService"),
ServiceTopologyName: pulumi.String("myTopology"),
ServiceUnitName: pulumi.String("myServiceUnit"),
Tags: nil,
TargetResourceGroup: pulumi.String("myDeploymentResourceGroup"),
})
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.ServiceUnit;
import com.pulumi.azurenative.deploymentmanager.ServiceUnitArgs;
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 serviceUnit = new ServiceUnit("serviceUnit", ServiceUnitArgs.builder()
.artifacts(Map.ofEntries(
Map.entry("parametersArtifactSourceRelativePath", "parameter/myTopologyUnit.parameters.json"),
Map.entry("templateArtifactSourceRelativePath", "templates/myTopologyUnit.template.json")
))
.deploymentMode("Incremental")
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceName("myService")
.serviceTopologyName("myTopology")
.serviceUnitName("myServiceUnit")
.tags()
.targetResourceGroup("myDeploymentResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:deploymentmanager:ServiceUnit myServiceUnit /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}

Constructors

Link copied to clipboard
constructor(artifacts: Output<ServiceUnitArtifactsArgs>? = null, deploymentMode: Output<DeploymentMode>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, serviceTopologyName: Output<String>? = null, serviceUnitName: Output<String>? = null, tags: Output<Map<String, String>>? = null, targetResourceGroup: Output<String>? = null)

Properties

Link copied to clipboard
val artifacts: Output<ServiceUnitArtifactsArgs>? = null

The artifacts for the service unit.

Link copied to clipboard
val deploymentMode: Output<DeploymentMode>? = null

Describes the type of ARM deployment to be performed on the resource.

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 serviceUnitName: Output<String>? = null

The name of the service unit resource.

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

Resource tags.

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

The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.

Functions

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