1. Packages
  2. Azure Classic
  3. API Docs
  4. datashare
  5. getDatasetBlobStorage

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.datashare.getDatasetBlobStorage

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about an existing Data Share Blob Storage Dataset.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.datashare.getDatasetBlobStorage({
    name: "example-dsbsds",
    dataShareId: "example-share-id",
});
export const id = example.then(example => example.id);
Copy
import pulumi
import pulumi_azure as azure

example = azure.datashare.get_dataset_blob_storage(name="example-dsbsds",
    data_share_id="example-share-id")
pulumi.export("id", example.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datashare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := datashare.LookupDatasetBlobStorage(ctx, &datashare.LookupDatasetBlobStorageArgs{
			Name:        "example-dsbsds",
			DataShareId: "example-share-id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("id", example.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.DataShare.GetDatasetBlobStorage.Invoke(new()
    {
        Name = "example-dsbsds",
        DataShareId = "example-share-id",
    });

    return new Dictionary<string, object?>
    {
        ["id"] = example.Apply(getDatasetBlobStorageResult => getDatasetBlobStorageResult.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.datashare.DatashareFunctions;
import com.pulumi.azure.datashare.inputs.GetDatasetBlobStorageArgs;
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 = DatashareFunctions.getDatasetBlobStorage(GetDatasetBlobStorageArgs.builder()
            .name("example-dsbsds")
            .dataShareId("example-share-id")
            .build());

        ctx.export("id", example.applyValue(getDatasetBlobStorageResult -> getDatasetBlobStorageResult.id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:datashare:getDatasetBlobStorage
      arguments:
        name: example-dsbsds
        dataShareId: example-share-id
outputs:
  id: ${example.id}
Copy

Using getDatasetBlobStorage

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 getDatasetBlobStorage(args: GetDatasetBlobStorageArgs, opts?: InvokeOptions): Promise<GetDatasetBlobStorageResult>
function getDatasetBlobStorageOutput(args: GetDatasetBlobStorageOutputArgs, opts?: InvokeOptions): Output<GetDatasetBlobStorageResult>
Copy
def get_dataset_blob_storage(data_share_id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDatasetBlobStorageResult
def get_dataset_blob_storage_output(data_share_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDatasetBlobStorageResult]
Copy
func LookupDatasetBlobStorage(ctx *Context, args *LookupDatasetBlobStorageArgs, opts ...InvokeOption) (*LookupDatasetBlobStorageResult, error)
func LookupDatasetBlobStorageOutput(ctx *Context, args *LookupDatasetBlobStorageOutputArgs, opts ...InvokeOption) LookupDatasetBlobStorageResultOutput
Copy

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

public static class GetDatasetBlobStorage 
{
    public static Task<GetDatasetBlobStorageResult> InvokeAsync(GetDatasetBlobStorageArgs args, InvokeOptions? opts = null)
    public static Output<GetDatasetBlobStorageResult> Invoke(GetDatasetBlobStorageInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatasetBlobStorageResult> getDatasetBlobStorage(GetDatasetBlobStorageArgs args, InvokeOptions options)
public static Output<GetDatasetBlobStorageResult> getDatasetBlobStorage(GetDatasetBlobStorageArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:datashare/getDatasetBlobStorage:getDatasetBlobStorage
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DataShareId This property is required. string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
Name This property is required. string
The name of this Data Share Blob Storage Dataset.
DataShareId This property is required. string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
Name This property is required. string
The name of this Data Share Blob Storage Dataset.
dataShareId This property is required. String
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
name This property is required. String
The name of this Data Share Blob Storage Dataset.
dataShareId This property is required. string
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
name This property is required. string
The name of this Data Share Blob Storage Dataset.
data_share_id This property is required. str
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
name This property is required. str
The name of this Data Share Blob Storage Dataset.
dataShareId This property is required. String
The ID of the Data Share in which this Data Share Blob Storage Dataset should be created.
name This property is required. String
The name of this Data Share Blob Storage Dataset.

getDatasetBlobStorage Result

The following output properties are available:

ContainerName string
The name of the storage account container to be shared with the receiver.
DataShareId string
DisplayName string
The name of the Data Share Dataset.
FilePath string
The path of the file in the storage container to be shared with the receiver.
FolderPath string
The folder path of the file in the storage container to be shared with the receiver.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the storage account to be shared with the receiver.
StorageAccounts List<GetDatasetBlobStorageStorageAccount>
A storage_account block as defined below.
ContainerName string
The name of the storage account container to be shared with the receiver.
DataShareId string
DisplayName string
The name of the Data Share Dataset.
FilePath string
The path of the file in the storage container to be shared with the receiver.
FolderPath string
The folder path of the file in the storage container to be shared with the receiver.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the storage account to be shared with the receiver.
StorageAccounts []GetDatasetBlobStorageStorageAccount
A storage_account block as defined below.
containerName String
The name of the storage account container to be shared with the receiver.
dataShareId String
displayName String
The name of the Data Share Dataset.
filePath String
The path of the file in the storage container to be shared with the receiver.
folderPath String
The folder path of the file in the storage container to be shared with the receiver.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the storage account to be shared with the receiver.
storageAccounts List<GetDatasetBlobStorageStorageAccount>
A storage_account block as defined below.
containerName string
The name of the storage account container to be shared with the receiver.
dataShareId string
displayName string
The name of the Data Share Dataset.
filePath string
The path of the file in the storage container to be shared with the receiver.
folderPath string
The folder path of the file in the storage container to be shared with the receiver.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the storage account to be shared with the receiver.
storageAccounts GetDatasetBlobStorageStorageAccount[]
A storage_account block as defined below.
container_name str
The name of the storage account container to be shared with the receiver.
data_share_id str
display_name str
The name of the Data Share Dataset.
file_path str
The path of the file in the storage container to be shared with the receiver.
folder_path str
The folder path of the file in the storage container to be shared with the receiver.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the storage account to be shared with the receiver.
storage_accounts Sequence[GetDatasetBlobStorageStorageAccount]
A storage_account block as defined below.
containerName String
The name of the storage account container to be shared with the receiver.
dataShareId String
displayName String
The name of the Data Share Dataset.
filePath String
The path of the file in the storage container to be shared with the receiver.
folderPath String
The folder path of the file in the storage container to be shared with the receiver.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the storage account to be shared with the receiver.
storageAccounts List<Property Map>
A storage_account block as defined below.

Supporting Types

GetDatasetBlobStorageStorageAccount

Name This property is required. string
The name of this Data Share Blob Storage Dataset.
ResourceGroupName This property is required. string
The resource group name of the storage account to be shared with the receiver.
SubscriptionId This property is required. string
The subscription id of the storage account to be shared with the receiver.
Name This property is required. string
The name of this Data Share Blob Storage Dataset.
ResourceGroupName This property is required. string
The resource group name of the storage account to be shared with the receiver.
SubscriptionId This property is required. string
The subscription id of the storage account to be shared with the receiver.
name This property is required. String
The name of this Data Share Blob Storage Dataset.
resourceGroupName This property is required. String
The resource group name of the storage account to be shared with the receiver.
subscriptionId This property is required. String
The subscription id of the storage account to be shared with the receiver.
name This property is required. string
The name of this Data Share Blob Storage Dataset.
resourceGroupName This property is required. string
The resource group name of the storage account to be shared with the receiver.
subscriptionId This property is required. string
The subscription id of the storage account to be shared with the receiver.
name This property is required. str
The name of this Data Share Blob Storage Dataset.
resource_group_name This property is required. str
The resource group name of the storage account to be shared with the receiver.
subscription_id This property is required. str
The subscription id of the storage account to be shared with the receiver.
name This property is required. String
The name of this Data Share Blob Storage Dataset.
resourceGroupName This property is required. String
The resource group name of the storage account to be shared with the receiver.
subscriptionId This property is required. String
The subscription id of the storage account to be shared with the receiver.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi