The supported kubernetes versions.
Uses Azure REST API version 2025-02-01-preview.
Other available API versions: 2023-11-15-preview, 2024-01-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hybridcontainerservice [ApiVersion]. See the version guide for details.
Example Usage
PutKubernetesVersions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var kubernetesVersions = new AzureNative.HybridContainerService.KubernetesVersions("kubernetesVersions", new()
{
CustomLocationResourceUri = "subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
ExtendedLocation = new AzureNative.HybridContainerService.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
Type = AzureNative.HybridContainerService.ExtendedLocationTypes.CustomLocation,
},
});
});
package main
import (
hybridcontainerservice "github.com/pulumi/pulumi-azure-native-sdk/hybridcontainerservice/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridcontainerservice.NewKubernetesVersions(ctx, "kubernetesVersions", &hybridcontainerservice.KubernetesVersionsArgs{
CustomLocationResourceUri: pulumi.String("subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation"),
ExtendedLocation: &hybridcontainerservice.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation"),
Type: pulumi.String(hybridcontainerservice.ExtendedLocationTypesCustomLocation),
},
})
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.hybridcontainerservice.KubernetesVersions;
import com.pulumi.azurenative.hybridcontainerservice.KubernetesVersionsArgs;
import com.pulumi.azurenative.hybridcontainerservice.inputs.ExtendedLocationArgs;
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 kubernetesVersions = new KubernetesVersions("kubernetesVersions", KubernetesVersionsArgs.builder()
.customLocationResourceUri("subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation")
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation")
.type("CustomLocation")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const kubernetesVersions = new azure_native.hybridcontainerservice.KubernetesVersions("kubernetesVersions", {
customLocationResourceUri: "subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
extendedLocation: {
name: "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
type: azure_native.hybridcontainerservice.ExtendedLocationTypes.CustomLocation,
},
});
import pulumi
import pulumi_azure_native as azure_native
kubernetes_versions = azure_native.hybridcontainerservice.KubernetesVersions("kubernetesVersions",
custom_location_resource_uri="subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation",
extended_location={
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
"type": azure_native.hybridcontainerservice.ExtendedLocationTypes.CUSTOM_LOCATION,
})
resources:
kubernetesVersions:
type: azure-native:hybridcontainerservice:KubernetesVersions
properties:
customLocationResourceUri: subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.ExtendedLocation/customLocations/testcustomlocation
extendedLocation:
name: /subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation
type: CustomLocation
Create KubernetesVersions Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesVersions(name: string, args: KubernetesVersionsArgs, opts?: CustomResourceOptions);@overload
def KubernetesVersions(resource_name: str,
args: KubernetesVersionsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesVersions(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_location_resource_uri: Optional[str] = None,
extended_location: Optional[ExtendedLocationArgs] = None)func NewKubernetesVersions(ctx *Context, name string, args KubernetesVersionsArgs, opts ...ResourceOption) (*KubernetesVersions, error)public KubernetesVersions(string name, KubernetesVersionsArgs args, CustomResourceOptions? opts = null)
public KubernetesVersions(String name, KubernetesVersionsArgs args)
public KubernetesVersions(String name, KubernetesVersionsArgs args, CustomResourceOptions options)
type: azure-native:hybridcontainerservice:KubernetesVersions
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 KubernetesVersionsArgs
- 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 KubernetesVersionsArgs
- 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 KubernetesVersionsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesVersionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesVersionsArgs
- 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 kubernetesVersionsResource = new AzureNative.HybridContainerService.KubernetesVersions("kubernetesVersionsResource", new()
{
CustomLocationResourceUri = "string",
ExtendedLocation = new AzureNative.HybridContainerService.Inputs.ExtendedLocationArgs
{
Name = "string",
Type = "string",
},
});
example, err := hybridcontainerservice.NewKubernetesVersions(ctx, "kubernetesVersionsResource", &hybridcontainerservice.KubernetesVersionsArgs{
CustomLocationResourceUri: pulumi.String("string"),
ExtendedLocation: &hybridcontainerservice.ExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
})
var kubernetesVersionsResource = new KubernetesVersions("kubernetesVersionsResource", KubernetesVersionsArgs.builder()
.customLocationResourceUri("string")
.extendedLocation(ExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.build());
kubernetes_versions_resource = azure_native.hybridcontainerservice.KubernetesVersions("kubernetesVersionsResource",
custom_location_resource_uri="string",
extended_location={
"name": "string",
"type": "string",
})
const kubernetesVersionsResource = new azure_native.hybridcontainerservice.KubernetesVersions("kubernetesVersionsResource", {
customLocationResourceUri: "string",
extendedLocation: {
name: "string",
type: "string",
},
});
type: azure-native:hybridcontainerservice:KubernetesVersions
properties:
customLocationResourceUri: string
extendedLocation:
name: string
type: string
KubernetesVersions 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 KubernetesVersions resource accepts the following input properties:
- Custom
Location stringResource Uri - The fully qualified Azure Resource Manager identifier of the custom location resource.
- Extended
Location Pulumi.Azure Native. Hybrid Container Service. Inputs. Extended Location - Extended location pointing to the underlying infrastructure
- Custom
Location stringResource Uri - The fully qualified Azure Resource Manager identifier of the custom location resource.
- Extended
Location ExtendedLocation Args - Extended location pointing to the underlying infrastructure
- custom
Location StringResource Uri - The fully qualified Azure Resource Manager identifier of the custom location resource.
- extended
Location ExtendedLocation - Extended location pointing to the underlying infrastructure
- custom
Location stringResource Uri - The fully qualified Azure Resource Manager identifier of the custom location resource.
- extended
Location ExtendedLocation - Extended location pointing to the underlying infrastructure
- custom_
location_ strresource_ uri - The fully qualified Azure Resource Manager identifier of the custom location resource.
- extended_
location ExtendedLocation Args - Extended location pointing to the underlying infrastructure
- custom
Location StringResource Uri - The fully qualified Azure Resource Manager identifier of the custom location resource.
- extended
Location Property Map - Extended location pointing to the underlying infrastructure
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesVersions resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Properties
Pulumi.
Azure Native. Hybrid Container Service. Outputs. Kubernetes Version Profile Response Properties - System
Data Pulumi.Azure Native. Hybrid Container Service. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Properties
Kubernetes
Version Profile Response Properties - System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- properties
Kubernetes
Version Profile Response Properties - system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- properties
Kubernetes
Version Profile Response Properties - system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- properties
Kubernetes
Version Profile Response Properties - system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- properties Property Map
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ExtendedLocation, ExtendedLocationArgs
Extended location pointing to the underlying infrastructure- Name string
- ARM Id of the extended location.
- Type
string | Pulumi.
Azure Native. Hybrid Container Service. Extended Location Types - The extended location type. Allowed value: 'CustomLocation'
- Name string
- ARM Id of the extended location.
- Type
string | Extended
Location Types - The extended location type. Allowed value: 'CustomLocation'
- name String
- ARM Id of the extended location.
- type
String | Extended
Location Types - The extended location type. Allowed value: 'CustomLocation'
- name string
- ARM Id of the extended location.
- type
string | Extended
Location Types - The extended location type. Allowed value: 'CustomLocation'
- name str
- ARM Id of the extended location.
- type
str | Extended
Location Types - The extended location type. Allowed value: 'CustomLocation'
- name String
- ARM Id of the extended location.
- type
String | "Custom
Location" - The extended location type. Allowed value: 'CustomLocation'
ExtendedLocationResponse, ExtendedLocationResponseArgs
Extended location pointing to the underlying infrastructureExtendedLocationTypes, ExtendedLocationTypesArgs
- Custom
Location - CustomLocation
- Extended
Location Types Custom Location - CustomLocation
- Custom
Location - CustomLocation
- Custom
Location - CustomLocation
- CUSTOM_LOCATION
- CustomLocation
- "Custom
Location" - CustomLocation
KubernetesPatchVersionsResponse, KubernetesPatchVersionsResponseArgs
Kubernetes Patch Version profile- Readiness
List<Pulumi.
Azure Native. Hybrid Container Service. Inputs. Kubernetes Version Readiness Response> - Indicates whether the kubernetes version image is ready or not
- Upgrades List<string>
- Possible upgrade paths for given patch version
- Readiness
[]Kubernetes
Version Readiness Response - Indicates whether the kubernetes version image is ready or not
- Upgrades []string
- Possible upgrade paths for given patch version
- readiness
List<Kubernetes
Version Readiness Response> - Indicates whether the kubernetes version image is ready or not
- upgrades List<String>
- Possible upgrade paths for given patch version
- readiness
Kubernetes
Version Readiness Response[] - Indicates whether the kubernetes version image is ready or not
- upgrades string[]
- Possible upgrade paths for given patch version
- readiness
Sequence[Kubernetes
Version Readiness Response] - Indicates whether the kubernetes version image is ready or not
- upgrades Sequence[str]
- Possible upgrade paths for given patch version
- readiness List<Property Map>
- Indicates whether the kubernetes version image is ready or not
- upgrades List<String>
- Possible upgrade paths for given patch version
KubernetesVersionProfileResponseProperties, KubernetesVersionProfileResponsePropertiesArgs
- Provisioning
State string - Provisioning state of the resource
- Values
List<Pulumi.
Azure Native. Hybrid Container Service. Inputs. Kubernetes Version Properties Response> - List of supported Kubernetes versions
- Provisioning
State string - Provisioning state of the resource
- Values
[]Kubernetes
Version Properties Response - List of supported Kubernetes versions
- provisioning
State String - Provisioning state of the resource
- values
List<Kubernetes
Version Properties Response> - List of supported Kubernetes versions
- provisioning
State string - Provisioning state of the resource
- values
Kubernetes
Version Properties Response[] - List of supported Kubernetes versions
- provisioning_
state str - Provisioning state of the resource
- values
Sequence[Kubernetes
Version Properties Response] - List of supported Kubernetes versions
- provisioning
State String - Provisioning state of the resource
- values List<Property Map>
- List of supported Kubernetes versions
KubernetesVersionPropertiesResponse, KubernetesVersionPropertiesResponseArgs
Kubernetes version profile for given major.minor release- Is
Preview bool - Whether this version is in preview mode.
- Patch
Versions Dictionary<string, Pulumi.Azure Native. Hybrid Container Service. Inputs. Kubernetes Patch Versions Response> - Patch versions of a Kubernetes release
- Version string
- major.minor version of Kubernetes release
- Is
Preview bool - Whether this version is in preview mode.
- Patch
Versions map[string]KubernetesPatch Versions Response - Patch versions of a Kubernetes release
- Version string
- major.minor version of Kubernetes release
- is
Preview Boolean - Whether this version is in preview mode.
- patch
Versions Map<String,KubernetesPatch Versions Response> - Patch versions of a Kubernetes release
- version String
- major.minor version of Kubernetes release
- is
Preview boolean - Whether this version is in preview mode.
- patch
Versions {[key: string]: KubernetesPatch Versions Response} - Patch versions of a Kubernetes release
- version string
- major.minor version of Kubernetes release
- is_
preview bool - Whether this version is in preview mode.
- patch_
versions Mapping[str, KubernetesPatch Versions Response] - Patch versions of a Kubernetes release
- version str
- major.minor version of Kubernetes release
- is
Preview Boolean - Whether this version is in preview mode.
- patch
Versions Map<Property Map> - Patch versions of a Kubernetes release
- version String
- major.minor version of Kubernetes release
KubernetesVersionReadinessResponse, KubernetesVersionReadinessResponseArgs
Indicates whether the kubernetes version image is ready or not- Error
Message string - The error message for version not being ready
- Os
Type string - The particular KubernetesVersion Image OS Type (Linux, Windows)
- Ready bool
- Whether the kubernetes version image is ready or not
- Os
Sku string - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.
- Error
Message string - The error message for version not being ready
- Os
Type string - The particular KubernetesVersion Image OS Type (Linux, Windows)
- Ready bool
- Whether the kubernetes version image is ready or not
- Os
Sku string - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.
- error
Message String - The error message for version not being ready
- os
Type String - The particular KubernetesVersion Image OS Type (Linux, Windows)
- ready Boolean
- Whether the kubernetes version image is ready or not
- os
Sku String - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.
- error
Message string - The error message for version not being ready
- os
Type string - The particular KubernetesVersion Image OS Type (Linux, Windows)
- ready boolean
- Whether the kubernetes version image is ready or not
- os
Sku string - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.
- error_
message str - The error message for version not being ready
- os_
type str - The particular KubernetesVersion Image OS Type (Linux, Windows)
- ready bool
- Whether the kubernetes version image is ready or not
- os_
sku str - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.
- error
Message String - The error message for version not being ready
- os
Type String - The particular KubernetesVersion Image OS Type (Linux, Windows)
- ready Boolean
- Whether the kubernetes version image is ready or not
- os
Sku String - Specifies the OS SKU used by the agent pool. The default is CBLMariner if OSType is Linux. The default is Windows2019 when OSType is Windows.
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:hybridcontainerservice:KubernetesVersions default /{customLocationResourceUri}/providers/Microsoft.HybridContainerService/kubernetesVersions/default
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
