RolloutArgs

data class RolloutArgs(val artifactSourceId: Output<String>? = null, val buildVersion: Output<String>? = null, val identity: Output<IdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val rolloutName: Output<String>? = null, val stepGroups: Output<List<StepGroupArgs>>? = null, val tags: Output<Map<String, String>>? = null, val targetServiceTopologyId: Output<String>? = null) : ConvertibleToJava<RolloutArgs>

Defines the PUT rollout request body. API Version: 2019-11-01-preview.

Example Usage

Create or update rollout

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var rollout = new AzureNative.DeploymentManager.Rollout("rollout", new()
{
ArtifactSourceId = "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource",
BuildVersion = "1.0.0.1",
Identity = new AzureNative.DeploymentManager.Inputs.IdentityArgs
{
IdentityIds = new[]
{
"/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity",
},
Type = "userAssigned",
},
Location = "centralus",
ResourceGroupName = "myResourceGroup",
RolloutName = "myRollout",
StepGroups = new[]
{
new AzureNative.DeploymentManager.Inputs.StepGroupArgs
{
DeploymentTargetId = "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'",
Name = "FirstRegion",
PostDeploymentSteps = new[]
{
new AzureNative.DeploymentManager.Inputs.PrePostStepArgs
{
StepId = "Microsoft.DeploymentManager/steps/postDeployStep1",
},
},
PreDeploymentSteps = new[]
{
new AzureNative.DeploymentManager.Inputs.PrePostStepArgs
{
StepId = "Microsoft.DeploymentManager/steps/preDeployStep1",
},
new AzureNative.DeploymentManager.Inputs.PrePostStepArgs
{
StepId = "Microsoft.DeploymentManager/steps/preDeployStep2",
},
},
},
new AzureNative.DeploymentManager.Inputs.StepGroupArgs
{
DependsOnStepGroups = new[]
{
"FirstRegion",
},
DeploymentTargetId = "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'",
Name = "SecondRegion",
PostDeploymentSteps = new[]
{
new AzureNative.DeploymentManager.Inputs.PrePostStepArgs
{
StepId = "Microsoft.DeploymentManager/steps/postDeployStep5",
},
},
PreDeploymentSteps = new[]
{
new AzureNative.DeploymentManager.Inputs.PrePostStepArgs
{
StepId = "Microsoft.DeploymentManager/steps/preDeployStep3",
},
new AzureNative.DeploymentManager.Inputs.PrePostStepArgs
{
StepId = "Microsoft.DeploymentManager/steps/preDeployStep4",
},
},
},
},
Tags = null,
TargetServiceTopologyId = "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology",
});
});
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.NewRollout(ctx, "rollout", &deploymentmanager.RolloutArgs{
ArtifactSourceId: pulumi.String("/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource"),
BuildVersion: pulumi.String("1.0.0.1"),
Identity: &deploymentmanager.IdentityArgs{
IdentityIds: pulumi.StringArray{
pulumi.String("/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity"),
},
Type: pulumi.String("userAssigned"),
},
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
RolloutName: pulumi.String("myRollout"),
StepGroups: []deploymentmanager.StepGroupArgs{
{
DeploymentTargetId: pulumi.String("Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'"),
Name: pulumi.String("FirstRegion"),
PostDeploymentSteps: deploymentmanager.PrePostStepArray{
{
StepId: pulumi.String("Microsoft.DeploymentManager/steps/postDeployStep1"),
},
},
PreDeploymentSteps: deploymentmanager.PrePostStepArray{
{
StepId: pulumi.String("Microsoft.DeploymentManager/steps/preDeployStep1"),
},
{
StepId: pulumi.String("Microsoft.DeploymentManager/steps/preDeployStep2"),
},
},
},
{
DependsOnStepGroups: pulumi.StringArray{
pulumi.String("FirstRegion"),
},
DeploymentTargetId: pulumi.String("Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'"),
Name: pulumi.String("SecondRegion"),
PostDeploymentSteps: deploymentmanager.PrePostStepArray{
{
StepId: pulumi.String("Microsoft.DeploymentManager/steps/postDeployStep5"),
},
},
PreDeploymentSteps: deploymentmanager.PrePostStepArray{
{
StepId: pulumi.String("Microsoft.DeploymentManager/steps/preDeployStep3"),
},
{
StepId: pulumi.String("Microsoft.DeploymentManager/steps/preDeployStep4"),
},
},
},
},
Tags: nil,
TargetServiceTopologyId: pulumi.String("/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology"),
})
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.Rollout;
import com.pulumi.azurenative.deploymentmanager.RolloutArgs;
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 rollout = new Rollout("rollout", RolloutArgs.builder()
.artifactSourceId("/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource")
.buildVersion("1.0.0.1")
.identity(Map.ofEntries(
Map.entry("identityIds", "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity"),
Map.entry("type", "userAssigned")
))
.location("centralus")
.resourceGroupName("myResourceGroup")
.rolloutName("myRollout")
.stepGroups(
Map.ofEntries(
Map.entry("deploymentTargetId", "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'"),
Map.entry("name", "FirstRegion"),
Map.entry("postDeploymentSteps", Map.of("stepId", "Microsoft.DeploymentManager/steps/postDeployStep1")),
Map.entry("preDeploymentSteps",
Map.of("stepId", "Microsoft.DeploymentManager/steps/preDeployStep1"),
Map.of("stepId", "Microsoft.DeploymentManager/steps/preDeployStep2"))
),
Map.ofEntries(
Map.entry("dependsOnStepGroups", "FirstRegion"),
Map.entry("deploymentTargetId", "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'"),
Map.entry("name", "SecondRegion"),
Map.entry("postDeploymentSteps", Map.of("stepId", "Microsoft.DeploymentManager/steps/postDeployStep5")),
Map.entry("preDeploymentSteps",
Map.of("stepId", "Microsoft.DeploymentManager/steps/preDeployStep3"),
Map.of("stepId", "Microsoft.DeploymentManager/steps/preDeployStep4"))
))
.tags()
.targetServiceTopologyId("/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology")
.build());
}
}

Import

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

$ pulumi import azure-native:deploymentmanager:Rollout myRollout /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}

Constructors

Link copied to clipboard
constructor(artifactSourceId: Output<String>? = null, buildVersion: Output<String>? = null, identity: Output<IdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, rolloutName: Output<String>? = null, stepGroups: Output<List<StepGroupArgs>>? = null, tags: Output<Map<String, String>>? = null, targetServiceTopologyId: Output<String>? = null)

Properties

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

The reference to the artifact source resource Id where the payload is located.

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

The version of the build being deployed.

Link copied to clipboard
val identity: Output<IdentityArgs>? = null

Identity for 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 rolloutName: Output<String>? = null

The rollout name.

Link copied to clipboard
val stepGroups: Output<List<StepGroupArgs>>? = null

The list of step groups that define the orchestration.

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

Resource tags.

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

The resource Id of the service topology from which service units are being referenced in step groups to be deployed.

Functions

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