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

The following fields are returned by SELECT queries:

OK -- List file services operation completed successfully.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesThe properties of File services in storage account. (x-ms-client-name: FileServiceProperties)
skuobjectThe resource model definition representing SKU
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
listselectresourceGroupName, accountName, subscriptionIdList all file services in storage accounts
set_service_propertiesexecresourceGroupName, accountName, subscriptionId, FileServicesNameSets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.

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
FileServicesNamestringThe name of the file Service within the specified storage account. File Service Name must be "default"
accountNamestringThe 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.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

List all file services in storage accounts

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

Lifecycle Methods

Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules.

EXEC azure.storage.file_services.set_service_properties 
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@FileServicesName='{{ FileServicesName }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;