New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
7 participants
@niemyjski

niemyjski commented Oct 11, 2016

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

This comment has been minimized.

Show comment
Hide comment
@cephalin

cephalin Oct 12, 2016

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.

cephalin commented Oct 12, 2016

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

This comment has been minimized.

Show comment
Hide comment
@eduardkoller

eduardkoller Oct 12, 2016

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

eduardkoller commented Oct 12, 2016

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

@niemyjski

This comment has been minimized.

Show comment
Hide comment
@niemyjski

niemyjski Oct 13, 2016

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 commented Oct 13, 2016

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

This comment has been minimized.

Show comment
Hide comment
@niemyjski

niemyjski Oct 13, 2016

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 commented Oct 13, 2016

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

This comment has been minimized.

Show comment
Hide comment
@niemyjski

niemyjski Oct 13, 2016

Could someone add a quick note about the mode

niemyjski commented Oct 13, 2016

Could someone add a quick note about the mode

@jsgoupil

This comment has been minimized.

Show comment
Hide comment
@jsgoupil

jsgoupil Nov 21, 2016

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.

jsgoupil commented Nov 21, 2016

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

This comment has been minimized.

Show comment
Hide comment
@amarzavery

amarzavery Nov 21, 2016

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.

Contributor

amarzavery commented Nov 21, 2016

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

This comment has been minimized.

Show comment
Hide comment
@jsgoupil

jsgoupil Nov 21, 2016

@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.

jsgoupil commented Nov 21, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@amarzavery

amarzavery Nov 21, 2016

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.

Contributor

amarzavery commented Nov 21, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@balajikris

balajikris Jan 11, 2017

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.

Member

balajikris commented Jan 11, 2017

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

This comment has been minimized.

Show comment
Hide comment
@balajikris

balajikris Jan 17, 2017

Member

Fixed with #3424

Member

balajikris commented Jan 17, 2017

Fixed with #3424

@balajikris balajikris closed this Jan 17, 2017

@nabaz

This comment has been minimized.

Show comment
Hide comment
@nabaz

nabaz 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

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 join this conversation on GitHub. Already have an account? Sign in to comment