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 SourceInvokeAsync(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> |