MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Unclear documentation #115114

Closed SupplyChef closed 1 year ago

SupplyChef commented 1 year ago

The documentation says to run the command: az container logs --resource-group myResourceGroup --name mycontainer

How do I find the container name? I tried the name that I gave it, does not work. The name in the app log, does not work. What is it?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

RamanathanChinnappan-MSFT commented 1 year ago

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

AjayBathini-MSFT commented 1 year ago

@SupplyChef To find the name of your container, you can use the Azure portal or the Azure CLI.

Using the Azure portal:

Go to the Azure portal and navigate to your container instance. Click on the "Containers" tab. You should see a list of containers running in your container instance. The name of each container is listed under the "Name" column. Using the Azure CLI:

Open a command prompt or terminal window.

Run the following command to list the containers in your container instance:

az container list --resource-group myResourceGroup1234 Replace "myResourceGroup" with the name of your resource group.

You should see a list of containers running in your container instance. The name of each container is listed under the "Name" column.

Once you have the name of your container, you can use it in the az container logs command to view the logs for that container.

SupplyChef commented 1 year ago

Hello,

Thank you for the reply. I am still confused unfortunately. I have created a web app with a registry container. I publish a docker container to the registry and then run the app from it. I don't see a container instance (as far as I can tell) in the Azure portal, and the azure cli command below returns an empty container list. How can I debug what is happening at start up time with the container? It's not running correctly and I am not sure how to proceed without logs.

Best,

Renaud


From: AjayBathini-MSFT @.> Sent: Monday, September 25, 2023 12:01 AM To: MicrosoftDocs/azure-docs @.> Cc: SupplyChef @.>; Mention @.> Subject: Re: [MicrosoftDocs/azure-docs] Unclear documentation (Issue #115114)

@SupplyChefhttps://github.com/SupplyChef To find the name of your container, you can use the Azure portal or the Azure CLI.

Using the Azure portal:

Go to the Azure portal and navigate to your container instance. Click on the "Containers" tab. You should see a list of containers running in your container instance. The name of each container is listed under the "Name" column. Using the Azure CLI:

Open a command prompt or terminal window.

Run the following command to list the containers in your container instance:

az container list --resource-group myResourceGroup1234 Replace "myResourceGroup" with the name of your resource group.

You should see a list of containers running in your container instance. The name of each container is listed under the "Name" column.

Once you have the name of your container, you can use it in the az container logs command to view the logs for that container.

— Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/115114#issuecomment-1732869176, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALNAI6VYCK4JHZLOUX6TJXDX4D6YVANCNFSM6AAAAAA5FHGEV4. You are receiving this because you were mentioned.Message ID: @.***>

AjayBathini-MSFT commented 1 year ago

@SupplyChef Thank you for your feedback! I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds. [Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows. [Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1) Thank you for your time and patience throughout this issue.