From 06ea4331048b2bbcdf7a7676f322d0971af99149 Mon Sep 17 00:00:00 2001 From: Christopher Boumenot Date: Mon, 26 Jun 2017 13:44:34 -0700 Subject: [PATCH] azure: private SSH private key for debug --- builder/azure/arm/builder.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/azure/arm/builder.go b/builder/azure/arm/builder.go index a9a435a22..127a689e4 100644 --- a/builder/azure/arm/builder.go +++ b/builder/azure/arm/builder.go @@ -180,6 +180,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe if b.config.PackerDebug { ui.Message(fmt.Sprintf("temp admin user: '%s'", b.config.UserName)) ui.Message(fmt.Sprintf("temp admin password: '%s'", b.config.Password)) + + if b.config.sshPrivateKey != "" { + ui.Message(fmt.Sprintf("temp private ssh key: '%s'", b.config.sshPrivateKey)) + } } b.runner = packerCommon.NewRunner(steps, b.config.PackerConfig, ui)