RecoveryServicesBackupExtensions.GetBackupProtectionPolicies Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of BackupProtectionPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetBackupProtectionPolicies(String) instead.
public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyCollection GetBackupProtectionPolicies (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string vaultName);
static member GetBackupProtectionPolicies : Azure.ResourceManager.Resources.ResourceGroupResource * string -> Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionPolicyCollection
<Extension()>
Public Function GetBackupProtectionPolicies (resourceGroupResource As ResourceGroupResource, vaultName As String) As BackupProtectionPolicyCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
- vaultName
- String
The name of the recovery services vault.
Returns
An object representing collection of BackupProtectionPolicyResources and their operations over a BackupProtectionPolicyResource.
Exceptions
resourceGroupResource
or vaultName
is null.
vaultName
is an empty string, and was expected to be non-empty.
Applies to
Azure SDK for .NET