-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Compute] vm boot-diagnostics enable: --storage becomes optional; New command: vm boot-diagnostics get-boot-log-uris #15145
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
Conversation
arrownj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| crafted: true | ||
| """ | ||
|
|
||
| helps['vm boot-diagnostics get-sas'] = """ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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_uristo show boot log uris. This new command need to cover both scenarios also: managed storage, and user specified storage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Co-authored-by: Bin Ma <[email protected]>
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
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.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.