Skip to content

Instantly share code, notes, and snippets.

@kwart
Created June 1, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwart/ceb8d6ef9dd4a8b92125bf6a4d7ad427 to your computer and use it in GitHub Desktop.
Save kwart/ceb8d6ef9dd4a8b92125bf6a4d7ad427 to your computer and use it in GitHub Desktop.
JClouds Azure and VM Agent on Windows - TBD
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