Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Error w/ Azure CLI on importing publish settings file

Error w/ Azure CLI on importing publish settings file


This is similar to the issue this SO user was having except I'm getting a different error for the same behavior.

  • I downloaded the publishsettings file from azure and
  • Issued this command in the azure cli: azure account import

and I got the following error:

{ name: 'AssertionError',
  message: undefined,
  actual: 'UNIVERSAL-primative-0',
  expected: 'UNIVERSAL-primative-6',
  operator: '==' }
AssertionError: "UNIVERSAL-primative-0" == "UNIVERSAL-primative-6"

...Shortened for brevity. Let me know if you'd like the full stack trace...

I wasn't particularly anxious to wrap this node project in a VisualStudio project, but I think in a pinch, I could and just format the publish settings from within VS. But if there is a way to do this correctly, I'd prefer that.

Problem courtesy of: Rikon


Where did you get the file? Were you using the following command to get it?

azure site download

It seems like you are using the publishsettings file of an Azure Web Site while xplat-cli expects the publishsettings file of the subscription.

There are kinds of 2 publishsettings files. And yeah, it's confusing.

Solution courtesy of: Guang Yang


View additional discussion.

This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Error w/ Azure CLI on importing publish settings file


Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription