Update Run
A multi-stage process to perform update operations across members of a Fleet. Azure REST API version: 2023-03-15-preview. Other available API versions: 2023-06-15-preview, 2023-08-15-preview, 2023-10-15.
Example Usage
Create an UpdateRun.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var updateRun = new AzureNative.ContainerService.UpdateRun("updateRun", new()
{
FleetName = "fleet1",
ManagedClusterUpdate = new AzureNative.ContainerService.Inputs.ManagedClusterUpdateArgs
{
Upgrade = new AzureNative.ContainerService.Inputs.ManagedClusterUpgradeSpecArgs
{
KubernetesVersion = "1.26.1",
Type = "Full",
},
},
ResourceGroupName = "rg1",
Strategy = new AzureNative.ContainerService.Inputs.UpdateRunStrategyArgs
{
Stages = new[]
{
new AzureNative.ContainerService.Inputs.UpdateStageArgs
{
AfterStageWaitInSeconds = 3600,
Groups = new[]
{
new AzureNative.ContainerService.Inputs.UpdateGroupArgs
{
Name = "group-a",
},
},
Name = "stage1",
},
},
},
UpdateRunName = "run1",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerservice.NewUpdateRun(ctx, "updateRun", &containerservice.UpdateRunArgs{
FleetName: pulumi.String("fleet1"),
ManagedClusterUpdate: containerservice.ManagedClusterUpdateResponse{
Upgrade: &containerservice.ManagedClusterUpgradeSpecArgs{
KubernetesVersion: pulumi.String("1.26.1"),
Type: pulumi.String("Full"),
},
},
ResourceGroupName: pulumi.String("rg1"),
Strategy: containerservice.UpdateRunStrategyResponse{
Stages: containerservice.UpdateStageArray{
interface{}{
AfterStageWaitInSeconds: pulumi.Int(3600),
Groups: containerservice.UpdateGroupArray{
&containerservice.UpdateGroupArgs{
Name: pulumi.String("group-a"),
},
},
Name: pulumi.String("stage1"),
},
},
},
UpdateRunName: pulumi.String("run1"),
})
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.containerservice.UpdateRun;
import com.pulumi.azurenative.containerservice.UpdateRunArgs;
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 updateRun = new UpdateRun("updateRun", UpdateRunArgs.builder()
.fleetName("fleet1")
.managedClusterUpdate(Map.of("upgrade", Map.ofEntries(
Map.entry("kubernetesVersion", "1.26.1"),
Map.entry("type", "Full")
)))
.resourceGroupName("rg1")
.strategy(Map.of("stages", Map.ofEntries(
Map.entry("afterStageWaitInSeconds", 3600),
Map.entry("groups", Map.of("name", "group-a")),
Map.entry("name", "stage1")
)))
.updateRunName("run1")
.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:containerservice:UpdateRun run1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}
Content copied to clipboard
Properties
Link copied to clipboard
If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
Link copied to clipboard
Link copied to clipboard