Dela via


Remove-AzNetAppFilesVolumeGroup

Tar bort en Azure NetApp Files-volymgrupp (ANF). När du tar bort den angivna volymgruppen tas inte volymerna bort.

Syntax

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

Cmdleten Remove-AzNetAppFilesVolumeGroup tar bort en tom ANF VolumeGroup.

Exempel

Exempel 1

Remove-AzNetAppFilesVolumeGroup -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -Name "MyAnfVolumeGroup"

Det här kommandot tar bort ANF-volymen "MyAnfVolumeGroup" om den inte har några volymer under gruppen.

Parametrar

-AccountName

Namnet på ANF-kontot

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-AccountObject

Kontoobjektet som innehåller VolumeGroup att ta bort

Typ:PSNetAppFilesAccount
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-Confirm

Uppmanar dig att bekräfta innan du kör cmdleten.

Typ:SwitchParameter
Alias:cf
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:IAzureContextContainer
Alias:AzContext, AzureRmContext, AzureCredential
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-InputObject

VolumeGroup-objektet som ska tas bort

Typ:PSNetAppFilesBackupPolicy
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-Name

Namnet på ANF VolumeGroup

Typ:String
Alias:VolumeGroupName
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-PassThru

Returnera om den angivna säkerhetskopieringsprincipen har tagits bort

Typ:SwitchParameter
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ResourceGroupName

Resursgruppen för ANF VolumeGroup

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ResourceId

Resurs-ID för ANF VolumeGroup

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-WhatIf

Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.

Typ:SwitchParameter
Alias:wi
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

Indata

String

PSNetAppFilesAccount

PSNetAppFilesBackupPolicy

Utdata

Boolean