Show / Hide Table of Contents

Class GetKubernetesServiceVersions

Inheritance
System.Object
GetKubernetesServiceVersions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.ContainerService
Assembly: Pulumi.Azure.dll
Syntax
public static class GetKubernetesServiceVersions

Methods

View Source

InvokeAsync(GetKubernetesServiceVersionsArgs, InvokeOptions)

Use this data source to retrieve the version of Kubernetes supported by Azure Kubernetes Service.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var current = Output.Create(Azure.ContainerService.GetKubernetesServiceVersions.InvokeAsync(new Azure.ContainerService.GetKubernetesServiceVersionsArgs
    {
        Location = "West Europe",
    }));
    this.Versions = current.Apply(current => current.Versions);
    this.LatestVersion = current.Apply(current => current.LatestVersion);
}

[Output("versions")]
public Output<string> Versions { get; set; }
[Output("latestVersion")]
public Output<string> LatestVersion { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetKubernetesServiceVersionsResult> InvokeAsync(GetKubernetesServiceVersionsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetKubernetesServiceVersionsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetKubernetesServiceVersionsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.