Share via


Set-AzsBackupConfiguration

Set the backup configuration at the specified location.

Syntax

Update (Default)

Set-AzsBackupConfiguration
    [-ResourceGroupName <String>]
    [-Location <String>]
    [-Path <String>]
    [-Username <String>]
    [-Password <SecureString>]
    [-EncryptionKey <SecureString>]
    [-IsBackupSchedulerEnabled <Boolean>]
    [-BackupFrequencyInHours <Int32>]
    [-BackupRetentionPeriodInDays <Int32>]
    [-AsJob]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

InputObject

Set-AzsBackupConfiguration
    -InputObject <BackupLocation>
    [-Path <String>]
    [-Username <String>]
    [-Password <SecureString>]
    [-EncryptionKey <SecureString>]
    [-IsBackupSchedulerEnabled <Boolean>]
    [-BackupFrequencyInHours <Int32>]
    [-BackupRetentionPeriodInDays <Int32>]
    [-AsJob]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ResourceId

Set-AzsBackupConfiguration
    -ResourceId <String>
    [-Path <String>]
    [-Username <String>]
    [-Password <SecureString>]
    [-EncryptionKey <SecureString>]
    [-IsBackupSchedulerEnabled <Boolean>]
    [-BackupFrequencyInHours <Int32>]
    [-BackupRetentionPeriodInDays <Int32>]
    [-AsJob]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Set the backup configuration at the specified location.

Examples

-------------------------- EXAMPLE 1 --------------------------

Set-AzsBackupConfiguration -Path "\\***.***.***.***\Share" -Username "asdomain1\azurestackadmin" -Password $password  -EncryptionKey $encryptionKey

Set Azure Stack backup configuration.

Parameters

-AsJob

Run asynchronous as a job and return the job object.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BackupFrequencyInHours

The interval, in hours, for the frequency that the scheduler takes a backup.

Parameter properties

Type:Int32
Default value:0
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BackupRetentionPeriodInDays

The retention period, in days, for backups in the storage location.

Parameter properties

Type:Int32
Default value:0
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EncryptionKey

Encryption key used to encrypt backups.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Backup location configuration returned by Get-AzsBackupConfiguration.

Parameter properties

Type:BackupLocation
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

InputObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-IsBackupSchedulerEnabled

Whether the backup scheduler should be enabled.

Parameter properties

Type:Boolean
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Location

Location to configure.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Update
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Password

Password required to access backup location.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Path

Location where backups will be stored.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:BackupShare

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

Name of the resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Update
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceId

The resource id.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:id

Parameter sets

ResourceId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Username

Username required to access backup location.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Microsoft.AzureStack.Management.Backup.Admin.Models.BackupLocation