Service Unit Args
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",
});
});
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.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
})
}
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.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());
}
}
Content copied to clipboard
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",
});
});
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.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
})
}
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.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());
}
}
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:ServiceUnit myServiceUnit /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}
Content copied to clipboard
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
The artifacts for the service unit.
Link copied to clipboard
Describes the type of ARM deployment to be performed on the resource.
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 name of the service unit resource.
Link copied to clipboard
The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.