Update
Update details Azure REST API version: 2023-03-01. Other available API versions: 2022-12-15-preview, 2023-06-01, 2023-08-01.
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 = "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 = "Installed",
UpdateName = "Microsoft4.2203.2.32",
Version = "4.2203.2.32",
});
});
Content copied to clipboard
package main
import (
"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.NewUpdate(ctx, "update", &azurestackhci.UpdateArgs{
AdditionalProperties: pulumi.String("additional properties"),
AvailabilityType: pulumi.String("Local"),
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.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("Installed"),
UpdateName: pulumi.String("Microsoft4.2203.2.32"),
Version: pulumi.String("4.2203.2.32"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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)
.packageType("Infrastructure")
.prerequisites(Map.ofEntries(
Map.entry("packageName", "update package name"),
Map.entry("updateType", "update type"),
Map.entry("version", "prerequisite version")
))
.progressPercentage(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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard