Closed erzads closed 3 years ago
Let me try to clarify it. How can I use the sdk such that when I check the boot diagnostics page in the portal I see this:
I don't want to inform a storage account nor do I want it to create a random storage account.
@erzads Thanks for clarification. By the Learn more
link of shared screenshot, it looks managed boot diagnostics is new feature since API version 2020-06-01
here. We have upgraded API version to the expected one while we haven't updated internal logic inside our implementation.
For now, you may set via below sample code
VirtualMachineInner vmInner = new VirtualMachineInner();
vmInner.diagnosticsProfile().withBootDiagnostics(new BootDiagnostics().withEnabled(true));
computeManager.inner().virtualMachines().createOrUpdate("rgName", "vmName", vmInner);
Alternatively, you may also try with arm template as it mentioned here.
We will plan to support this in our new SDK.
Add a withBootDiagnosticsOnManagedStorageAccount
for this.
1.40.0 released
Query/Question How can I create a new vm with managed boot diagnostics enabled? The sdk has a method with no parameters to enable boot diagnostics but it ends up configuring it with a custom storage account, even thought there are overloaded method to inform a storage account. This makes me think this is a bug but I am not sure.
Why is this not a Bug or a feature Request? I am not sure if this is expected or not.
Setup (please complete the following information if applicable):
SDK Version: 1.36.3
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report