This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi
published on Saturday, Jul 18, 2026 by Pulumi
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi
published on Saturday, Jul 18, 2026 by Pulumi
Get the specified Storage DataShare.
Uses Azure REST API version 2025-08-01.
Other available API versions: 2026-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storage [ApiVersion]. See the version guide for details.
Using getDataShare
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 getDataShare(args: GetDataShareArgs, opts?: InvokeOptions): Promise<GetDataShareResult>
function getDataShareOutput(args: GetDataShareOutputArgs, opts?: InvokeOptions): Output<GetDataShareResult>def get_data_share(account_name: Optional[str] = None,
data_share_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataShareResult
def get_data_share_output(account_name: pulumi.Input[Optional[str]] = None,
data_share_name: pulumi.Input[Optional[str]] = None,
resource_group_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataShareResult]func LookupDataShare(ctx *Context, args *LookupDataShareArgs, opts ...InvokeOption) (*LookupDataShareResult, error)
func LookupDataShareOutput(ctx *Context, args *LookupDataShareOutputArgs, opts ...InvokeOption) LookupDataShareResultOutput> Note: This function is named LookupDataShare in the Go SDK.
public static class GetDataShare
{
public static Task<GetDataShareResult> InvokeAsync(GetDataShareArgs args, InvokeOptions? opts = null)
public static Output<GetDataShareResult> Invoke(GetDataShareInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataShareResult> getDataShare(GetDataShareArgs args, InvokeOptions options)
public static Output<GetDataShareResult> getDataShare(GetDataShareArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:storage:getDataShare
arguments:
# arguments dictionarydata "azure-native_storage_get_data_share" "name" {
# arguments
}The following arguments are supported:
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- string
- The name of the Storage DataShare.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- string
- The name of the Storage DataShare.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- account_
name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- string
- The name of the Storage DataShare.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- account
Name String - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- String
- The name of the Storage DataShare.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- account
Name string - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- string
- The name of the Storage DataShare.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- account_
name str - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- str
- The name of the Storage DataShare.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- account
Name String - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- String
- The name of the Storage DataShare.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
getDataShare Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Properties
Pulumi.
Azure Native. Storage. Outputs. Storage Data Share Properties Response - The properties of the Storage DataShare.
- System
Data Pulumi.Azure Native. Storage. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Dictionary<string, string>
- Resource tags.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Properties
Storage
Data Share Properties Response - The properties of the Storage DataShare.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- map[string]string
- Resource tags.
- azure_
api_ stringversion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- properties object
- The properties of the Storage DataShare.
- system_
data object - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- map(string)
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- properties
Storage
Data Share Properties Response - The properties of the Storage DataShare.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- properties
Storage
Data Share Properties Response - The properties of the Storage DataShare.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- properties
Storage
Data Share Properties Response - The properties of the Storage DataShare.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Mapping[str, str]
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- properties Property Map
- The properties of the Storage DataShare.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Map<String>
- Resource tags.
Supporting Types
StorageDataShareAccessPolicyResponse
- Permission string
- Allowed permissions. Currently, only supported value is Read.
- Principal
Id string - The AAD principal ID of the Managed Identity.
- Tenant
Id string - The AAD tenant ID of the Managed Identity.
- Permission string
- Allowed permissions. Currently, only supported value is Read.
- Principal
Id string - The AAD principal ID of the Managed Identity.
- Tenant
Id string - The AAD tenant ID of the Managed Identity.
- permission string
- Allowed permissions. Currently, only supported value is Read.
- principal_
id string - The AAD principal ID of the Managed Identity.
- tenant_
id string - The AAD tenant ID of the Managed Identity.
- permission String
- Allowed permissions. Currently, only supported value is Read.
- principal
Id String - The AAD principal ID of the Managed Identity.
- tenant
Id String - The AAD tenant ID of the Managed Identity.
- permission string
- Allowed permissions. Currently, only supported value is Read.
- principal
Id string - The AAD principal ID of the Managed Identity.
- tenant
Id string - The AAD tenant ID of the Managed Identity.
- permission str
- Allowed permissions. Currently, only supported value is Read.
- principal_
id str - The AAD principal ID of the Managed Identity.
- tenant_
id str - The AAD tenant ID of the Managed Identity.
- permission String
- Allowed permissions. Currently, only supported value is Read.
- principal
Id String - The AAD principal ID of the Managed Identity.
- tenant
Id String - The AAD tenant ID of the Managed Identity.
StorageDataShareAssetResponse
- Asset
Path string - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- Display
Name string - Consumer visible name of the original path.
- Asset
Path string - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- Display
Name string - Consumer visible name of the original path.
- asset_
path string - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- display_
name string - Consumer visible name of the original path.
- asset
Path String - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- display
Name String - Consumer visible name of the original path.
- asset
Path string - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- display
Name string - Consumer visible name of the original path.
- asset_
path str - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- display_
name str - Consumer visible name of the original path.
- asset
Path String - Source Path to be shared. It can be a folder or a blob. The asset path should contain container name followed by path within the container, e.g. /container1/logs/external.
- display
Name String - Consumer visible name of the original path.
StorageDataSharePropertiesResponse
- Access
Policies List<Pulumi.Azure Native. Storage. Inputs. Storage Data Share Access Policy Response> - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- Assets
List<Pulumi.
Azure Native. Storage. Inputs. Storage Data Share Asset Response> - List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- string
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- Provisioning
State string - Represents the provisioning state of the storage datashare.
- Description string
- Arbitrary description of this Data Share. Max 250 characters.
- Access
Policies []StorageData Share Access Policy Response - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- Assets
[]Storage
Data Share Asset Response - List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- string
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- Provisioning
State string - Represents the provisioning state of the storage datashare.
- Description string
- Arbitrary description of this Data Share. Max 250 characters.
- access_
policies list(object) - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- assets list(object)
- List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- string
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- provisioning_
state string - Represents the provisioning state of the storage datashare.
- description string
- Arbitrary description of this Data Share. Max 250 characters.
- access
Policies List<StorageData Share Access Policy Response> - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- assets
List<Storage
Data Share Asset Response> - List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- String
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- String
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- provisioning
State String - Represents the provisioning state of the storage datashare.
- description String
- Arbitrary description of this Data Share. Max 250 characters.
- access
Policies StorageData Share Access Policy Response[] - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- assets
Storage
Data Share Asset Response[] - List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- string
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- string
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- provisioning
State string - Represents the provisioning state of the storage datashare.
- description string
- Arbitrary description of this Data Share. Max 250 characters.
- access_
policies Sequence[StorageData Share Access Policy Response] - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- assets
Sequence[Storage
Data Share Asset Response] - List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- str
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- str
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- provisioning_
state str - Represents the provisioning state of the storage datashare.
- description str
- Arbitrary description of this Data Share. Max 250 characters.
- access
Policies List<Property Map> - List of access policies that specify the permission allowed to a managed identity. For Create - This property is required and cannot be null. If no access policies are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing access policies are left unchanged. If provided with a non-null value, the existing access policies are replaced with the specified list.
- assets List<Property Map>
- List of assets that specify the properties of the shared resources. For Create - This property is required and cannot be null. If no assets are provided at creation time, specify an empty array. For Update - This property is optional. If set to null or not passed, the existing assets are left unchanged. If provided with a non-null value, the existing assets are replaced with the specified list.
- String
- System-generated GUID identifier for the Storage DataShare. Not a valid input parameter when creating.
- String
- The DataShare URI to be shared with the consumer. URI Format - 'azds://::'.
- provisioning
State String - Represents the provisioning state of the storage datashare.
- description String
- Arbitrary description of this Data Share. Max 250 characters.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at string - The timestamp of resource creation (UTC).
- created_
by string - The identity that created the resource.
- created_
by_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi
published on Saturday, Jul 18, 2026 by Pulumi