你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmContainerInstanceModelFactory.ContainerInstanceAzureFileVolume Method

Definition

public static Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceAzureFileVolume ContainerInstanceAzureFileVolume(string shareName = default, bool? isReadOnly = default, string storageAccountName = default, string storageAccountKey = default, string storageAccountKeyReference = default);
static member ContainerInstanceAzureFileVolume : string * Nullable<bool> * string * string * string -> Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceAzureFileVolume
Public Shared Function ContainerInstanceAzureFileVolume (Optional shareName As String = Nothing, Optional isReadOnly As Nullable(Of Boolean) = Nothing, Optional storageAccountName As String = Nothing, Optional storageAccountKey As String = Nothing, Optional storageAccountKeyReference As String = Nothing) As ContainerInstanceAzureFileVolume

Parameters

shareName
String

The name of the Azure File share to be mounted as a volume.

isReadOnly
Nullable<Boolean>

The flag indicating whether the Azure File shared mounted as a volume is read-only.

storageAccountName
String

The name of the storage account that contains the Azure File share.

storageAccountKey
String

The storage account access key used to access the Azure File share.

storageAccountKeyReference
String

The reference to the storage account access key used to access the Azure File share.

Returns

A new ContainerInstanceAzureFileVolume instance for mocking.

Applies to