azure-docs-sdk-java/docs-ref-overwrite/com.microsoft.azure.managem...

17 строки
488 B
Markdown

---
uid: com.microsoft.azure.management.compute._virtual_machines.capture(String,String,String,boolean)
example: [*content]
---
```java
System.out.println("Capturing vm " + virtualMachineName + " to " + blobContainerName);
Azure azure = Azure.authenticate(propertiesFile).withDefaultSubscription();
String result = azure
.virtualMachines()
.capture(resourceGroupName,virtualMachineName,blobContainerName, true);
System.out.println("Result " + result);
```