共用方式為


Set-AzNetAppFilesVolumePool

變更 Azure NetApp Files (ANF) 磁碟區的集區。

語法

Set-AzNetAppFilesVolumePool
   -ResourceGroupName <String>
   -AccountName <String>
   -PoolName <String>
   -Name <String>
   [-NewPoolResourceId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzNetAppFilesVolumePool
   -Name <String>
   -PoolObject <PSNetAppFilesPool>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzNetAppFilesVolumePool
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzNetAppFilesVolumePool
   -InputObject <PSNetAppFilesVolume>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Set-AzNetAppFilesVolumePool Cmdlet 會變更 ANF 磁碟區的集區。

範例

範例 1

Set-AzNetAppFilesVolumePool -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -Name "MyAnfVolume" -NewPoolResourceId 7d6e4069-6c78-6c61-7bf6-c60968e45fbf

這會將磁碟區 MyVolume 的集區變更為標識碼為 7d6e4069-6c78-6c61-7bf6-c60968e45fbf 的集區

參數

-AccountName

ANF 帳戶的名稱

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

要移動的磁碟區物件

類型:PSNetAppFilesVolume
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

ANF 磁碟區的名稱

類型:String
別名:VolumeName
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-NewPoolResourceId

要移至之容量集區的 ResourceId。 用來識別集區的 UUID v4

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-PoolName

ANF 集區的名稱

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-PoolObject

包含磁碟區的集區物件

類型:PSNetAppFilesPool
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

ANF 磁碟區的資源群組

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceId

ANF 磁碟區的資源標識碼

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

String

PSNetAppFilesPool

PSNetAppFilesVolume

輸出

Boolean