Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Azure site command no longer exists in latest cli. #3245

Closed
niemyjski opened this issue Oct 11, 2016 · 12 comments
Closed

Azure site command no longer exists in latest cli. #3245

niemyjski opened this issue Oct 11, 2016 · 12 comments
Assignees
Labels

Comments

@niemyjski
Copy link

azure site deploymentscript --node

Azure site command no longer exists as shown here: https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script

I looked through the docs and there doesn't seem to be a way to generate it using the latest cli

@cephalin
Copy link

Change the CLI mode to ASM using azure config mode asm. I'm not sure when exactly the default CLI mode changed from ASM to ARM but it's at least a couple of months ago.

@eduardkoller
Copy link

@niemyjski - does this answer your question? Do you need more assistance?

@niemyjski
Copy link
Author

Yes, that fixes it, it wasn't clear at all via the help docs or the wiki for this. May I suggest updating the cli to detect commands that are in one mode and not the other and have error output written that lets you know it's available in a different mode.

@niemyjski
Copy link
Author

I was just going to edit the wiki to talk about this: https://github.com/projectkudu/kudu/wiki/Custom-Deployment-Script but it's locked :( (the community can't help you improve the docs).

@niemyjski
Copy link
Author

Could someone add a quick note about the mode

@jsgoupil
Copy link

There are so many tutorials and pages that talk about azure site but definitely not to set this config from arm to asm. This was complicated to get it working. I had to go on npmjs, find this github page, then search for deploymentscript then search in issues... Way too complicated.

@amarzavery
Copy link
Contributor

It is documented in the README.md of this repo over here. When you search the package "azure-cli" on npm, this info is also present over there.

@jsgoupil
Copy link

@amarzavery Thank you for pointing about mode. But when you follow one of the hundred tutorials online, there is no mode involved. I even searched something like "azure-cli webapp site" to see if it got renamed or something.

When searching for the azure site command, only Microsoft Azure members are aware of such a thing called mode.

@amarzavery
Copy link
Contributor

@jsgoupil - We completely understand your situation. We shall try to improve the help. Currently, when you execute the help (-h | --help | help) of any command it displays the current mode. May be adding more info about changing the mode (azure config mode asm | azure config mode arm) would help.

Btw, we also have a new python based CLI (which only supports ARM (Version V2 of the Azure API) based services over here. This CLI is in public preview right now.

@balajikris
Copy link
Member

We recently made an improvement here (see PR #3424) that will ship in the next release 0.10.9. The fix we made improves the error message when a command is not recognized by the CLI - we determine the current mode the CLI is in and hint to the user that this could be a valid command in the other mode (asm/arm).

Here is a screenshot:
image

Do note that this change simply makes the help text a bit more friendlier, it does not actually verify if the command is legal under any mode. We believe this hint is sufficient to resolve confusions that arise due to mode.

Please let us know what you think.

@balajikris balajikris self-assigned this Jan 11, 2017
@balajikris balajikris added Team and removed Websites labels Jan 11, 2017
@balajikris balajikris added this to the January 2017 - 0.10.9 milestone Jan 11, 2017
@balajikris
Copy link
Member

Fixed with #3424

@nabaz
Copy link

nabaz commented Jul 19, 2018

for whom still have this issue you can switch mode to asm using command azure config mode asm and then you can use azure site command

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants