@@ -207,7 +207,7 @@ function Get-AzsUpdateRun {
207207 $resourceType = " Microsoft.Update.Admin/updatelocations/updates/updateRuns"
208208
209209 $updates = Get-AzsInfrastructureResource - Name $name - Location $Location - ResourceType $resourceType
210- $updates | Select-Object UpdateLocation , UpdateVersion , State , TimeStarted , Duration
210+ $updates
211211}
212212
213213Export-ModuleMember - Function Get-AzsUpdateRun
@@ -554,7 +554,7 @@ Export-ModuleMember -Function Enable-AzsScaleUnitNode
554554 . SYNOPSIS
555555 Get Location Capacity
556556#>
557- function Get-AzsHomeLocationCapacity {
557+ function Get-AzsLocationCapacity {
558558 Param (
559559 [Parameter (Mandatory = $false )]
560560 [string ] $Location
@@ -568,7 +568,46 @@ function Get-AzsHomeLocationCapacity {
568568 $Capacity.Properties
569569}
570570
571- Export-ModuleMember - Function Get-AzsHomeLocationCapacity
571+ Export-ModuleMember - Function Get-AzsLocationCapacity
572+
573+
574+ <#
575+ . SYNOPSIS
576+ List Backup location
577+ #>
578+
579+ function Get-AzsBackupLocation {
580+ Param (
581+ [Parameter (Mandatory = $false )]
582+ [string ] $Location
583+ )
584+
585+ $resourceType = " Microsoft.Backup.Admin/backupLocations"
586+
587+ $backuplocation = Get-AzsInfrastructureResource - Location $Location - resourceType $resourceType
588+ $backuplocation.Properties
589+ }
590+
591+ Export-ModuleMember - Function Get-AzsBackupLocation
592+
593+ <#
594+ . SYNOPSIS
595+ List Backups
596+ #>
597+
598+ function Get-AzsBackup {
599+ Param (
600+ [Parameter (Mandatory = $false )]
601+ [string ] $Location
602+ )
603+
604+ $resourceType = " Microsoft.Backup.Admin/backupLocations/$Location /backups"
605+
606+ $backuplocation = Get-AzsInfrastructureResource - Location $Location - resourceType $resourceType
607+ $backuplocation.Properties
608+ }
609+
610+ Export-ModuleMember - Function Get-AzsBackup
572611
573612function Get-AzsHomeLocation {
574613 param (
0 commit comments