UpdateRun

class UpdateRun : KotlinCustomResource

Details of an Update run Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01. Other available API versions: 2022-12-15-preview, 2023-02-01, 2023-03-01, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-09-01-preview, 2024-12-01-preview, 2025-02-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurestackhci [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Get Update runs under cluster resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var updateRun = new AzureNative.AzureStackHCI.UpdateRun("updateRun", new()
{
ClusterName = "testcluster",
Description = "Update Azure Stack.",
EndTimeUtc = "2022-04-06T13:58:42.969006+00:00",
ErrorMessage = "",
LastUpdatedTimeUtc = "2022-04-06T13:58:42.969006+00:00",
Name = "Unnamed step",
ResourceGroupName = "testrg",
StartTimeUtc = "2022-04-06T01:36:33.3876751+00:00",
Status = "Success",
Steps = new[]
{
new AzureNative.AzureStackHCI.Inputs.StepArgs
{
Description = "Prepare for SSU update",
EndTimeUtc = "2022-04-06T01:37:16.8728314+00:00",
ErrorMessage = "",
LastUpdatedTimeUtc = "2022-04-06T01:37:16.8728314+00:00",
Name = "PreUpdate Cloud",
StartTimeUtc = "2022-04-06T01:36:33.3876751+00:00",
Status = "Success",
Steps = new() { },
},
},
UpdateName = "Microsoft4.2203.2.32",
UpdateRunName = "23b779ba-0d52-4a80-8571-45ca74664ec3",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewUpdateRun(ctx, "updateRun", &azurestackhci.UpdateRunArgs{
ClusterName: pulumi.String("testcluster"),
Description: pulumi.String("Update Azure Stack."),
EndTimeUtc: pulumi.String("2022-04-06T13:58:42.969006+00:00"),
ErrorMessage: pulumi.String(""),
LastUpdatedTimeUtc: pulumi.String("2022-04-06T13:58:42.969006+00:00"),
Name: pulumi.String("Unnamed step"),
ResourceGroupName: pulumi.String("testrg"),
StartTimeUtc: pulumi.String("2022-04-06T01:36:33.3876751+00:00"),
Status: pulumi.String("Success"),
Steps: azurestackhci.StepArray{
&azurestackhci.StepArgs{
Description: pulumi.String("Prepare for SSU update"),
EndTimeUtc: pulumi.String("2022-04-06T01:37:16.8728314+00:00"),
ErrorMessage: pulumi.String(""),
LastUpdatedTimeUtc: pulumi.String("2022-04-06T01:37:16.8728314+00:00"),
Name: pulumi.String("PreUpdate Cloud"),
StartTimeUtc: pulumi.String("2022-04-06T01:36:33.3876751+00:00"),
Status: pulumi.String("Success"),
Steps: azurestackhci.StepArray{},
},
},
UpdateName: pulumi.String("Microsoft4.2203.2.32"),
UpdateRunName: pulumi.String("23b779ba-0d52-4a80-8571-45ca74664ec3"),
})
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.azurestackhci.UpdateRun;
import com.pulumi.azurenative.azurestackhci.UpdateRunArgs;
import com.pulumi.azurenative.azurestackhci.inputs.StepArgs;
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 updateRun = new UpdateRun("updateRun", UpdateRunArgs.builder()
.clusterName("testcluster")
.description("Update Azure Stack.")
.endTimeUtc("2022-04-06T13:58:42.969006+00:00")
.errorMessage("")
.lastUpdatedTimeUtc("2022-04-06T13:58:42.969006+00:00")
.name("Unnamed step")
.resourceGroupName("testrg")
.startTimeUtc("2022-04-06T01:36:33.3876751+00:00")
.status("Success")
.steps(StepArgs.builder()
.description("Prepare for SSU update")
.endTimeUtc("2022-04-06T01:37:16.8728314+00:00")
.errorMessage("")
.lastUpdatedTimeUtc("2022-04-06T01:37:16.8728314+00:00")
.name("PreUpdate Cloud")
.startTimeUtc("2022-04-06T01:36:33.3876751+00:00")
.status("Success")
.steps()
.build())
.updateName("Microsoft4.2203.2.32")
.updateRunName("23b779ba-0d52-4a80-8571-45ca74664ec3")
.build());
}
}

Import

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

$ pulumi import azure-native:azurestackhci:UpdateRun Microsoft4.2203.2.32/23b779ba-0d52-4a80-8571-45ca74664ec3 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}/updateRuns/{updateRunName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val description: Output<String>?

More detailed description of the step.

Link copied to clipboard
val duration: Output<String>?

Duration of the update run.

Link copied to clipboard
val endTimeUtc: Output<String>?

When the step reached a terminal state.

Link copied to clipboard
val errorMessage: Output<String>?

Error message, specified if the step is in a failed state.

Link copied to clipboard

Expected execution time of a given step. This is optionally authored in the update action plan and can be empty.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastUpdatedTime: Output<String>?

Timestamp of the most recently completed step in the update run.

Link copied to clipboard

Completion time of this step or the last completed sub-step.

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

Provisioning state of the UpdateRuns proxy resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val startTimeUtc: Output<String>?

When the step started, or empty if it has not started executing.

Link copied to clipboard
val state: Output<String>?

State of the update run.

Link copied to clipboard
val status: Output<String>?

Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.

Link copied to clipboard
val steps: Output<List<StepResponse>>?

Recursive model for child steps of this step.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val timeStarted: Output<String>?

Timestamp of the update run was started.

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>