azure-docs
azure-docs copied to clipboard
unable to run "az container exec"
[Enter feedback here] Hi, There is a section for reserved ports ("Does the ACI service reserve ports for service functionality?") with a list of ports. A customer had issues with "az container exec" commands and the port 19390 was related with the problem.
It would be good to have a clarification about this port being needed for "az container exec" commands to work.
Thanks!
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 894ff75f-fc5c-93a7-92d9-9d262d5bb904
- Version Independent ID: 5464901a-bb5b-a9dd-0a51-3620383f4c23
- Content: Frequently asked questions
- Content Source: articles/container-instances/container-instances-faq.yml
- GitHub Login: @tomvcassidy
- Microsoft Alias: tomcassidy
@1kmilo Thanks for your feedback! We will investigate and update as appropriate.
Hi @1kmilo Kindly find the below link for your reference. It might be helpful.
https://learn.microsoft.com/en-us/cli/azure/container?view=azure-cli-latest#az-container-exec:~:text=Global%20Parameters-,az%20container%20exec,%2D%2Dname%20mynginx%20%2D%2Dcontainer%2Dname%20nginx%20%2D%2Dexec%2Dcommand%20%22,-/bin/bash%22
Hi @AjayBathini-MSFT, The link does not really help, What I see helpful is some note that specifies that the port 19390 is required for the command to work.
Thanks
@1kmilo
AZ CLI is simply a wrapper over Azure REST API and port 443 (HTTPS) is used.
You do not need to open any ports in Azure to execute AZ CLI commands. If you have internal firewall(your local PC) try to allow outbound HTPPS traffic. https://docs.microsoft.com/en-us/rest/api/azure/
if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.