Skip to content

Warn when az container exec with --os-type windows #20827

@davetapley

Description

@davetapley

Is your feature request related to a problem? Please describe.

If I try to run Powershell in a container like this ⬇️ it just exits immediately with no feedback.

$ az container create --os-type windows --resource-group dev --name win-sandbox --image mcr.microsoft.com/windows/servercore:1809
$ az container exec -g dev --name win-sandbox --exec-command "powershell.exe" 
$ # back at prompt immediately with no feedback

This is hidden in the docs ⬇️, but it took a StackOverflow question to lead me there.

This command is currently not supported for Windows machines.

Describe the solution you'd like

Ideally it would Just Work, but assuming that's not coming soon, then a warning / explanation of what happened would be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions