We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.elasticsan.get
Explore with Pulumi AI
Use this data source to access information about an existing Elastic SAN.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.elasticsan.get({
    name: "existing",
    resourceGroupName: "existing",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.elasticsan.get(name="existing",
    resource_group_name="existing")
pulumi.export("id", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/elasticsan"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := elasticsan.Get(ctx, &elasticsan.GetArgs{
			Name:              "existing",
			ResourceGroupName: "existing",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.ElasticSan.Get.Invoke(new()
    {
        Name = "existing",
        ResourceGroupName = "existing",
    });
    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getResult => getResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.elasticsan.ElasticsanFunctions;
import com.pulumi.azure.elasticsan.inputs.GetArgs;
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 = ElasticsanFunctions.get(GetArgs.builder()
            .name("existing")
            .resourceGroupName("existing")
            .build());
        ctx.export("id", example.applyValue(getResult -> getResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:elasticsan:get
      arguments:
        name: existing
        resourceGroupName: existing
outputs:
  id: ${example.id}
Using get
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 get(args: GetArgs, opts?: InvokeOptions): Promise<GetResult>
function getOutput(args: GetOutputArgs, opts?: InvokeOptions): Output<GetResult>def get(name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        opts: Optional[InvokeOptions] = None) -> GetResult
def get_output(name: Optional[pulumi.Input[str]] = None,
        resource_group_name: Optional[pulumi.Input[str]] = None,
        opts: Optional[InvokeOptions] = None) -> Output[GetResult]func Get(ctx *Context, args *GetArgs, opts ...InvokeOption) (*GetResult, error)
func GetOutput(ctx *Context, args *GetOutputArgs, opts ...InvokeOption) GetResultOutput> Note: This function is named Get in the Go SDK.
public static class Get 
{
    public static Task<GetResult> InvokeAsync(GetArgs args, InvokeOptions? opts = null)
    public static Output<GetResult> Invoke(GetInvokeArgs args, InvokeOptions? opts = null)
}fn::invoke:
  function: azure:elasticsan/get:get
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of this Elastic SAN.
- ResourceGroup stringName 
- The name of the Resource Group where the Elastic SAN exists.
- Name string
- The name of this Elastic SAN.
- ResourceGroup stringName 
- The name of the Resource Group where the Elastic SAN exists.
- name String
- The name of this Elastic SAN.
- resourceGroup StringName 
- The name of the Resource Group where the Elastic SAN exists.
- name string
- The name of this Elastic SAN.
- resourceGroup stringName 
- The name of the Resource Group where the Elastic SAN exists.
- name str
- The name of this Elastic SAN.
- resource_group_ strname 
- The name of the Resource Group where the Elastic SAN exists.
- name String
- The name of this Elastic SAN.
- resourceGroup StringName 
- The name of the Resource Group where the Elastic SAN exists.
get Result
The following output properties are available:
- BaseSize intIn Tib 
- The base size of the Elastic SAN resource in TiB.
- ExtendedSize intIn Tib 
- The base size of the Elastic SAN resource in TiB.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Elastic SAN exists.
- Name string
- The SKU name.
- ResourceGroup stringName 
- Skus
List<GetSkus> 
- A skublock as defined below.
- Dictionary<string, string>
- A mapping of tags assigned to the Elastic SAN.
- TotalIops int
- Total Provisioned IOps of the Elastic SAN resource.
- TotalMbps int
- Total Provisioned MBps Elastic SAN resource.
- TotalSize intIn Tib 
- Total size of the Elastic SAN resource in TB.
- TotalVolume intSize In Gib 
- Total size of the provisioned Volumes in GiB.
- VolumeGroup intCount 
- Total number of volume groups in this Elastic SAN resource.
- Zones List<string>
- Logical zone for the Elastic SAN resource.
- BaseSize intIn Tib 
- The base size of the Elastic SAN resource in TiB.
- ExtendedSize intIn Tib 
- The base size of the Elastic SAN resource in TiB.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Elastic SAN exists.
- Name string
- The SKU name.
- ResourceGroup stringName 
- Skus
[]GetSkus 
- A skublock as defined below.
- map[string]string
- A mapping of tags assigned to the Elastic SAN.
- TotalIops int
- Total Provisioned IOps of the Elastic SAN resource.
- TotalMbps int
- Total Provisioned MBps Elastic SAN resource.
- TotalSize intIn Tib 
- Total size of the Elastic SAN resource in TB.
- TotalVolume intSize In Gib 
- Total size of the provisioned Volumes in GiB.
- VolumeGroup intCount 
- Total number of volume groups in this Elastic SAN resource.
- Zones []string
- Logical zone for the Elastic SAN resource.
- baseSize IntegerIn Tib 
- The base size of the Elastic SAN resource in TiB.
- extendedSize IntegerIn Tib 
- The base size of the Elastic SAN resource in TiB.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Elastic SAN exists.
- name String
- The SKU name.
- resourceGroup StringName 
- skus
List<GetSkus> 
- A skublock as defined below.
- Map<String,String>
- A mapping of tags assigned to the Elastic SAN.
- totalIops Integer
- Total Provisioned IOps of the Elastic SAN resource.
- totalMbps Integer
- Total Provisioned MBps Elastic SAN resource.
- totalSize IntegerIn Tib 
- Total size of the Elastic SAN resource in TB.
- totalVolume IntegerSize In Gib 
- Total size of the provisioned Volumes in GiB.
- volumeGroup IntegerCount 
- Total number of volume groups in this Elastic SAN resource.
- zones List<String>
- Logical zone for the Elastic SAN resource.
- baseSize numberIn Tib 
- The base size of the Elastic SAN resource in TiB.
- extendedSize numberIn Tib 
- The base size of the Elastic SAN resource in TiB.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Elastic SAN exists.
- name string
- The SKU name.
- resourceGroup stringName 
- skus
GetSkus[] 
- A skublock as defined below.
- {[key: string]: string}
- A mapping of tags assigned to the Elastic SAN.
- totalIops number
- Total Provisioned IOps of the Elastic SAN resource.
- totalMbps number
- Total Provisioned MBps Elastic SAN resource.
- totalSize numberIn Tib 
- Total size of the Elastic SAN resource in TB.
- totalVolume numberSize In Gib 
- Total size of the provisioned Volumes in GiB.
- volumeGroup numberCount 
- Total number of volume groups in this Elastic SAN resource.
- zones string[]
- Logical zone for the Elastic SAN resource.
- base_size_ intin_ tib 
- The base size of the Elastic SAN resource in TiB.
- extended_size_ intin_ tib 
- The base size of the Elastic SAN resource in TiB.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Elastic SAN exists.
- name str
- The SKU name.
- resource_group_ strname 
- skus
Sequence[GetSkus] 
- A skublock as defined below.
- Mapping[str, str]
- A mapping of tags assigned to the Elastic SAN.
- total_iops int
- Total Provisioned IOps of the Elastic SAN resource.
- total_mbps int
- Total Provisioned MBps Elastic SAN resource.
- total_size_ intin_ tib 
- Total size of the Elastic SAN resource in TB.
- total_volume_ intsize_ in_ gib 
- Total size of the provisioned Volumes in GiB.
- volume_group_ intcount 
- Total number of volume groups in this Elastic SAN resource.
- zones Sequence[str]
- Logical zone for the Elastic SAN resource.
- baseSize NumberIn Tib 
- The base size of the Elastic SAN resource in TiB.
- extendedSize NumberIn Tib 
- The base size of the Elastic SAN resource in TiB.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Elastic SAN exists.
- name String
- The SKU name.
- resourceGroup StringName 
- skus List<Property Map>
- A skublock as defined below.
- Map<String>
- A mapping of tags assigned to the Elastic SAN.
- totalIops Number
- Total Provisioned IOps of the Elastic SAN resource.
- totalMbps Number
- Total Provisioned MBps Elastic SAN resource.
- totalSize NumberIn Tib 
- Total size of the Elastic SAN resource in TB.
- totalVolume NumberSize In Gib 
- Total size of the provisioned Volumes in GiB.
- volumeGroup NumberCount 
- Total number of volume groups in this Elastic SAN resource.
- zones List<String>
- Logical zone for the Elastic SAN resource.
Supporting Types
GetSkus 
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.