Skip to main content

file_shares

Creates, updates, deletes, gets or lists a file_shares resource.

Overview

Namefile_shares
TypeResource
Idazure_stack.fabric_admin.file_shares

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectProperties of a file share resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, location, fileShareReturns the requested fabric file share.
listselectsubscriptionId, resourceGroupName, location$filter, $top, $skipReturns a list of all fabric file shares at a certain location.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
fileSharestringFabric file share name.
locationstringThe name of Azure region.
resourceGroupNamestringName of the resource group.
subscriptionIdstringThe ID of the target subscription.
$filterstringOData filter parameter.
$skipstringOData skip parameter.
$topstringOData top parameter.

SELECT examples

Returns the requested fabric file share.

SELECT
id,
name,
properties,
type
FROM azure_stack.fabric_admin.file_shares
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND location = '{{ location }}' -- required
AND fileShare = '{{ fileShare }}' -- required
;