Update Args
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 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 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
Constructors
Link copied to clipboard
fun UpdateArgs(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, 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)
Functions
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