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?