Skip to content

Conversation

@qwordy
Copy link
Member

@qwordy qwordy commented Sep 14, 2020

Description

Resolve #14539

[Compute] vm boot-diagnostics enable: --storage becomes optional
[Compute] New command: vm boot-diagnostics get-sas

How to try it: https://github.com/Azure/azure-cli/blob/dev/doc/try_new_features_before_release.md

Testing Guide

vm boot-diagnostics enable -g rg -n vm
az vm boot-diagnostics get-sas -g rg -n vm --expire 100

History Notes

[Compute] vm boot-diagnostics enable: --storage becomes optional
[Compute] New command: vm boot-diagnostics get-boot-log-uris
[Compute] vm boot-diagnostics get-boot-log: support managed storage


This checklist is used to make sure that common guidelines for a pull request are followed.

@qwordy qwordy requested a review from arrownj as a code owner September 14, 2020 05:20
Copy link
Contributor

@arrownj arrownj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qwordy qwordy requested review from arrownj and yungezz September 14, 2020 06:56
@yungezz yungezz added the Compute az vm/vmss/image/disk/snapshot label Sep 14, 2020
@yungezz yungezz added this to the S175 - For Ignite milestone Sep 14, 2020
@qwordy qwordy changed the title [Compute] vm boot-diagnostics enable: --storage becomes optional [Compute] vm boot-diagnostics enable: --storage becomes optional; New command: vm boot-diagnostics get-sas Sep 14, 2020
crafted: true
"""

helps['vm boot-diagnostics get-sas'] = """
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sas is shared access signature, while the request is asking to get boot log url. Suggest to rename to get-log

Copy link
Member Author

@qwordy qwordy Sep 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A sample response:

{
  "consoleScreenshotBlobUri": "https://md-visib0spjzkmsn3z.blob.core.windows.net:443/3289a9bc-c41f-4750-9595-a6a41500fc30/vm1.66212157-7e08-48e9-bb0b-1b31fad6ea79.screenshot.bmp?sv=2017-04-17&sr=b&sig=z5YDfqrK93Lhd8QzWzTeRquDFVLalKmbkt5nZWppIk8%3d&se=2020-09-14T08%3a03%3a52Z&sp=r",
  "serialConsoleLogBlobUri": "https://md-visib0spjzkmsn3z.blob.core.windows.net:443/3289a9bc-c41f-4750-9595-a6a41500fc30/vm1.66212157-7e08-48e9-bb0b-1b31fad6ea79.serialconsole.log?sv=2017-04-17&sr=b&sig=aaQNEtL2D%2bBgT1VtLjFkMx%2buaNRrMxM3CrTcXxwyvUs%3d&se=2020-09-14T08%3a03%3a52Z&sp=r"
}

It also contains screenshot.
how about get-uri or get-blob-uri?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @qwordy . As we synced offline, with new managed storage for boot diagnostic log, 2 changes need.

  • MUST change existing get_boot_log command to support showing content from managed storage uri, when log is managed storage, get uri from the new InstanceView API
  • Nice to have add a new command get_boot_log_uris to show boot log uris. This new command need to cover both scenarios also: managed storage, and user specified storage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@qwordy qwordy merged commit d29cd2c into Azure:dev Sep 15, 2020
@qwordy qwordy changed the title [Compute] vm boot-diagnostics enable: --storage becomes optional; New command: vm boot-diagnostics get-sas [Compute] vm boot-diagnostics enable: --storage becomes optional; New command: vm boot-diagnostics get-boot-log-uris Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az vm boot-diagnostics commands update to support managed boot diagnostics

6 participants