File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -877,17 +877,21 @@ function Set-AzSBackupShare {
877877 [string ]$UserName ,
878878
879879 [Parameter (Mandatory = $true )]
880- [string ]$Password
880+ [string ]$Password ,
881+
882+ [Parameter (Mandatory = $false )]
883+ [string ]$EncryptionKey
881884 )
882885
883886 $Location = Get-AzsHomeLocation - Location $Location
884887
885888 $params = @ {
886- ResourceName = " {0}/{1} " -f $Location
889+ ResourceName = $Location
887890 ResourceType = " Microsoft.Backup.Admin/backupLocations"
888891 ResourceGroupName = " system.{0}" -f $Location
889892 ApiVersion = " 2016-05-01"
890- Properties = @ {externalStoreDefault = @ {path = $Path ;userName = $UserName ;password = $Password }}
893+ Properties = @ {externalStoreDefault = @ {path = $Path ;userName = $UserName ;password = $Password ;EncryptionKeyBase64 = $EncryptionKey }}
894+ location = $location
891895 }
892896
893897 New-AzureRmResource @params - Force
You can’t perform that action at this time.
0 commit comments