Skip to content

Commit 9572e6f

Browse files
authored
Merge pull request Azure#62 from daozha/location
Azs.Backup.Admin cmdlets need to update default value of -Location and -ResourceGroup
2 parents 2443a8b + c5ed6dd commit 9572e6f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Azs.Backup.Admin/custom/Get-AzsBackup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ param(
2929
[Parameter(ParameterSetName='Get')]
3030
[Parameter(ParameterSetName='List')]
3131
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
32-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Name')]
32+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Location')]
3333
[System.String]
3434
# Name of the backup location.
3535
${Location},
@@ -43,7 +43,7 @@ param(
4343
[Parameter(ParameterSetName='Get')]
4444
[Parameter(ParameterSetName='List')]
4545
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
46-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Name)"')]
46+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Location)"')]
4747
[System.String]
4848
# Name of the resource group.
4949
${ResourceGroupName},

src/Azs.Backup.Admin/custom/Restore-AzsBackup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ param(
4343
[Parameter(ParameterSetName='Restore')]
4444
[Parameter(ParameterSetName='RestoreExpanded')]
4545
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
46-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Name')]
46+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Location')]
4747
[System.String]
4848
# Name of the backup location.
4949
${Location},
5050

5151
[Parameter(ParameterSetName='Restore')]
5252
[Parameter(ParameterSetName='RestoreExpanded')]
5353
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
54-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Name)"')]
54+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Location)"')]
5555
[System.String]
5656
# Name of the resource group.
5757
${ResourceGroupName},

src/Azs.Backup.Admin/custom/Set-AzsBackupConfiguration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ function Set-AzsBackupConfiguration {
3333
param(
3434
[Parameter()]
3535
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
36-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Name')]
36+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Location')]
3737
[System.String]
3838
# Name of the backup location.
3939
${Location},
4040

4141
[Parameter()]
4242
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
43-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Name)"')]
43+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Location)"')]
4444
[System.String]
4545
# Name of the resource group.
4646
${ResourceGroupName},

src/Azs.Backup.Admin/custom/Start-AzsBackup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ function Start-AzsBackup {
2828
param(
2929
[Parameter(ParameterSetName='Create')]
3030
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
31-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Name')]
31+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='(Get-AzLocation)[0].Location')]
3232
[System.String]
3333
# Name of the backup location.
3434
${Location},
3535

3636
[Parameter(ParameterSetName='Create')]
3737
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
38-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Name)"')]
38+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Runtime.DefaultInfo(Script='"system.$((Get-AzLocation)[0].Location)"')]
3939
[System.String]
4040
# Name of the resource group.
4141
${ResourceGroupName},

0 commit comments

Comments
 (0)