Unable to publish to Server 2016 with docker container

I have VS 2015 and installed "Visual Studio 2015 Tools for Docker - August Preview".

I've created a ASP.NET 5 Web Application.

I start the Publish process -> Docker Containers -> New VM

A popup is displayed telling me the VM is being created.

After a bit I get this popup with "Failed to create resource group dockertest".

Output log:

20-08-2015 13:03:05 - Creating resource group dockertest in northeurope...
Launching deployment PowerShell script with the following command:
'C:\Users\paw\sandbox\docker\Test1\PublishScripts\Scripts\Deploy-DockerAzureResourceGroup-3.ps1' -ResourceGroupName 'dockertest' -ResourceGroupLocation 'northeurope' -TemplateFile 'C:\Users\paw\sandbox\docker\Test1\PublishScripts\Templates\WebApplication2DockerVM-3.json' -TemplateParametersFile 'C:\Users\paw\sandbox\docker\Test1\PublishScripts\Templates\WebApplication2DockerVM.param.dev-3.json' -DockerCertsDirectory 'C:\Users\paw\.docker' -AdminPassword 'qwerty'
New-AzureProfile : The term 'New-AzureProfile' is not recognized as the name of
 a cmdlet, function, script file, or operable program. Check the spelling of th
e name, or if a path was included, verify that the path is correct and try agai
n.
At line:1 char:32
+ (Select-AzureProfile -Profile (New-AzureProfile -SubscriptionId 'e3b0 ...
+                                ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-AzureProfile:String) [], Co
   mmandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
Switch-AzureMode : The term 'Switch-AzureMode' is not recognized as the name of
 a cmdlet, function, script file, or operable program. Check the spelling of th
e name, or if a path was included, verify that the path is correct and try agai
n.
At C:\Users\paw\sandbox\docker\Test1\PublishScripts\Scripts\Deploy-DockerAzureR
esourceGroup-3.ps1:90 char:1
+ Switch-AzureMode AzureResourceManager
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Switch-AzureMode:String) [], Co
   mmandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
New-AzureResourceGroup : The term 'New-AzureResourceGroup' is not recognized as
 the name of a cmdlet, function, script file, or operable program. Check the sp
elling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\Users\paw\sandbox\docker\Test1\PublishScripts\Scripts\Deploy-DockerAzureR
esourceGroup-3.ps1:91 char:1
+ New-AzureResourceGroup -Name $ResourceGroupName `
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-AzureResourceGroup:String)  
   [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
Deploying template using PowerShell script failed.
20-08-2015 13:03:14 - Creating virtual machine dockertest failed. Failed to create resource group dockertest.

I have also tried creating the VM first and selecting that. But the "Validate Connection" button gives me a "Failed (click for details)" error, pointing me to https://msdn.microsoft.com/library/azure/mt125442.aspx.

I've shut down all my firewall + antivirus, didn't help.


August 21st, 2015 2:59am

Hi,

it looks like you're missing Azure Management Cmdlets. In order to install and configure Azure Powershell visit this link: https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

I also remember you that, in order to use the Tools for Docker, you have to install the Microsoft ASP.NET and Web Tools 2015 from this link: http://www.microsoft.com/en-us/download/details.aspx?id=48222

Let me know if you solve the problem.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 3:54am

Hi,

it looks like you're missing Azure Management Cmdlets. In order to install and configure Azure Powershell visit this link: https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

I also remember you that, in order to use the Tools for Docker, you have to install the Microsoft ASP.NET and Web Tools 2015 from this link: http://www.microsoft.com/en-us/download/details.aspx?id=48222

Let me know if you solve the problem.

  • Marked as answer by poteb 19 hours 31 minutes ago
August 26th, 2015 7:52am

Hi,

it looks like you're missing Azure Management Cmdlets. In order to install and configure Azure Powershell visit this link: https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

I also remember you that, in order to use the Tools for Docker, you have to install the Microsoft ASP.NET and Web Tools 2015 from this link: http://www.microsoft.com/en-us/download/details.aspx?id=48222

Let me know if you solve the problem.

  • Marked as answer by poteb Friday, August 28, 2015 11:49 AM
Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 7:52am

Hi,

it looks like you're missing Azure Management Cmdlets. In order to install and configure Azure Powershell visit this link: https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

I also remember you that, in order to use the Tools for Docker, you have to install the Microsoft ASP.NET and Web Tools 2015 from this link: http://www.microsoft.com/en-us/download/details.aspx?id=48222

Let me know if you solve the problem.

  • Marked as answer by poteb Friday, August 28, 2015 11:49 AM
August 26th, 2015 7:52am

Thanx Danigian, it fixed it to begin with.

First I installed Azure Powershell to my SP3 and reinstalled Tools for Docker, but for some odd reason it completely buggered my VS 2015 installation. I tried a repair but that didn't work, the web app template is messed up. Complete reinstall of VS 2015 but still not working on my SP3. On my work computer on the other hand I've got it to work. Well, almost.

Now I'm stuck at sending the data to the vm.

VERBOSE: Sending build context to Docker daemon   129 MB
VERBOSE: Sending build context to Docker daemon   129 MB
VERBOSE:
VERBOSE: Step 0 : FROM windowsservercore
VERBOSE:  ---> 0d53944cb84d
VERBOSE: Step 1 : ADD . /app

Been like that for 15 minutes. Maybe I should've chosen a Linux vm instead.


  • Edited by poteb 18 hours 51 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2015 7:55am

Thanx Danigian, it fixed it to begin with.

First I installed Azure Powershell to my SP3 and reinstalled Tools for Docker, but for some odd reason it completely buggered my VS 2015 installation. I tried a repair but that didn't work, the web app template is messed up. Complete reinstall of VS 2015 but still not working on my SP3. On my work computer on the other hand I've got it to work. Well, almost.

Now I'm stuck at sending the data to the vm.

VERBOSE: Sending build context to Docker daemon   129 MB
VERBOSE: Sending build context to Docker daemon   129 MB
VERBOSE:
VERBOSE: Step 0 : FROM windowsservercore
VERBOSE:  ---> 0d53944cb84d
VERBOSE: Step 1 : ADD . /app

Been like that for 15 minutes. Maybe I should've chosen a Linux vm instead.


  • Edited by poteb Friday, August 28, 2015 12:29 PM
August 28th, 2015 11:54am

Thanx Danigian, it fixed it to begin with.

First I installed Azure Powershell to my SP3 and reinstalled Tools for Docker, but for some odd reason it completely buggered my VS 2015 installation. I tried a repair but that didn't work, the web app template is messed up. Complete reinstall of VS 2015 but still not working on my SP3. On my work computer on the other hand I've got it to work. Well, almost.

Now I'm stuck at sending the data to the vm.

VERBOSE: Sending build context to Docker daemon   129 MB
VERBOSE: Sending build context to Docker daemon   129 MB
VERBOSE:
VERBOSE: Step 0 : FROM windowsservercore
VERBOSE:  ---> 0d53944cb84d
VERBOSE: Step 1 : ADD . /app

Been like that for 15 minutes. Maybe I should've chosen a Linux vm instead.


  • Edited by poteb Friday, August 28, 2015 12:29 PM
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2015 11:54am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics