< Back
Get-AzureRmRecoveryServicesBackupProtectionPolicy
Post
NAME Get-AzureRmRecoveryServicesBackupProtectionPolicy
SYNOPSIS
Gets Backup protection policies for a vault.
SYNTAX
Get-AzureRmRecoveryServicesBackupProtectionPolicy [-WorkloadType] {AzureVM | AzureSQLDatabase} [-BackupManagementType] {AzureVM | MARS | SCDPM |
AzureBackupServer | AzureSQL} [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmRecoveryServicesBackupProtectionPolicy [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmRecoveryServicesBackupProtectionPolicy [-WorkloadType] {AzureVM | AzureSQLDatabase} [-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
DESCRIPTION
The Get-AzureRmRecoveryServicesBackupProtectionPolicy cmdlet gets Azure Backup protection policies for a vault.
Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdlet before you use the current cmdlet.
PARAMETERS
-BackupManagementType <BackupManagementType>
Specifies the Backup management type. Currently, only AzureVM is supported.
Required? true
Position? 3
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the policy.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WorkloadType <WorkloadType>
Specifies the workload type. Currently, only AzureVM is supported.
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase
System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase]
NOTES
Example 1: Get all policies in the vault
PS C:\\> Get-AzureRmRecoveryServicesBackupProtectionPolicy
Name WorkloadType BackupManagementType BackupTime DaysOfWeek
---- ------------ -------------------- ---------- ----------
DefaultPolicy AzureVM AzureVM 4/14/2016 5:00:00 PM
NewPolicy AzureVM AzureVM 4/23/2016 5:30:00 PM
NewPolicy2 AzureVM AzureVM 4/24/2016 1:30:00 AM
This command gets all protection policies created in the vault.
Example 2: Get a specific policy
PS C:\\> $Pol= Get-AzureRmRecoveryServicesBackupProtectionPolicy -Name "DefaultPolicy"
This command gets the protection policy named DefaultPolicy, and then stores it in the $Pol variable.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... tionpolicy
New-AzureRmRecoveryServicesBackupProtectionPolicy
Remove-AzureRmRecoveryServicesBackupProtectionPolicy
Set-AzureRmRecoveryServicesBackupProtectionPolicy
SYNOPSIS
Gets Backup protection policies for a vault.
SYNTAX
Get-AzureRmRecoveryServicesBackupProtectionPolicy [-WorkloadType] {AzureVM | AzureSQLDatabase} [-BackupManagementType] {AzureVM | MARS | SCDPM |
AzureBackupServer | AzureSQL} [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmRecoveryServicesBackupProtectionPolicy [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzureRmRecoveryServicesBackupProtectionPolicy [-WorkloadType] {AzureVM | AzureSQLDatabase} [-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
DESCRIPTION
The Get-AzureRmRecoveryServicesBackupProtectionPolicy cmdlet gets Azure Backup protection policies for a vault.
Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdlet before you use the current cmdlet.
PARAMETERS
-BackupManagementType <BackupManagementType>
Specifies the Backup management type. Currently, only AzureVM is supported.
Required? true
Position? 3
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the policy.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WorkloadType <WorkloadType>
Specifies the workload type. Currently, only AzureVM is supported.
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase
System.Collections.Generic.IList`1[Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models.PolicyBase]
NOTES
Example 1: Get all policies in the vault
PS C:\\> Get-AzureRmRecoveryServicesBackupProtectionPolicy
Name WorkloadType BackupManagementType BackupTime DaysOfWeek
---- ------------ -------------------- ---------- ----------
DefaultPolicy AzureVM AzureVM 4/14/2016 5:00:00 PM
NewPolicy AzureVM AzureVM 4/23/2016 5:30:00 PM
NewPolicy2 AzureVM AzureVM 4/24/2016 1:30:00 AM
This command gets all protection policies created in the vault.
Example 2: Get a specific policy
PS C:\\> $Pol= Get-AzureRmRecoveryServicesBackupProtectionPolicy -Name "DefaultPolicy"
This command gets the protection policy named DefaultPolicy, and then stores it in the $Pol variable.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... tionpolicy
New-AzureRmRecoveryServicesBackupProtectionPolicy
Remove-AzureRmRecoveryServicesBackupProtectionPolicy
Set-AzureRmRecoveryServicesBackupProtectionPolicy