We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.containerservice.getKubernetesNodePoolSnapshot
Explore with Pulumi AI
Use this data source to access information about an existing Kubernetes Node Pool Snapshot.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.containerservice.getKubernetesNodePoolSnapshot({
    name: "example",
    resourceGroupName: "example-resources",
});
import pulumi
import pulumi_azure as azure
example = azure.containerservice.get_kubernetes_node_pool_snapshot(name="example",
    resource_group_name="example-resources")
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerservice.GetKubernetesNodePoolSnapshot(ctx, &containerservice.GetKubernetesNodePoolSnapshotArgs{
			Name:              "example",
			ResourceGroupName: "example-resources",
		}, nil)
		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 = Azure.ContainerService.GetKubernetesNodePoolSnapshot.Invoke(new()
    {
        Name = "example",
        ResourceGroupName = "example-resources",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerservice.ContainerserviceFunctions;
import com.pulumi.azure.containerservice.inputs.GetKubernetesNodePoolSnapshotArgs;
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) {
        final var example = ContainerserviceFunctions.getKubernetesNodePoolSnapshot(GetKubernetesNodePoolSnapshotArgs.builder()
            .name("example")
            .resourceGroupName("example-resources")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:containerservice:getKubernetesNodePoolSnapshot
      arguments:
        name: example
        resourceGroupName: example-resources
Using getKubernetesNodePoolSnapshot
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 getKubernetesNodePoolSnapshot(args: GetKubernetesNodePoolSnapshotArgs, opts?: InvokeOptions): Promise<GetKubernetesNodePoolSnapshotResult>
function getKubernetesNodePoolSnapshotOutput(args: GetKubernetesNodePoolSnapshotOutputArgs, opts?: InvokeOptions): Output<GetKubernetesNodePoolSnapshotResult>def get_kubernetes_node_pool_snapshot(name: Optional[str] = None,
                                      resource_group_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetKubernetesNodePoolSnapshotResult
def get_kubernetes_node_pool_snapshot_output(name: Optional[pulumi.Input[str]] = None,
                                      resource_group_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesNodePoolSnapshotResult]func GetKubernetesNodePoolSnapshot(ctx *Context, args *GetKubernetesNodePoolSnapshotArgs, opts ...InvokeOption) (*GetKubernetesNodePoolSnapshotResult, error)
func GetKubernetesNodePoolSnapshotOutput(ctx *Context, args *GetKubernetesNodePoolSnapshotOutputArgs, opts ...InvokeOption) GetKubernetesNodePoolSnapshotResultOutput> Note: This function is named GetKubernetesNodePoolSnapshot in the Go SDK.
public static class GetKubernetesNodePoolSnapshot 
{
    public static Task<GetKubernetesNodePoolSnapshotResult> InvokeAsync(GetKubernetesNodePoolSnapshotArgs args, InvokeOptions? opts = null)
    public static Output<GetKubernetesNodePoolSnapshotResult> Invoke(GetKubernetesNodePoolSnapshotInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKubernetesNodePoolSnapshotResult> getKubernetesNodePoolSnapshot(GetKubernetesNodePoolSnapshotArgs args, InvokeOptions options)
public static Output<GetKubernetesNodePoolSnapshotResult> getKubernetesNodePoolSnapshot(GetKubernetesNodePoolSnapshotArgs args, InvokeOptions options)
fn::invoke:
  function: azure:containerservice/getKubernetesNodePoolSnapshot:getKubernetesNodePoolSnapshot
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Kubernetes Node Pool Snapshot.
- ResourceGroup stringName 
- The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
- Name string
- The name of the Kubernetes Node Pool Snapshot.
- ResourceGroup stringName 
- The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
- name String
- The name of the Kubernetes Node Pool Snapshot.
- resourceGroup StringName 
- The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
- name string
- The name of the Kubernetes Node Pool Snapshot.
- resourceGroup stringName 
- The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
- name str
- The name of the Kubernetes Node Pool Snapshot.
- resource_group_ strname 
- The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
- name String
- The name of the Kubernetes Node Pool Snapshot.
- resourceGroup StringName 
- The name of the Resource Group in which the Kubernetes Node Pool Snapshot exists.
getKubernetesNodePoolSnapshot Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- ResourceGroup stringName 
- SourceNode stringPool Id 
- The ID of the source Node Pool.
- Dictionary<string, string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- ResourceGroup stringName 
- SourceNode stringPool Id 
- The ID of the source Node Pool.
- map[string]string
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- resourceGroup StringName 
- sourceNode StringPool Id 
- The ID of the source Node Pool.
- Map<String,String>
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- resourceGroup stringName 
- sourceNode stringPool Id 
- The ID of the source Node Pool.
- {[key: string]: string}
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- resource_group_ strname 
- source_node_ strpool_ id 
- The ID of the source Node Pool.
- Mapping[str, str]
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- resourceGroup StringName 
- sourceNode StringPool Id 
- The ID of the source Node Pool.
- Map<String>
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.