Skip to content

Commit ad546bf

Browse files
authored
Merge pull request #322 from troettinger/vnext
Fix Set BackupShare
2 parents 7e177b5 + 9381ef1 commit ad546bf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Infrastructure/AzureStack.Infra.psm1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)