azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

unable to run "az container exec"

Open 1kmilo opened this issue 2 years ago • 2 comments

[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.

1kmilo avatar Dec 01 '22 18:12 1kmilo

@1kmilo Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Dec 02 '22 03:12 Naveenommi-MSFT

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

AjayBathini-MSFT avatar Dec 02 '22 05:12 AjayBathini-MSFT

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 avatar Dec 05 '22 12:12 1kmilo

@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.

AjayBathini-MSFT avatar Dec 06 '22 10:12 AjayBathini-MSFT