Update Args
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
Properties
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.
Indicates the way the update content can be downloaded.
The name of the cluster.
Description of the update.
Display name of the Update
Last time the package-specific checks were run.
Date that the update was installed.
Minimum Sbe Version of the update.
Brief message with instructions for updates of AvailabilityType Notify.
Path where the update package is available.
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.
Customer-visible type of the update.
If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty.
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 to release notes for the update.
The name of the resource group. The name is case insensitive.
The name of the Update