共用方式為


Get-AzNetAppFilesReplicationStatus

取得複寫的狀態

語法

Get-AzNetAppFilesReplicationStatus
   -ResourceGroupName <String>
   -AccountName <String>
   -PoolName <String>
   -Name <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetAppFilesReplicationStatus
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetAppFilesReplicationStatus
   -InputObject <PSNetAppFilesVolume>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

取得複寫的狀態

範例

範例 1

Get-AzNetAppFilesReplicationStatus -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -VolumeName "MyVol"

Healthy            : true
RelationshipStatus : Idle
MirrorState        : Mirrored
TotalProgress      : 1024
ErrorMessage       :

此命令會取得 MyVol 上的復寫狀態

參數

-AccountName

復寫目的地磁碟區 ANF 帳戶的名稱

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

-DefaultProfile

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

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

-InputObject

要取得復寫狀態的 ANF 複寫目的地磁碟區物件

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

-Name

ANF 複寫目的地磁碟區的名稱

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

-PoolName

復寫目的地磁碟區 ANF 集區的名稱

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

-ResourceGroupName

ANF 複寫目的地磁碟區的資源群組

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

-ResourceId

ANF 複寫目的地磁碟區的資源標識碼

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

輸入

String

PSNetAppFilesVolume

輸出

PSNetAppFilesReplicationStatus