Update Run
Details of an Update run Uses Azure REST API version 2023-03-01. Other available API versions: 2022-12-15-preview, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01, 2024-09-01-preview, 2024-12-01-preview.
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/v2"
"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
More detailed description of the step.
When the step reached a terminal state.
Error message, specified if the step is in a failed state.
Timestamp of the most recently completed step in the update run.
Completion time of this step or the last completed sub-step.
Provisioning state of the UpdateRuns proxy resource.
When the step started, or empty if it has not started executing.
Recursive model for child steps of this step.
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Timestamp of the update run was started.