We recommend using Azure Native.
azure.containerservice.FleetUpdateRun
Explore with Pulumi AI
Manages a Kubernetes Fleet Update Run.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-rg",
location: "westeurope",
});
const exampleKubernetesFleetManager = new azure.containerservice.KubernetesFleetManager("example", {
location: example.location,
name: "example",
resourceGroupName: example.name,
});
const exampleKubernetesCluster = new azure.containerservice.KubernetesCluster("example", {
name: "example",
location: example.location,
resourceGroupName: example.name,
dnsPrefix: "example",
defaultNodePool: {
name: "default",
nodeCount: 1,
vmSize: "Standard_DS2_v2",
},
identity: {
type: "SystemAssigned",
},
});
const exampleFleetMember = new azure.containerservice.FleetMember("example", {
name: "example",
kubernetesFleetId: exampleKubernetesFleetManager.id,
kubernetesClusterId: exampleKubernetesCluster.id,
group: "example-group",
});
const exampleFleetUpdateRun = new azure.containerservice.FleetUpdateRun("example", {
name: "example",
kubernetesFleetManagerId: exampleKubernetesFleetManager.id,
managedClusterUpdate: {
upgrade: {
type: "Full",
kubernetesVersion: "1.27",
},
nodeImageSelection: {
type: "Latest",
},
},
stages: [{
name: "example",
groups: [{
name: "example-group",
}],
afterStageWaitInSeconds: 21,
}],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-rg",
location="westeurope")
example_kubernetes_fleet_manager = azure.containerservice.KubernetesFleetManager("example",
location=example.location,
name="example",
resource_group_name=example.name)
example_kubernetes_cluster = azure.containerservice.KubernetesCluster("example",
name="example",
location=example.location,
resource_group_name=example.name,
dns_prefix="example",
default_node_pool={
"name": "default",
"node_count": 1,
"vm_size": "Standard_DS2_v2",
},
identity={
"type": "SystemAssigned",
})
example_fleet_member = azure.containerservice.FleetMember("example",
name="example",
kubernetes_fleet_id=example_kubernetes_fleet_manager.id,
kubernetes_cluster_id=example_kubernetes_cluster.id,
group="example-group")
example_fleet_update_run = azure.containerservice.FleetUpdateRun("example",
name="example",
kubernetes_fleet_manager_id=example_kubernetes_fleet_manager.id,
managed_cluster_update={
"upgrade": {
"type": "Full",
"kubernetes_version": "1.27",
},
"node_image_selection": {
"type": "Latest",
},
},
stages=[{
"name": "example",
"groups": [{
"name": "example-group",
}],
"after_stage_wait_in_seconds": 21,
}])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-rg"),
Location: pulumi.String("westeurope"),
})
if err != nil {
return err
}
exampleKubernetesFleetManager, err := containerservice.NewKubernetesFleetManager(ctx, "example", &containerservice.KubernetesFleetManagerArgs{
Location: example.Location,
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{
Name: pulumi.String("example"),
Location: example.Location,
ResourceGroupName: example.Name,
DnsPrefix: pulumi.String("example"),
DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{
Name: pulumi.String("default"),
NodeCount: pulumi.Int(1),
VmSize: pulumi.String("Standard_DS2_v2"),
},
Identity: &containerservice.KubernetesClusterIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
_, err = containerservice.NewFleetMember(ctx, "example", &containerservice.FleetMemberArgs{
Name: pulumi.String("example"),
KubernetesFleetId: exampleKubernetesFleetManager.ID(),
KubernetesClusterId: exampleKubernetesCluster.ID(),
Group: pulumi.String("example-group"),
})
if err != nil {
return err
}
_, err = containerservice.NewFleetUpdateRun(ctx, "example", &containerservice.FleetUpdateRunArgs{
Name: pulumi.String("example"),
KubernetesFleetManagerId: exampleKubernetesFleetManager.ID(),
ManagedClusterUpdate: &containerservice.FleetUpdateRunManagedClusterUpdateArgs{
Upgrade: &containerservice.FleetUpdateRunManagedClusterUpdateUpgradeArgs{
Type: pulumi.String("Full"),
KubernetesVersion: pulumi.String("1.27"),
},
NodeImageSelection: &containerservice.FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs{
Type: pulumi.String("Latest"),
},
},
Stages: containerservice.FleetUpdateRunStageArray{
&containerservice.FleetUpdateRunStageArgs{
Name: pulumi.String("example"),
Groups: containerservice.FleetUpdateRunStageGroupArray{
&containerservice.FleetUpdateRunStageGroupArgs{
Name: pulumi.String("example-group"),
},
},
AfterStageWaitInSeconds: pulumi.Int(21),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-rg",
Location = "westeurope",
});
var exampleKubernetesFleetManager = new Azure.ContainerService.KubernetesFleetManager("example", new()
{
Location = example.Location,
Name = "example",
ResourceGroupName = example.Name,
});
var exampleKubernetesCluster = new Azure.ContainerService.KubernetesCluster("example", new()
{
Name = "example",
Location = example.Location,
ResourceGroupName = example.Name,
DnsPrefix = "example",
DefaultNodePool = new Azure.ContainerService.Inputs.KubernetesClusterDefaultNodePoolArgs
{
Name = "default",
NodeCount = 1,
VmSize = "Standard_DS2_v2",
},
Identity = new Azure.ContainerService.Inputs.KubernetesClusterIdentityArgs
{
Type = "SystemAssigned",
},
});
var exampleFleetMember = new Azure.ContainerService.FleetMember("example", new()
{
Name = "example",
KubernetesFleetId = exampleKubernetesFleetManager.Id,
KubernetesClusterId = exampleKubernetesCluster.Id,
Group = "example-group",
});
var exampleFleetUpdateRun = new Azure.ContainerService.FleetUpdateRun("example", new()
{
Name = "example",
KubernetesFleetManagerId = exampleKubernetesFleetManager.Id,
ManagedClusterUpdate = new Azure.ContainerService.Inputs.FleetUpdateRunManagedClusterUpdateArgs
{
Upgrade = new Azure.ContainerService.Inputs.FleetUpdateRunManagedClusterUpdateUpgradeArgs
{
Type = "Full",
KubernetesVersion = "1.27",
},
NodeImageSelection = new Azure.ContainerService.Inputs.FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs
{
Type = "Latest",
},
},
Stages = new[]
{
new Azure.ContainerService.Inputs.FleetUpdateRunStageArgs
{
Name = "example",
Groups = new[]
{
new Azure.ContainerService.Inputs.FleetUpdateRunStageGroupArgs
{
Name = "example-group",
},
},
AfterStageWaitInSeconds = 21,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.KubernetesFleetManager;
import com.pulumi.azure.containerservice.KubernetesFleetManagerArgs;
import com.pulumi.azure.containerservice.KubernetesCluster;
import com.pulumi.azure.containerservice.KubernetesClusterArgs;
import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolArgs;
import com.pulumi.azure.containerservice.inputs.KubernetesClusterIdentityArgs;
import com.pulumi.azure.containerservice.FleetMember;
import com.pulumi.azure.containerservice.FleetMemberArgs;
import com.pulumi.azure.containerservice.FleetUpdateRun;
import com.pulumi.azure.containerservice.FleetUpdateRunArgs;
import com.pulumi.azure.containerservice.inputs.FleetUpdateRunManagedClusterUpdateArgs;
import com.pulumi.azure.containerservice.inputs.FleetUpdateRunManagedClusterUpdateUpgradeArgs;
import com.pulumi.azure.containerservice.inputs.FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs;
import com.pulumi.azure.containerservice.inputs.FleetUpdateRunStageArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-rg")
.location("westeurope")
.build());
var exampleKubernetesFleetManager = new KubernetesFleetManager("exampleKubernetesFleetManager", KubernetesFleetManagerArgs.builder()
.location(example.location())
.name("example")
.resourceGroupName(example.name())
.build());
var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.dnsPrefix("example")
.defaultNodePool(KubernetesClusterDefaultNodePoolArgs.builder()
.name("default")
.nodeCount(1)
.vmSize("Standard_DS2_v2")
.build())
.identity(KubernetesClusterIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var exampleFleetMember = new FleetMember("exampleFleetMember", FleetMemberArgs.builder()
.name("example")
.kubernetesFleetId(exampleKubernetesFleetManager.id())
.kubernetesClusterId(exampleKubernetesCluster.id())
.group("example-group")
.build());
var exampleFleetUpdateRun = new FleetUpdateRun("exampleFleetUpdateRun", FleetUpdateRunArgs.builder()
.name("example")
.kubernetesFleetManagerId(exampleKubernetesFleetManager.id())
.managedClusterUpdate(FleetUpdateRunManagedClusterUpdateArgs.builder()
.upgrade(FleetUpdateRunManagedClusterUpdateUpgradeArgs.builder()
.type("Full")
.kubernetesVersion("1.27")
.build())
.nodeImageSelection(FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs.builder()
.type("Latest")
.build())
.build())
.stages(FleetUpdateRunStageArgs.builder()
.name("example")
.groups(FleetUpdateRunStageGroupArgs.builder()
.name("example-group")
.build())
.afterStageWaitInSeconds(21)
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-rg
location: westeurope
exampleKubernetesFleetManager:
type: azure:containerservice:KubernetesFleetManager
name: example
properties:
location: ${example.location}
name: example
resourceGroupName: ${example.name}
exampleKubernetesCluster:
type: azure:containerservice:KubernetesCluster
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
dnsPrefix: example
defaultNodePool:
name: default
nodeCount: 1
vmSize: Standard_DS2_v2
identity:
type: SystemAssigned
exampleFleetMember:
type: azure:containerservice:FleetMember
name: example
properties:
name: example
kubernetesFleetId: ${exampleKubernetesFleetManager.id}
kubernetesClusterId: ${exampleKubernetesCluster.id}
group: example-group
exampleFleetUpdateRun:
type: azure:containerservice:FleetUpdateRun
name: example
properties:
name: example
kubernetesFleetManagerId: ${exampleKubernetesFleetManager.id}
managedClusterUpdate:
upgrade:
type: Full
kubernetesVersion: '1.27'
nodeImageSelection:
type: Latest
stages:
- name: example
groups:
- name: example-group
afterStageWaitInSeconds: 21
Create FleetUpdateRun Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FleetUpdateRun(name: string, args: FleetUpdateRunArgs, opts?: CustomResourceOptions);
@overload
def FleetUpdateRun(resource_name: str,
args: FleetUpdateRunArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FleetUpdateRun(resource_name: str,
opts: Optional[ResourceOptions] = None,
kubernetes_fleet_manager_id: Optional[str] = None,
managed_cluster_update: Optional[FleetUpdateRunManagedClusterUpdateArgs] = None,
fleet_update_strategy_id: Optional[str] = None,
name: Optional[str] = None,
stages: Optional[Sequence[FleetUpdateRunStageArgs]] = None)
func NewFleetUpdateRun(ctx *Context, name string, args FleetUpdateRunArgs, opts ...ResourceOption) (*FleetUpdateRun, error)
public FleetUpdateRun(string name, FleetUpdateRunArgs args, CustomResourceOptions? opts = null)
public FleetUpdateRun(String name, FleetUpdateRunArgs args)
public FleetUpdateRun(String name, FleetUpdateRunArgs args, CustomResourceOptions options)
type: azure:containerservice:FleetUpdateRun
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FleetUpdateRunArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FleetUpdateRunArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FleetUpdateRunArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetUpdateRunArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetUpdateRunArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var fleetUpdateRunResource = new Azure.ContainerService.FleetUpdateRun("fleetUpdateRunResource", new()
{
KubernetesFleetManagerId = "string",
ManagedClusterUpdate = new Azure.ContainerService.Inputs.FleetUpdateRunManagedClusterUpdateArgs
{
Upgrade = new Azure.ContainerService.Inputs.FleetUpdateRunManagedClusterUpdateUpgradeArgs
{
Type = "string",
KubernetesVersion = "string",
},
NodeImageSelection = new Azure.ContainerService.Inputs.FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs
{
Type = "string",
},
},
FleetUpdateStrategyId = "string",
Name = "string",
Stages = new[]
{
new Azure.ContainerService.Inputs.FleetUpdateRunStageArgs
{
Groups = new[]
{
new Azure.ContainerService.Inputs.FleetUpdateRunStageGroupArgs
{
Name = "string",
},
},
Name = "string",
AfterStageWaitInSeconds = 0,
},
},
});
example, err := containerservice.NewFleetUpdateRun(ctx, "fleetUpdateRunResource", &containerservice.FleetUpdateRunArgs{
KubernetesFleetManagerId: pulumi.String("string"),
ManagedClusterUpdate: &containerservice.FleetUpdateRunManagedClusterUpdateArgs{
Upgrade: &containerservice.FleetUpdateRunManagedClusterUpdateUpgradeArgs{
Type: pulumi.String("string"),
KubernetesVersion: pulumi.String("string"),
},
NodeImageSelection: &containerservice.FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs{
Type: pulumi.String("string"),
},
},
FleetUpdateStrategyId: pulumi.String("string"),
Name: pulumi.String("string"),
Stages: containerservice.FleetUpdateRunStageArray{
&containerservice.FleetUpdateRunStageArgs{
Groups: containerservice.FleetUpdateRunStageGroupArray{
&containerservice.FleetUpdateRunStageGroupArgs{
Name: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
AfterStageWaitInSeconds: pulumi.Int(0),
},
},
})
var fleetUpdateRunResource = new FleetUpdateRun("fleetUpdateRunResource", FleetUpdateRunArgs.builder()
.kubernetesFleetManagerId("string")
.managedClusterUpdate(FleetUpdateRunManagedClusterUpdateArgs.builder()
.upgrade(FleetUpdateRunManagedClusterUpdateUpgradeArgs.builder()
.type("string")
.kubernetesVersion("string")
.build())
.nodeImageSelection(FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs.builder()
.type("string")
.build())
.build())
.fleetUpdateStrategyId("string")
.name("string")
.stages(FleetUpdateRunStageArgs.builder()
.groups(FleetUpdateRunStageGroupArgs.builder()
.name("string")
.build())
.name("string")
.afterStageWaitInSeconds(0)
.build())
.build());
fleet_update_run_resource = azure.containerservice.FleetUpdateRun("fleetUpdateRunResource",
kubernetes_fleet_manager_id="string",
managed_cluster_update={
"upgrade": {
"type": "string",
"kubernetes_version": "string",
},
"node_image_selection": {
"type": "string",
},
},
fleet_update_strategy_id="string",
name="string",
stages=[{
"groups": [{
"name": "string",
}],
"name": "string",
"after_stage_wait_in_seconds": 0,
}])
const fleetUpdateRunResource = new azure.containerservice.FleetUpdateRun("fleetUpdateRunResource", {
kubernetesFleetManagerId: "string",
managedClusterUpdate: {
upgrade: {
type: "string",
kubernetesVersion: "string",
},
nodeImageSelection: {
type: "string",
},
},
fleetUpdateStrategyId: "string",
name: "string",
stages: [{
groups: [{
name: "string",
}],
name: "string",
afterStageWaitInSeconds: 0,
}],
});
type: azure:containerservice:FleetUpdateRun
properties:
fleetUpdateStrategyId: string
kubernetesFleetManagerId: string
managedClusterUpdate:
nodeImageSelection:
type: string
upgrade:
kubernetesVersion: string
type: string
name: string
stages:
- afterStageWaitInSeconds: 0
groups:
- name: string
name: string
FleetUpdateRun Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FleetUpdateRun resource accepts the following input properties:
- Kubernetes
Fleet stringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Managed
Cluster FleetUpdate Update Run Managed Cluster Update - A
managed_cluster_update
block as defined below. - Fleet
Update stringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - Name string
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Stages
List<Fleet
Update Run Stage> - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- Kubernetes
Fleet stringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Managed
Cluster FleetUpdate Update Run Managed Cluster Update Args - A
managed_cluster_update
block as defined below. - Fleet
Update stringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - Name string
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Stages
[]Fleet
Update Run Stage Args - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- kubernetes
Fleet StringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed
Cluster FleetUpdate Update Run Managed Cluster Update - A
managed_cluster_update
block as defined below. - fleet
Update StringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - name String
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages
List<Fleet
Update Run Stage> - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- kubernetes
Fleet stringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed
Cluster FleetUpdate Update Run Managed Cluster Update - A
managed_cluster_update
block as defined below. - fleet
Update stringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - name string
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages
Fleet
Update Run Stage[] - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- kubernetes_
fleet_ strmanager_ id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed_
cluster_ Fleetupdate Update Run Managed Cluster Update Args - A
managed_cluster_update
block as defined below. - fleet_
update_ strstrategy_ id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - name str
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages
Sequence[Fleet
Update Run Stage Args] - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- kubernetes
Fleet StringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed
Cluster Property MapUpdate - A
managed_cluster_update
block as defined below. - fleet
Update StringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - name String
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages List<Property Map>
- One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the FleetUpdateRun resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FleetUpdateRun Resource
Get an existing FleetUpdateRun resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FleetUpdateRunState, opts?: CustomResourceOptions): FleetUpdateRun
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fleet_update_strategy_id: Optional[str] = None,
kubernetes_fleet_manager_id: Optional[str] = None,
managed_cluster_update: Optional[FleetUpdateRunManagedClusterUpdateArgs] = None,
name: Optional[str] = None,
stages: Optional[Sequence[FleetUpdateRunStageArgs]] = None) -> FleetUpdateRun
func GetFleetUpdateRun(ctx *Context, name string, id IDInput, state *FleetUpdateRunState, opts ...ResourceOption) (*FleetUpdateRun, error)
public static FleetUpdateRun Get(string name, Input<string> id, FleetUpdateRunState? state, CustomResourceOptions? opts = null)
public static FleetUpdateRun get(String name, Output<String> id, FleetUpdateRunState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Fleet
Update stringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - Kubernetes
Fleet stringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Managed
Cluster FleetUpdate Update Run Managed Cluster Update - A
managed_cluster_update
block as defined below. - Name string
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Stages
List<Fleet
Update Run Stage> - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- Fleet
Update stringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - Kubernetes
Fleet stringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Managed
Cluster FleetUpdate Update Run Managed Cluster Update Args - A
managed_cluster_update
block as defined below. - Name string
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- Stages
[]Fleet
Update Run Stage Args - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- fleet
Update StringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - kubernetes
Fleet StringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed
Cluster FleetUpdate Update Run Managed Cluster Update - A
managed_cluster_update
block as defined below. - name String
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages
List<Fleet
Update Run Stage> - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- fleet
Update stringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - kubernetes
Fleet stringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed
Cluster FleetUpdate Update Run Managed Cluster Update - A
managed_cluster_update
block as defined below. - name string
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages
Fleet
Update Run Stage[] - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- fleet_
update_ strstrategy_ id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - kubernetes_
fleet_ strmanager_ id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed_
cluster_ Fleetupdate Update Run Managed Cluster Update Args - A
managed_cluster_update
block as defined below. - name str
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages
Sequence[Fleet
Update Run Stage Args] - One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
- fleet
Update StringStrategy Id - The ID of the Fleet Update Strategy. Only one of
fleet_update_strategy_id
orstage
can be specified. - kubernetes
Fleet StringManager Id - The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created.
- managed
Cluster Property MapUpdate - A
managed_cluster_update
block as defined below. - name String
- The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created.
- stages List<Property Map>
- One or more
stage
blocks as defined below. Only one ofstage
orfleet_update_strategy_id
can be specified.
Supporting Types
FleetUpdateRunManagedClusterUpdate, FleetUpdateRunManagedClusterUpdateArgs
- Upgrade
Fleet
Update Run Managed Cluster Update Upgrade - A
upgrade
block as defined below. - Node
Image FleetSelection Update Run Managed Cluster Update Node Image Selection - A
node_image_selection
block as defined below.
- Upgrade
Fleet
Update Run Managed Cluster Update Upgrade - A
upgrade
block as defined below. - Node
Image FleetSelection Update Run Managed Cluster Update Node Image Selection - A
node_image_selection
block as defined below.
- upgrade
Fleet
Update Run Managed Cluster Update Upgrade - A
upgrade
block as defined below. - node
Image FleetSelection Update Run Managed Cluster Update Node Image Selection - A
node_image_selection
block as defined below.
- upgrade
Fleet
Update Run Managed Cluster Update Upgrade - A
upgrade
block as defined below. - node
Image FleetSelection Update Run Managed Cluster Update Node Image Selection - A
node_image_selection
block as defined below.
- upgrade
Fleet
Update Run Managed Cluster Update Upgrade - A
upgrade
block as defined below. - node_
image_ Fleetselection Update Run Managed Cluster Update Node Image Selection - A
node_image_selection
block as defined below.
- upgrade Property Map
- A
upgrade
block as defined below. - node
Image Property MapSelection - A
node_image_selection
block as defined below.
FleetUpdateRunManagedClusterUpdateNodeImageSelection, FleetUpdateRunManagedClusterUpdateNodeImageSelectionArgs
- Type string
- Specifies the node image upgrade type. Possible values are
Latest
andConsistent
.
- Type string
- Specifies the node image upgrade type. Possible values are
Latest
andConsistent
.
- type String
- Specifies the node image upgrade type. Possible values are
Latest
andConsistent
.
- type string
- Specifies the node image upgrade type. Possible values are
Latest
andConsistent
.
- type str
- Specifies the node image upgrade type. Possible values are
Latest
andConsistent
.
- type String
- Specifies the node image upgrade type. Possible values are
Latest
andConsistent
.
FleetUpdateRunManagedClusterUpdateUpgrade, FleetUpdateRunManagedClusterUpdateUpgradeArgs
- Type string
- Specifies the type of upgrade to perform. Possible values are
Full
andNodeImageOnly
. - Kubernetes
Version string - Specifies the Kubernetes version to upgrade the member clusters to. This is required if
type
is set toFull
.
- Type string
- Specifies the type of upgrade to perform. Possible values are
Full
andNodeImageOnly
. - Kubernetes
Version string - Specifies the Kubernetes version to upgrade the member clusters to. This is required if
type
is set toFull
.
- type String
- Specifies the type of upgrade to perform. Possible values are
Full
andNodeImageOnly
. - kubernetes
Version String - Specifies the Kubernetes version to upgrade the member clusters to. This is required if
type
is set toFull
.
- type string
- Specifies the type of upgrade to perform. Possible values are
Full
andNodeImageOnly
. - kubernetes
Version string - Specifies the Kubernetes version to upgrade the member clusters to. This is required if
type
is set toFull
.
- type str
- Specifies the type of upgrade to perform. Possible values are
Full
andNodeImageOnly
. - kubernetes_
version str - Specifies the Kubernetes version to upgrade the member clusters to. This is required if
type
is set toFull
.
- type String
- Specifies the type of upgrade to perform. Possible values are
Full
andNodeImageOnly
. - kubernetes
Version String - Specifies the Kubernetes version to upgrade the member clusters to. This is required if
type
is set toFull
.
FleetUpdateRunStage, FleetUpdateRunStageArgs
- Groups
List<Fleet
Update Run Stage Group> - One or more
group
blocks as defined below. - Name string
- The name which should be used for this stage.
- After
Stage intWait In Seconds - Specifies the time in seconds to wait at the end of this stage before starting the next one.
- Groups
[]Fleet
Update Run Stage Group - One or more
group
blocks as defined below. - Name string
- The name which should be used for this stage.
- After
Stage intWait In Seconds - Specifies the time in seconds to wait at the end of this stage before starting the next one.
- groups
List<Fleet
Update Run Stage Group> - One or more
group
blocks as defined below. - name String
- The name which should be used for this stage.
- after
Stage IntegerWait In Seconds - Specifies the time in seconds to wait at the end of this stage before starting the next one.
- groups
Fleet
Update Run Stage Group[] - One or more
group
blocks as defined below. - name string
- The name which should be used for this stage.
- after
Stage numberWait In Seconds - Specifies the time in seconds to wait at the end of this stage before starting the next one.
- groups
Sequence[Fleet
Update Run Stage Group] - One or more
group
blocks as defined below. - name str
- The name which should be used for this stage.
- after_
stage_ intwait_ in_ seconds - Specifies the time in seconds to wait at the end of this stage before starting the next one.
- groups List<Property Map>
- One or more
group
blocks as defined below. - name String
- The name which should be used for this stage.
- after
Stage NumberWait In Seconds - Specifies the time in seconds to wait at the end of this stage before starting the next one.
FleetUpdateRunStageGroup, FleetUpdateRunStageGroupArgs
- Name string
- The name which should be used for this group.
- Name string
- The name which should be used for this group.
- name String
- The name which should be used for this group.
- name string
- The name which should be used for this group.
- name str
- The name which should be used for this group.
- name String
- The name which should be used for this group.
Import
Kubernetes Fleet Update Runs can be imported using the resource id
, e.g.
$ pulumi import azure:containerservice/fleetUpdateRun:FleetUpdateRun example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/fleets/fleet1/updateRuns/updateRun1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.