2
votes

In order to connect and debug a node.js program on Azure websites, I need to use a publishSettings file. When I download one from the Azure management console, and try to import it I get the following:

c:\>azure account import "MyServices.azurewebsites.net.PublishSettings"
info:    Executing command account import
error:   Invalid publishSettings file. Use "azure account download" to download publishing credentials.
info:    Error information has been recorded to azure.err
error:   account import command failed

When I try to use the "azure account download" command, it opens a browser window, and then gives me a 500 error from the azure management system.

Same things happen when I try to do this from the Azure PowerShell commands.

Thanks

3
I encounter the same issue using the xplat-cli v0.8.2 on my mac.Diemo

3 Answers

1
votes

This is somewhat confusing, but the publishSettings file you're trying to use is a specific publish settings for your Azure Website while you actually need the publish settings for your Azure account.

You can get it from here: https://windows.azure.com/download/publishprofile.aspx

azure account download is also correct, not sure why you get a 500.

0
votes

Which version of xplat-cli and PowerShell are you using?

"MyServices.azurewebsites.net.PublishSettings" Seems like the website publish profile which is not the subscription publish settings file we need here. But the command should direct you to the right place to get them.

Can you try go to https://management.windowsazure.com/publishsettings/index directly and get the file? This is the URI we use in our command.

It would be great if you can let me know what is the URI xplat-cli or PowerShell directs you to.

Thanks.

0
votes

I encourage you to file a technical support ticket. In order to do so, you can: