Azure App Service Console: Commands will not execute, crashes console

7k Views Asked by At

Any command I execute from within my app service's web-based Azure console fails:

enter image description here

D:\home\site\wwwroot>dir
function(e){if(void 0===e&&(e="legacy"),this._body instanceof b)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(e){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+e)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}con

It then completely hangs until I close out of the web-based console and refresh the portal.azure page. I've been searching for a solution but this issue doesn't seem to have been reported.

2

There are 2 best solutions below

1
On

The console blade utilizes a connection to Kudu. If you are in an ILB ASE you'll need direct network connectivity to Kudu for the page to load. If your client machine does not have access to Kudu you'll see the error above.

0
On

I solved it by creating a new API app (the resource I was trying to deploy to) and switching to it.

One comment suggested reconnecting the storage, but my resource didn't have one.

Call it blue-green deployment if you want to feel better about using this hack.

See this question on Webmasters StackExchange