你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzContainerInstanceVolumeMountObject
为 VolumeMount 创建内存中对象
语法
New-AzContainerInstanceVolumeMountObject
-MountPath <String>
-Name <String>
[-ReadOnly <Boolean>]
[<CommonParameters>]
说明
为 VolumeMount 创建内存中对象
示例
示例 1:指定可用于容器实例的卷装载
New-AzContainerInstanceVolumeMountObject -Name "mnt" -MountPath "/mnt/azfile" -ReadOnly $true
MountPath Name ReadOnly
--------- ---- --------
/mnt/azfile mnt True
此命令指定可用于容器实例的卷装载
参数
-MountPath
应装载卷的容器中的路径。 不得包含冒号 (:)。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
卷装载的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ReadOnly
指示卷装载是否为只读的标志。
类型: | Boolean |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |