Update Run Args
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}
Constructors
Properties
The name of the cluster.
More detailed description of the step.
When the step reached a terminal state.
Error message, specified if the step is in a failed state.
Expected execution time of a given step. This is optionally authored in the update action plan and can be empty.
Timestamp of the most recently completed step in the update run.
Completion time of this step or the last completed sub-step.
The name of the resource group. The name is case insensitive.
When the step started, or empty if it has not started executing.
State of the update run.
Timestamp of the update run was started.
The name of the Update
The name of the Update Run