Update

class Update : KotlinCustomResource

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}

Properties

Link copied to clipboard

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<String>?

Indicates the way the update content can be downloaded.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

Description of the update.

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

Display name of the Update

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

Last time the package-specific checks were run.

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

Date that the update was installed.

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

The geo-location where the resource lives

Link copied to clipboard

Minimum Sbe Version of the update.

Link copied to clipboard
val name: Output<String>

The name of the resource

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

Brief message with instructions for updates of AvailabilityType Notify.

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

Path where the update package is available.

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

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>?

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

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

Provisioning state of the Updates proxy resource.

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

Publisher of the update package.

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

Link to release notes for the update.

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

State of the update as it relates to this stamp.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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>
Link copied to clipboard
val version: Output<String>?

Version of the update.