java - How to enable basic metric diagnostics on an Azure VM? -
i'm using azure java sdk vm creation on azure account. noticed diagnostics turned off default when create vm. how enable basic metrics in diagnostic section while creating vm?
i'm using following code submit request create vm:
virtualmachine request = new virtualmachine(); request.setlocation(); request.setnetworkprofile(); ... ... computemanagementclient.getvirtualmachineoperations().createorupdate(request);
i see there request.setdiagnosticprofile()
method, takes in bootdiagnostics object , not enable basic metric diagnostics.
is there way can enable basic metric diagnostics through code?
i can't find java sdk apis enabling basic metric diagnostics via reviewing related source codes & javadocs azure java sdk.
but seems can try refer article "enabling azure diagnostics in azure cloud services" , create diagnostics setting azure insights rest api azure vm.
hope helps.
any concern, please feel free let me know.
Comments
Post a Comment