ProtectionPoliciesOperationsExtensions.CreateOrUpdate 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.
Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API.
public static Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource CreateOrUpdate (this Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionPoliciesOperations operations, string vaultName, string resourceGroupName, string policyName, Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource parameters);
static member CreateOrUpdate : Microsoft.Azure.Management.RecoveryServices.Backup.IProtectionPoliciesOperations * string * string * string * Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource -> Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource
<Extension()>
Public Function CreateOrUpdate (operations As IProtectionPoliciesOperations, vaultName As String, resourceGroupName As String, policyName As String, parameters As ProtectionPolicyResource) As ProtectionPolicyResource
Parameters
- operations
- IProtectionPoliciesOperations
The operations group for this extension method.
- vaultName
- String
The name of the recovery services vault.
- resourceGroupName
- String
The name of the resource group where the recovery services vault is present.
- policyName
- String
Backup policy to be created.
- parameters
- ProtectionPolicyResource
resource backup policy
Returns
Applies to
Azure SDK for .NET