Azure App Service should have remote debugging disabled
このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。
Description
Azure App Services has ‘remote debugging’ disabled to enhance security and protect applications.
Rationale
If remote debugging is enabled, this can allow an attacker access to your applications. To reduce your attack surface, disable remote debugging when not actively needed.
Azure CLI
Get a list of your App Services web apps by running the following in Azure Powershell:
az webapp list \
--query '[*].id'
Check the config of your web apps with the command:
az webapp config show \
--ids "<INSERT_ID_HERE>" \
--query 'remoteDebuggingEnabled'
Disable the web app’s remote debugging capability with the command:
az webapp config set \
--ids "<INSERT_ID_HERE>" \
--remote-debugging-enabled false
Repeat steps one through three for each server that is not configured correctly.
References
- Azure webapp config set