Skip to content
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

Configure DiagnosticsProfile on VM creation #1149

Closed
jkubrynski opened this issue Oct 3, 2016 · 5 comments
Closed

Configure DiagnosticsProfile on VM creation #1149

jkubrynski opened this issue Oct 3, 2016 · 5 comments
Assignees
Milestone

Comments

@jkubrynski
Copy link

Currently, it's not possible to setup DiagnosticsProfile when using Azure.virtualMachines().define() method.

@anuchandy
Copy link
Member

anuchandy commented Oct 4, 2016

@jkubrynski

DiagnosticsProfile can be enabled by adding an extension for the same to the virtual machine. Refer this https://github.com/Azure/azure-sdk-for-java/pull/1160/files unit test to see how to define this extension for a linux virtual machine. This will be available in beta3.

It looks like it it make sense to have a convenience layer to enable this for a virtual machine, we'll add that if it is feasible.

The unit test adds the extension as a part of VM update (Update). We can do that during VM creation time as well (Define), we need to find the id of the to be created VM to do this. The format of the id is: /subscriptions/{subscription_id}/resourceGroups/{resourceGroup_name}/providers/Microsoft.Compute/virtualMachines/{vm_name}

@jkubrynski
Copy link
Author

Thanks @anuchandy - this extension works like a charm. But as I understand it's not the same as BootDiagnostics which could be set in DiagnosticProfile?

@anuchandy
Copy link
Member

@jkubrynski the wither to enable boot diagnostics is not implemented, created a work item to track this #1163

Seems boot diagnostics cannot be enabled via extensions, only runtime diagnostics can be configured through extensions.

@anuchandy anuchandy added this to the 1.2.0 milestone Jul 26, 2017
@anuchandy
Copy link
Member

This support is added and will be available as part of 1.2 release.

@anuchandy
Copy link
Member

Feature is available as of v1.2 hence closing this.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants