diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md index 4c4373939403..cb245fdeb297 100644 --- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md +++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Azs.InfrastructureInsights.Admin.md @@ -26,3 +26,6 @@ Returns a list of each resource's health under a service. ### [Get-AzsRPHealth](Get-AzsRPHealth.md) Returns a list of each service's health. +### [Repair-AzsAlert](Repair-AzsAlert.md) +Repairs the given alert. + diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Repair-AzsAlert.md b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Repair-AzsAlert.md new file mode 100644 index 000000000000..137c37ce5499 --- /dev/null +++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Help/Repair-AzsAlert.md @@ -0,0 +1,163 @@ +--- +external help file: Azs.InfrastructureInsights.Admin-help.xml +Module Name: Azs.InfrastructureInsights.Admin +online version: +schema: 2.0.0 +--- + +# Repair-AzsAlert + +## SYNOPSIS +Repairs the given alert. + +## SYNTAX + +### Repair (Default) +``` +Repair-AzsAlert -Name [-Location ] [-ResourceGroupName ] [-Force] [-WhatIf] [-Confirm] + [] +``` + +### InputObject +``` +Repair-AzsAlert -InputObject [-Force] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Repairs the given alert. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +``` +Repair-AzsAlert -Name f2147f3d-42ac-4316-8cbc-f0f9c18888b0 +``` + +Repairs an alert by Name. + +### -------------------------- EXAMPLE 2 -------------------------- +``` +Get-AzsAlert -Name f2147f3d-42ac-4316-8cbc-f0f9c18888b0 | Repair-AzsAlert +``` + +Repairs an alert through piping. + +## PARAMETERS + +### -Force +Don't ask for confirmation. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +An alert returned from Get-AzsAlert. + +```yaml +Type: Alert +Parameter Sets: InputObject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Location +Name of the location. + +```yaml +Type: String +Parameter Sets: Repair +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The alert identifier. + +```yaml +Type: String +Parameter Sets: Repair +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource group name which the resource resides. + +```yaml +Type: String +Parameter Sets: Repair +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES + +## RELATED LINKS + diff --git a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1 b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1 index 84dea89ff565..e6153c193344 100644 --- a/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1 +++ b/src/StackAdmin/Azs.InfrastructureInsights.Admin/Module/Azs.InfrastructureInsights.Admin/Azs.Infrastructureinsights.Admin.psd1 @@ -76,7 +76,8 @@ Licensed under the MIT License. See License.txt in the project root for license # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = 'Close-AzsAlert', 'Get-AzsRegionHealth', - 'Get-AzsAlert', 'Get-AzsRPHealth', 'Get-AzsRegistrationHealth' + 'Get-AzsAlert', 'Get-AzsRPHealth', 'Get-AzsRegistrationHealth', + "Repair-AzsAlert" # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @()