You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Restore-AzsBackup.ps1
Copy file name to clipboardExpand all lines: src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Set-AzsBackupShare.ps1
+68-84Lines changed: 68 additions & 84 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Licensed under the MIT License. See License.txt in the project root for license
20
20
The resource id.
21
21
22
22
.PARAMETERInputObject
23
-
The input object of type Microsoft.AzureStack.Management.Backup.Admin.Models.BackupLocation.
23
+
Backup location configuration returned by Get-AzsBackupLocation.
24
24
25
25
.PARAMETERBackupShare
26
26
Location where backups will be stored.
@@ -37,9 +37,6 @@ Licensed under the MIT License. See License.txt in the project root for license
37
37
.PARAMETERAsJob
38
38
Run asynchronous as a job and return the job object.
@@ -140,94 +133,85 @@ function Set-AzsBackupShare {
140
133
141
134
# Should process
142
135
if ($PSCmdlet.ShouldProcess("$Location","Set backup configuration for location.")) {
143
-
if ($Force.IsPresent-or$PSCmdlet.ShouldContinue("Set backup configuration backup for location?","Performing operation set backup configuration at $Location.")) {
144
136
145
-
if ([System.String]::IsNullOrEmpty($Location)) {
146
-
$Location= (Get-AzureRMLocation).Location
147
-
}
148
-
if ([System.String]::IsNullOrEmpty($ResourceGroupName)) {
149
-
$ResourceGroupName="System.$($Location)"
150
-
}
137
+
if ([System.String]::IsNullOrEmpty($Location)) {
138
+
$Location= (Get-AzureRMLocation).Location
139
+
}
140
+
if ([System.String]::IsNullOrEmpty($ResourceGroupName)) {
Copy file name to clipboardExpand all lines: src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Start-AzsBackup.ps1
+2-14Lines changed: 2 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ function Start-AzsBackup {
85
85
86
86
# Should process
87
87
if ($PSCmdlet.ShouldProcess("$Location","Start backup at $Location")) {
88
-
if ($Force.IsPresent-or$PSCmdlet.ShouldContinue("Start backup at $Location?","Performing operation backup at $Location.")) {
88
+
if ($Force.IsPresent-or$PSCmdlet.ShouldContinue("Start backup at $($Location)?","Performing operation backup at $Location.")) {
0 commit comments