machine icon indicating copy to clipboard operation
machine copied to clipboard

Azure driver - resource manager version

Open lizrice opened this issue 10 years ago • 69 comments

I think I'm right in saying that the current support for docker-machine on Azure uses the Classic deployment model. It would be great to support the Resource Manager model too (since that's what MS is recommending for new deployments).

lizrice avatar Jan 05 '16 11:01 lizrice

:+1:

jensbruggeman avatar Jan 10 '16 09:01 jensbruggeman

+1

squillace avatar Jan 12 '16 00:01 squillace

+1

ililic avatar Jan 12 '16 00:01 ililic

There are plans to move to move the docker-machine Azure provider to use Azure Resource Manager - see #496

SorraTheOrc avatar Jan 12 '16 23:01 SorraTheOrc

@lizrice This is currently actively being worked on by myself. We're aware of the demand for this, therefore expect something soon. I will update this thread once we have something new.

ahmetb avatar Jan 20 '16 04:01 ahmetb

That's excellent news @ahmetalpbalkan :-)

lizrice avatar Jan 20 '16 10:01 lizrice

+1

rafabene avatar Jan 27 '16 16:01 rafabene

This will be very helpful! Thanks for actively working on it.

LoungeFlyZ avatar Feb 22 '16 18:02 LoungeFlyZ

Definitely need this. Also need to get away from using certificates to authenticate, unless using an Azure Active Directory Service Principal. Any progress @ahmetalpbalkan?

Cheers, Trevor Sullivan

pcgeek86 avatar Feb 25 '16 03:02 pcgeek86

@pcgeek86 we won't do the service principal crap. The authn process will look exactly like Azure cross-platform CLI authentication ("azure login" command). Every 2 weeks it'll prompt you to open a browser window and click a button to authorize the app.

ahmetb avatar Feb 25 '16 04:02 ahmetb

@ahmetalpbalkan Excellent, so you'll have --username parameter as well, like azure-clil?

pcgeek86 avatar Feb 25 '16 15:02 pcgeek86

@pcgeek86, no. Azure CLI doesn't require the username parameter. It's there for backwards compatibility.

ahmetb avatar Feb 25 '16 15:02 ahmetb

@ahmetalpbalkan I didn't say required. The --username parameter is what enables you to specify the Azure Active Directory (AAD) username. How is this "backwards compatibility?" What are you proposing for the final implementation?

The Azure Service Management (ASM) certificate-based authentication is the "backwards compatibility."

pcgeek86 avatar Feb 25 '16 18:02 pcgeek86

@pcgeek86 hmm, I never realized it is used for AAD usernames. When you go to https://aka.ms/devicelogin, does it let you specify your AAD username there? If the same task can be done without azure login (without --username) I intend to keep it that way.

ahmetb avatar Feb 25 '16 18:02 ahmetb

@ahmetalpbalkan You probably need to be in ARM mode (azure config arm) in order to use AAD authentication with ARM. I don't really use the ASM "mode" very often.

Yes, you can use AAD username with https://aka.ms/devicelogin. However, I prefer to avoid going out to a browser, and instead specify the username with --username. Works better in text-only scenarios. :)

If the same task can be done without azure login (without --username) I intend to keep it that way.

So, just to make sure I understand properly, are you intending to require the user to use a web browser to complete authentication, instead of typing their password at the command line?

pcgeek86 avatar Feb 25 '16 18:02 pcgeek86

With an account that requires 2fa, you're going to have to Auth any way. I'm not clear this is much of an optimization for the 2fa case.

squillace avatar Feb 25 '16 18:02 squillace

@squillace For multi-factor authentication users, sure. But why cater to only one group of users? My guess is that the majority will not be using MFA anyway.

At that point, it's just making it harder for everyone, and aren't you going to piss people off by forcing them to use a web browser to authenticate a command line tool?

In fact, why not take it a step further, and support MFA from the command line somehow?

pcgeek86 avatar Feb 25 '16 18:02 pcgeek86

You shouldn't collect usernames and passwords outside of the normal AAD login screen. It's insecure and bad practice. Plus there are technically too many scenarios to cover to make it actually work. 2FA isnt possible without opening a browser e.g. on prem ADFS, secure fob, smartcard auth etc...

LoungeFlyZ avatar Feb 25 '16 18:02 LoungeFlyZ

I don't want to cater to only one group, but rather the basic scenario must cover all.

Sent from Outlook Mobilehttps://aka.ms/blhgte

On Thu, Feb 25, 2016 at 10:11 AM -0800, "Trevor Sullivan" <[email protected]mailto:[email protected]> wrote:

@squillacehttps://github.com/squillace For multi-factor authentication users, sure. But why cater to only one group of users? My guess is that the majority will not be using MFA anyway.

Reply to this email directly or view it on GitHubhttps://github.com/docker/machine/issues/2742#issuecomment-188910314.

squillace avatar Feb 25 '16 18:02 squillace

@LoungeFlyZ So are you saying the azure xPlat CLI should remove its --username parameter? That would be a significant, breaking change, but probably possible.

pcgeek86 avatar Feb 25 '16 18:02 pcgeek86