Skip to main content

file_services

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

Overview

Namefile_services
TypeResource
Idazure.storage.file_services

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
properties``The properties of File services in storage account.
skuobjectThe resource model definition representing SKU
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
listSELECTaccountName, resourceGroupName, subscriptionIdList all file services in storage accounts
set_service_propertiesEXECFileServicesName, accountName, resourceGroupName, subscriptionIdSets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.

SELECT examples

List all file services in storage accounts

SELECT
id,
name,
properties,
sku,
type
FROM azure.storage.file_services
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';