@@ -686,14 +686,92 @@ function Get-AzsBackup {
686686 [string ] $Location
687687 )
688688
689- $resourceType = " Microsoft.Backup.Admin/backupLocations/$Location / backups"
689+ $resourceType = " Microsoft.Backup.Admin/backupLocations/backups"
690690
691691 $backuplocation = Get-AzsInfrastructureResource - Location $Location - resourceType $resourceType
692692 $backuplocation.Properties
693693}
694694
695695Export-ModuleMember - Function Get-AzsBackup
696696
697+ <#
698+ . SYNOPSIS
699+ Start Infrastructure Backup
700+ #>
701+ function Start-AzsBackup {
702+ [CmdletBinding (SupportsShouldProcess = $true )]
703+ Param (
704+ [Parameter (Mandatory = $false )]
705+ [string ] $Location
706+ )
707+
708+ $resourceType = " Microsoft.Backup.Admin/backupLocations"
709+ Invoke-AzsInfrastructureAction - Name $Location - Action " createbackup" - Location $Location - ResourceType $resourceType
710+ }
711+
712+ Export-ModuleMember - Function Start-AzsBackup
713+
714+ <#
715+ . SYNOPSIS
716+ Restore Infrastructure Backup
717+ #>
718+ function Restore-AzsBackup {
719+ [CmdletBinding (SupportsShouldProcess = $true )]
720+ Param (
721+ [Parameter (Mandatory = $true )]
722+ [string ] $Location ,
723+
724+ [Parameter (Mandatory = $true )]
725+ [string ] $Name
726+
727+ )
728+
729+ $resourceType = " Microsoft.Backup.Admin/backupLocations/backups"
730+ Invoke-AzsInfrastructureAction - Name $Name - Action " restore" - Location $Location - ResourceType $resourceType
731+ }
732+
733+ Export-ModuleMember - Function Restore-AzsBackup
734+
735+ <#
736+ . SYNOPSIS
737+ List Resource Provider Healths
738+ #>
739+
740+ function Get-AzsResourceProviderHealths {
741+ Param (
742+ [Parameter (Mandatory = $true )]
743+ [string ] $Location
744+
745+ )
746+
747+ $resourceType = " Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths"
748+
749+ $rolehealth = Get-AzsInfrastructureResource - Location $Location - resourceType $resourceType
750+ $rolehealth.Properties
751+ }
752+
753+ Export-ModuleMember - Function Get-AzsResourceProviderHealths
754+
755+ <#
756+ . SYNOPSIS
757+ List Infrastructure Role Healths
758+ #>
759+
760+ function Get-AzsInfrastructureRoleHealths {
761+ Param (
762+ [Parameter (Mandatory = $true )]
763+ [string ] $Location
764+
765+ )
766+
767+ $resourceType = " Microsoft.InfrastructureInsights.Admin/regionHealths/serviceHealths/472aaaa6-3f63-43fa-a489-4fd9094e235f/resourceHealths"
768+
769+ $rolehealth = Get-AzsInfrastructureResource - Location $Location - resourceType $resourceType
770+ $rolehealth.Properties
771+ }
772+
773+ Export-ModuleMember - Function Get-AzsInfrastructureRoleHealths
774+
697775function Get-AzsHomeLocation {
698776 param (
699777 [Parameter (Mandatory = $false )]
0 commit comments