Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure service alert #853

Closed
haroon-yunus opened this issue Feb 3, 2019 · 4 comments
Closed

Azure service alert #853

haroon-yunus opened this issue Feb 3, 2019 · 4 comments
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException

Comments

@haroon-yunus
Copy link

Environment data

Steps to reproduce or exception report

@haroon-yunus
Copy link
Author

haroon-yunus commented Feb 3, 2019

          "maxLength": 12,
             "metadata": {
                 "description": "Short name for the Action group."
             }
         },
         "emailAddress": {
             "type": "[email protected]",
             "metadata": {
                 "description": "Email address."
             }
         },
         "activityLogAlertName": {
             "type": "AE1611Alert",
             "defaultValue": "serviceHealthAlert",
             "minLength": 1,
             "metadata": {
                 "description": "Name for the Activity log alert."
             }
         }
     },
     "resources": [
         {
             "type": "Microsoft.Insights/actionGroups",
             "apiVersion": "2017-04-01",
             "name": "[parameters('actionGroupName')]",
             "location": "Global",
             "properties": {
                 "groupShortName": "[parameters('actionGroupShortName')]",
                 "enabled": true,
                 "smsReceivers": [],
                 "emailReceivers": [
                     {
                         "name": "emailReceiver",
                         "emailAddress": "[parameters('emailAddress')]"
                     }
                 ],
                 "webhookReceivers": []
             }
         },
         {
             "type": "Microsoft.Insights/activityLogAlerts",
             "apiVersion": "2017-04-01",
             "name": "[parameters('activityLogAlertName')]",
             "location": "Global",
             "dependsOn": [
                 "[parameters('actionGroupName')]"
             ],
             "properties": {
                 "enabled": true,
                 "scopes": [
                     "[subscription().id]"
                 ],
                 "condition": {
                     "allOf": [
                         {
                             "field": "Category",
                             "equals": "ServiceHealth"
                         }
                     ]
                 },
                 "actions": {
                     "actionGroups": [
                         {
                             "actionGroupId": "[resourceId('Microsoft.Insights/actionGroups', parameters('actionGroupName'))]"
                         }
                     ]
                 }
             }
         }

Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys:

 Space Space Space Space Space " a c t i o n G r o u p I d " : Space " [ r e s o u r c e I d ( ' M i c r o s o f t . I n s i g h t s / a c t i o n G r o u ps ' , Space p a r a m e t e r s ( ' a c t i o n G r o u p N a m e ' ) ) ] " Enter
 Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space } Enter
 Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space ] Enter
 Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space } Enter
 Space Space Space Space Space Space Space Space Space Space Space Space } Enter
 Space Space Space Space Space Space Space Space } Enter
 Space Space Space Space ] Enter
 }

Exception:

System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top
Actual value was -73.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

@haroon-yunus
Copy link
Author

I have tried to use the JSON command
https://github.com/Azure/azure-quickstart-templates/tree/master/monitor-servicehealth-alert

Its comming up with an error
Its works fine when i deploy to azure but need the command
Please advise.

@haroon-yunus
Copy link
Author

I am still waiting for a reply
Please advise

@daxian-dbw daxian-dbw added this to the 2.0.0-Consider milestone Jun 18, 2019
@joeyaiello joeyaiello added the OutOfRange Issues relating to System.ArgumentOutOfRangeException label Jun 18, 2019
@daxian-dbw
Copy link
Member

Fixed by #979 and #967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException
Projects
None yet
Development

No branches or pull requests

3 participants