Azure Question

Hi All,

I am getting the following error on Azure powershell. Please can someone tell me what’s wrong.

PS Azure:> {

"type": "extensions",
"name": "Microsoft.Azure.NetworkWatcher",
"apiVersion": "[variables('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
    "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
    "publisher": "Microsoft.Azure.NetworkWatcher",
    "type": "NetworkWatcherAgentWindows",
    "typeHandlerVersion": "1.4",
    "autoUpgradeMinorVersion": true
}

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:

 p r o p e r t i e s " : Space { Enter
 Space Space Space Space Space Space Space Space " p u b l i s h e r " : Space " M i c r o s o f t . A z u r e . N e t w o r k W a t c h e r " , Enter
 Space Space Space Space Space Space Space Space " t y p e " : Space " N e t w o r k W a t c h e r A g e n t W i n d o w s " , Enter
 Space Space Space Space Space Space Space Space " t y p e H a n d l e r V e r s i o n " : Space " 1 . 4 " , Enter
 Space Space Space Space Space Space Space Space " a u t o U p g r a d e M i n o r V e r s i o n " : Space t r u e 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 -1.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.PlaceCursor(Int32 x, Int32 y)
   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)

Azure:/
PS Azure:> {

"type": "extensions",
"name": "Microsoft.Azure.NetworkWatcher",
"apiVersion": "[variables('apiVersion')]",
"location": "[resourceGroup().location]",
"dependsOn": [
    "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
    "publisher": "Microsoft.Azure.NetworkWatcher",
    "type": "NetworkWatcherAgentWindows",
    "typeHandlerVersion": "1.4",
    "autoUpgradeMinorVersion": true
}

}

Thanks
Steve

1 Like

Hi @steveholland68hotmail,

I think this article from Microsoft contains your solution:

Best regards!