Remove-AzNetAppFilesVolumeGroup
刪除 Azure NetApp Files (ANF) VolumeGroup。 這隻會刪除指定的磁碟區群組不會刪除磁碟區。
語法
Remove-AzNetAppFilesVolumeGroup
-ResourceGroupName <String>
-AccountName <String>
[-Name <String>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzNetAppFilesVolumeGroup
[-Name <String>]
-ResourceId <String>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzNetAppFilesVolumeGroup
[-Name <String>]
-AccountObject <PSNetAppFilesAccount>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzNetAppFilesVolumeGroup
[-Name <String>]
-InputObject <PSNetAppFilesBackupPolicy>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-AzNetAppFilesVolumeGroup Cmdlet 會刪除空的 ANF VolumeGroup。
範例
範例 1
Remove-AzNetAppFilesVolumeGroup -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -Name "MyAnfVolumeGroup"
如果 ANF 磁碟區 「MyAnfVolumeGroup」 下沒有磁碟區,此命令就會刪除該磁碟區。
參數
-AccountName
ANF 帳戶的名稱
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-AccountObject
包含要移除之 VolumeGroup 的 account 物件
類型: | PSNetAppFilesAccount |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
要移除的 VolumeGroup 物件
類型: | PSNetAppFilesBackupPolicy |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
ANF VolumeGroup 的名稱
類型: | String |
別名: | VolumeGroupName |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-PassThru
傳回是否已成功移除指定的備份原則
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
ANF VolumeGroup 的資源群組
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceId
ANF VolumeGroup 的資源標識符
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |