1. Packages
  2. Azure Native
  3. API Docs
  4. hybridcontainerservice
  5. getKubernetesVersions
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi

    Lists the supported kubernetes versions for the specified custom location

    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.

    Using getKubernetesVersions

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getKubernetesVersions(args: GetKubernetesVersionsArgs, opts?: InvokeOptions): Promise<GetKubernetesVersionsResult>
    function getKubernetesVersionsOutput(args: GetKubernetesVersionsOutputArgs, opts?: InvokeOptions): Output<GetKubernetesVersionsResult>
    def get_kubernetes_versions(custom_location_resource_uri: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetKubernetesVersionsResult
    def get_kubernetes_versions_output(custom_location_resource_uri: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesVersionsResult]
    func LookupKubernetesVersions(ctx *Context, args *LookupKubernetesVersionsArgs, opts ...InvokeOption) (*LookupKubernetesVersionsResult, error)
    func LookupKubernetesVersionsOutput(ctx *Context, args *LookupKubernetesVersionsOutputArgs, opts ...InvokeOption) LookupKubernetesVersionsResultOutput

    > Note: This function is named LookupKubernetesVersions in the Go SDK.

    public static class GetKubernetesVersions 
    {
        public static Task<GetKubernetesVersionsResult> InvokeAsync(GetKubernetesVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetKubernetesVersionsResult> Invoke(GetKubernetesVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubernetesVersionsResult> getKubernetesVersions(GetKubernetesVersionsArgs args, InvokeOptions options)
    public static Output<GetKubernetesVersionsResult> getKubernetesVersions(GetKubernetesVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:hybridcontainerservice:getKubernetesVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CustomLocationResourceUri string
    The fully qualified Azure Resource Manager identifier of the custom location resource.
    CustomLocationResourceUri string
    The fully qualified Azure Resource Manager identifier of the custom location resource.
    customLocationResourceUri String
    The fully qualified Azure Resource Manager identifier of the custom location resource.
    customLocationResourceUri string
    The fully qualified Azure Resource Manager identifier of the custom location resource.
    custom_location_resource_uri str
    The fully qualified Azure Resource Manager identifier of the custom location resource.
    customLocationResourceUri String
    The fully qualified Azure Resource Manager identifier of the custom location resource.

    getKubernetesVersions Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    Properties Pulumi.AzureNative.HybridContainerService.Outputs.KubernetesVersionProfileResponseProperties
    SystemData Pulumi.AzureNative.HybridContainerService.Outputs.SystemDataResponse
    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"
    ExtendedLocation Pulumi.AzureNative.HybridContainerService.Outputs.ExtendedLocationResponse
    Extended location pointing to the underlying infrastructure
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Name string
    The name of the resource
    Properties KubernetesVersionProfileResponseProperties
    SystemData SystemDataResponse
    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"
    ExtendedLocation ExtendedLocationResponse
    Extended location pointing to the underlying infrastructure
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    properties KubernetesVersionProfileResponseProperties
    systemData SystemDataResponse
    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"
    extendedLocation ExtendedLocationResponse
    Extended location pointing to the underlying infrastructure
    azureApiVersion string
    The Azure API version of the resource.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name string
    The name of the resource
    properties KubernetesVersionProfileResponseProperties
    systemData SystemDataResponse
    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"
    extendedLocation ExtendedLocationResponse
    Extended location pointing to the underlying infrastructure
    azure_api_version str
    The Azure API version of the resource.
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name str
    The name of the resource
    properties KubernetesVersionProfileResponseProperties
    system_data SystemDataResponse
    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"
    extended_location ExtendedLocationResponse
    Extended location pointing to the underlying infrastructure
    azureApiVersion String
    The Azure API version of the resource.
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    name String
    The name of the resource
    properties Property Map
    systemData 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"
    extendedLocation Property Map
    Extended location pointing to the underlying infrastructure

    Supporting Types

    ExtendedLocationResponse

    Name string
    ARM Id of the extended location.
    Type string
    The extended location type. Allowed value: 'CustomLocation'
    Name string
    ARM Id of the extended location.
    Type string
    The extended location type. Allowed value: 'CustomLocation'
    name String
    ARM Id of the extended location.
    type String
    The extended location type. Allowed value: 'CustomLocation'
    name string
    ARM Id of the extended location.
    type string
    The extended location type. Allowed value: 'CustomLocation'
    name str
    ARM Id of the extended location.
    type str
    The extended location type. Allowed value: 'CustomLocation'
    name String
    ARM Id of the extended location.
    type String
    The extended location type. Allowed value: 'CustomLocation'

    KubernetesPatchVersionsResponse

    Readiness List<Pulumi.AzureNative.HybridContainerService.Inputs.KubernetesVersionReadinessResponse>
    Indicates whether the kubernetes version image is ready or not
    Upgrades List<string>
    Possible upgrade paths for given patch version
    Readiness []KubernetesVersionReadinessResponse
    Indicates whether the kubernetes version image is ready or not
    Upgrades []string
    Possible upgrade paths for given patch version
    readiness List<KubernetesVersionReadinessResponse>
    Indicates whether the kubernetes version image is ready or not
    upgrades List<String>
    Possible upgrade paths for given patch version
    readiness KubernetesVersionReadinessResponse[]
    Indicates whether the kubernetes version image is ready or not
    upgrades string[]
    Possible upgrade paths for given patch version
    readiness Sequence[KubernetesVersionReadinessResponse]
    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

    ProvisioningState string
    Provisioning state of the resource
    Values List<Pulumi.AzureNative.HybridContainerService.Inputs.KubernetesVersionPropertiesResponse>
    List of supported Kubernetes versions
    ProvisioningState string
    Provisioning state of the resource
    Values []KubernetesVersionPropertiesResponse
    List of supported Kubernetes versions
    provisioningState String
    Provisioning state of the resource
    values List<KubernetesVersionPropertiesResponse>
    List of supported Kubernetes versions
    provisioningState string
    Provisioning state of the resource
    values KubernetesVersionPropertiesResponse[]
    List of supported Kubernetes versions
    provisioning_state str
    Provisioning state of the resource
    values Sequence[KubernetesVersionPropertiesResponse]
    List of supported Kubernetes versions
    provisioningState String
    Provisioning state of the resource
    values List<Property Map>
    List of supported Kubernetes versions

    KubernetesVersionPropertiesResponse

    IsPreview bool
    Whether this version is in preview mode.
    PatchVersions Dictionary<string, Pulumi.AzureNative.HybridContainerService.Inputs.KubernetesPatchVersionsResponse>
    Patch versions of a Kubernetes release
    Version string
    major.minor version of Kubernetes release
    IsPreview bool
    Whether this version is in preview mode.
    PatchVersions map[string]KubernetesPatchVersionsResponse
    Patch versions of a Kubernetes release
    Version string
    major.minor version of Kubernetes release
    isPreview Boolean
    Whether this version is in preview mode.
    patchVersions Map<String,KubernetesPatchVersionsResponse>
    Patch versions of a Kubernetes release
    version String
    major.minor version of Kubernetes release
    isPreview boolean
    Whether this version is in preview mode.
    patchVersions {[key: string]: KubernetesPatchVersionsResponse}
    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, KubernetesPatchVersionsResponse]
    Patch versions of a Kubernetes release
    version str
    major.minor version of Kubernetes release
    isPreview Boolean
    Whether this version is in preview mode.
    patchVersions Map<Property Map>
    Patch versions of a Kubernetes release
    version String
    major.minor version of Kubernetes release

    KubernetesVersionReadinessResponse

    ErrorMessage string
    The error message for version not being ready
    OsType string
    The particular KubernetesVersion Image OS Type (Linux, Windows)
    Ready bool
    Whether the kubernetes version image is ready or not
    OsSku 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.
    ErrorMessage string
    The error message for version not being ready
    OsType string
    The particular KubernetesVersion Image OS Type (Linux, Windows)
    Ready bool
    Whether the kubernetes version image is ready or not
    OsSku 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.
    errorMessage String
    The error message for version not being ready
    osType String
    The particular KubernetesVersion Image OS Type (Linux, Windows)
    ready Boolean
    Whether the kubernetes version image is ready or not
    osSku 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.
    errorMessage string
    The error message for version not being ready
    osType string
    The particular KubernetesVersion Image OS Type (Linux, Windows)
    ready boolean
    Whether the kubernetes version image is ready or not
    osSku 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.
    errorMessage String
    The error message for version not being ready
    osType String
    The particular KubernetesVersion Image OS Type (Linux, Windows)
    ready Boolean
    Whether the kubernetes version image is ready or not
    osSku 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

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.10.1 published on Friday, Nov 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate