Initialize-MgSolutionBackupRestoreProtectionPolicy
Activate a protectionPolicyBase. Currently, only one active backup policy per underlying service is supported (that is, one for OneDrive accounts, one for SharePoint sites, and one for Exchange Online users). You can add or remove artifacts (sites or user accounts) to or from each active policy.
Note
To view the beta release of this cmdlet, view Initialize-MgBetaSolutionBackupRestoreProtectionPolicy
Syntax
Initialize-MgSolutionBackupRestoreProtectionPolicy
-ProtectionPolicyBaseId <String>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Initialize-MgSolutionBackupRestoreProtectionPolicy
-InputObject <IBackupRestoreIdentity>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Activate a protectionPolicyBase. Currently, only one active backup policy per underlying service is supported (that is, one for OneDrive accounts, one for SharePoint sites, and one for Exchange Online users). You can add or remove artifacts (sites or user accounts) to or from each active policy.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IBackupRestoreIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProtectionPolicyBaseId
The unique identifier of protectionPolicyBase
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.PowerShell.Models.IBackupRestoreIdentity
System.Collections.IDictionary
Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProtectionPolicyBase
Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT <IBackupRestoreIdentity>
: Identity Parameter
[DriveProtectionRuleId <String>]
: The unique identifier of driveProtectionRule[DriveProtectionUnitId <String>]
: The unique identifier of driveProtectionUnit[DriveRestoreArtifactId <String>]
: The unique identifier of driveRestoreArtifact[ExchangeProtectionPolicyId <String>]
: The unique identifier of exchangeProtectionPolicy[ExchangeRestoreSessionId <String>]
: The unique identifier of exchangeRestoreSession[GranularMailboxRestoreArtifactId <String>]
: The unique identifier of granularMailboxRestoreArtifact[MailboxProtectionRuleId <String>]
: The unique identifier of mailboxProtectionRule[MailboxProtectionUnitId <String>]
: The unique identifier of mailboxProtectionUnit[MailboxRestoreArtifactId <String>]
: The unique identifier of mailboxRestoreArtifact[OneDriveForBusinessProtectionPolicyId <String>]
: The unique identifier of oneDriveForBusinessProtectionPolicy[OneDriveForBusinessRestoreSessionId <String>]
: The unique identifier of oneDriveForBusinessRestoreSession[ProtectionPolicyBaseId <String>]
: The unique identifier of protectionPolicyBase[ProtectionUnitBaseId <String>]
: The unique identifier of protectionUnitBase[RestorePointId <String>]
: The unique identifier of restorePoint[RestoreSessionBaseId <String>]
: The unique identifier of restoreSessionBase[ServiceAppId <String>]
: The unique identifier of serviceApp[SharePointProtectionPolicyId <String>]
: The unique identifier of sharePointProtectionPolicy[SharePointRestoreSessionId <String>]
: The unique identifier of sharePointRestoreSession[SiteProtectionRuleId <String>]
: The unique identifier of siteProtectionRule[SiteProtectionUnitId <String>]
: The unique identifier of siteProtectionUnit[SiteRestoreArtifactId <String>]
: The unique identifier of siteRestoreArtifact