Created
June 1, 2016 18:30
-
-
Save kwart/ceb8d6ef9dd4a8b92125bf6a4d7ad427 to your computer and use it in GitHub Desktop.
JClouds Azure and VM Agent on Windows - TBD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final String nodeName = initialNodeMetadata.getName(); | |
final VirtualMachineApi vmApi = computeServiceContext.unwrapApi(AzureComputeApi.class).getVirtualMachineApiForDeploymentInService( | |
nodeName,nodeName); | |
Role role = vmApi.getRole(nodeName); | |
//recreate role with the provisionGuestAgent=true | |
vmApi.updateRole(nodeName, role); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment