0

I can create a container group with:

az container create --os-type windows --resource-group dev --name win-sandbox --image mcr.microsoft.com/windows/servercore:1809

Then running ⬇️ it just exits immediately, but I would like an interactive Powershell prompt.

az container exec -g dev --name win-sandbox --exec-command "powershell.exe" 

This is consistent with omitting -it from a docker run, but there is no such option for az container exec.

How do I get an interactive Powershell prompt?

1 Answer 1

1

How do I get an interactive Powershell prompt?

As per the Azure documentation , currently az container exec to open & execute in interactive mode not supported for windows machines.

az container exec Execute a command from within a running container of a container group. The most common use case is to open an interactive bash shell.

Sign up to request clarification or add additional context in comments.

1 Comment

How awkward. I've suggested feedback is added to az container.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.