Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

AZ CLI: az bot publish output is not user friendly #858

@stevengum

Description

@stevengum

Tool

Name: Azure CLI
Version: 2.0.53

Describe the bug

az bot publish output is not user friendly.

To Reproduce

Use az bot publish to publish a bot, and get back JSON that is not user friendly and not immediately clear on if the publish succeeded or not.

Expected behavior

A message on if the publish succeeded or failed should appear.

Additional context

Code from azure-cli-extensions botservice:

if output.get('active'):
    logger.info('Deployment successful!')

if not output.get('active'):
    scm_url = output.get('url')
    deployment_id = output.get('id')
     # Instead of replacing "latest", which would could be in the bot name, we replace "deployments/latest"
    deployment_url = scm_url.replace('deployments/latest', 'deployments/%s' % deployment_id)
    logger.error('Deployment failed. To find out more information about this deployment, please visit %s.'
                 % deployment_url)

[bug]

Metadata

Metadata

Assignees

Labels

4.3February 14, 2019Azure CLIAzure Command LineP2approvedApproved by the Triage Team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions