UpdateArgs

data class UpdateArgs(val additionalProperties: Output<String>? = null, val availabilityType: Output<Either<String, AvailabilityType>>? = null, val clusterName: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val healthCheckDate: Output<String>? = null, val installedDate: Output<String>? = null, val location: Output<String>? = null, val minSbeVersionRequired: Output<String>? = null, val notifyMessage: Output<String>? = null, val packagePath: Output<String>? = null, val packageSizeInMb: Output<Double>? = null, val packageType: Output<String>? = null, val prerequisites: Output<List<UpdatePrerequisiteArgs>>? = null, val progressPercentage: Output<Double>? = null, val publisher: Output<String>? = null, val releaseLink: Output<String>? = null, val resourceGroupName: Output<String>? = null, val state: Output<Either<String, State>>? = null, val updateName: Output<String>? = null, val version: Output<String>? = null) : ConvertibleToJava<UpdateArgs>

Update details 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

Put a specific update

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var update = new AzureNative.AzureStackHCI.Update("update", new()
{
AdditionalProperties = "additional properties",
AvailabilityType = AzureNative.AzureStackHCI.AvailabilityType.Local,
ClusterName = "testcluster",
Description = "AzS Update 4.2203.2.32",
DisplayName = "AzS Update - 4.2203.2.32",
InstalledDate = "2022-04-06T14:08:18.254Z",
NotifyMessage = "Brief message with instructions for updates of AvailabilityType Notify",
PackagePath = "\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32",
PackageSizeInMb = 18858,
PackageType = "Infrastructure",
Prerequisites = new[]
{
new AzureNative.AzureStackHCI.Inputs.UpdatePrerequisiteArgs
{
PackageName = "update package name",
UpdateType = "update type",
Version = "prerequisite version",
},
},
ProgressPercentage = 0,
Publisher = "Microsoft",
ReleaseLink = "https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203",
ResourceGroupName = "testrg",
State = AzureNative.AzureStackHCI.State.Installed,
UpdateName = "Microsoft4.2203.2.32",
Version = "4.2203.2.32",
});
});
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.NewUpdate(ctx, "update", &azurestackhci.UpdateArgs{
AdditionalProperties: pulumi.String("additional properties"),
AvailabilityType: pulumi.String(azurestackhci.AvailabilityTypeLocal),
ClusterName: pulumi.String("testcluster"),
Description: pulumi.String("AzS Update 4.2203.2.32"),
DisplayName: pulumi.String("AzS Update - 4.2203.2.32"),
InstalledDate: pulumi.String("2022-04-06T14:08:18.254Z"),
NotifyMessage: pulumi.String("Brief message with instructions for updates of AvailabilityType Notify"),
PackagePath: pulumi.String("\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32"),
PackageSizeInMb: pulumi.Float64(18858),
PackageType: pulumi.String("Infrastructure"),
Prerequisites: azurestackhci.UpdatePrerequisiteArray{
&azurestackhci.UpdatePrerequisiteArgs{
PackageName: pulumi.String("update package name"),
UpdateType: pulumi.String("update type"),
Version: pulumi.String("prerequisite version"),
},
},
ProgressPercentage: pulumi.Float64(0),
Publisher: pulumi.String("Microsoft"),
ReleaseLink: pulumi.String("https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203"),
ResourceGroupName: pulumi.String("testrg"),
State: pulumi.String(azurestackhci.StateInstalled),
UpdateName: pulumi.String("Microsoft4.2203.2.32"),
Version: pulumi.String("4.2203.2.32"),
})
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.Update;
import com.pulumi.azurenative.azurestackhci.UpdateArgs;
import com.pulumi.azurenative.azurestackhci.inputs.UpdatePrerequisiteArgs;
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 update = new Update("update", UpdateArgs.builder()
.additionalProperties("additional properties")
.availabilityType("Local")
.clusterName("testcluster")
.description("AzS Update 4.2203.2.32")
.displayName("AzS Update - 4.2203.2.32")
.installedDate("2022-04-06T14:08:18.254Z")
.notifyMessage("Brief message with instructions for updates of AvailabilityType Notify")
.packagePath("\\\\SU1FileServer\\SU1_Infrastructure_2\\Updates\\Packages\\Microsoft4.2203.2.32")
.packageSizeInMb(18858.0)
.packageType("Infrastructure")
.prerequisites(UpdatePrerequisiteArgs.builder()
.packageName("update package name")
.updateType("update type")
.version("prerequisite version")
.build())
.progressPercentage(0.0)
.publisher("Microsoft")
.releaseLink("https://docs.microsoft.com/azure-stack/operator/release-notes?view=azs-2203")
.resourceGroupName("testrg")
.state("Installed")
.updateName("Microsoft4.2203.2.32")
.version("4.2203.2.32")
.build());
}
}

Import

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

$ pulumi import azure-native:azurestackhci:Update Microsoft4.2203.2.32 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}

Constructors

Link copied to clipboard
constructor(additionalProperties: Output<String>? = null, availabilityType: Output<Either<String, AvailabilityType>>? = null, clusterName: Output<String>? = null, description: Output<String>? = null, displayName: Output<String>? = null, healthCheckDate: Output<String>? = null, installedDate: Output<String>? = null, location: Output<String>? = null, minSbeVersionRequired: Output<String>? = null, notifyMessage: Output<String>? = null, packagePath: Output<String>? = null, packageSizeInMb: Output<Double>? = null, packageType: Output<String>? = null, prerequisites: Output<List<UpdatePrerequisiteArgs>>? = null, progressPercentage: Output<Double>? = null, publisher: Output<String>? = null, releaseLink: Output<String>? = null, resourceGroupName: Output<String>? = null, state: Output<Either<String, State>>? = null, updateName: Output<String>? = null, version: Output<String>? = null)

Properties

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

Extensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type.

Link copied to clipboard
val availabilityType: Output<Either<String, AvailabilityType>>? = null

Indicates the way the update content can be downloaded.

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

The name of the cluster.

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

Description of the update.

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

Display name of the Update

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

Last time the package-specific checks were run.

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

Date that the update was installed.

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

The geo-location where the resource lives

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

Minimum Sbe Version of the update.

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

Brief message with instructions for updates of AvailabilityType Notify.

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

Path where the update package is available.

Link copied to clipboard
val packageSizeInMb: Output<Double>? = null

Size of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content.

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

Customer-visible type of the update.

Link copied to clipboard

If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty.

Link copied to clipboard
val progressPercentage: Output<Double>? = null

Progress percentage of ongoing operation. Currently this property is only valid when the update is in the Downloading state, where it maps to how much of the update content has been downloaded.

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

Publisher of the update package.

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

Link to release notes for the update.

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 state: Output<Either<String, State>>? = null

State of the update as it relates to this stamp.

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

The name of the Update

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

Version of the update.

Functions

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