# US 2022/0292197 A1 · Automatic update of vm sets

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292197 A1
- Document ID: US20220292197A1
- Status: Published application
- Kind: A1
- Application number: 17/200,902
- Filed: 2021-03-14
- Published: 2022-09-15
- Earliest claimed: 2021-03-14
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Uday Kumar BANDARU; Ravindra Nath BHARTIYA; Shashank GUPTA
- Web page: https://patentgrep.com/patent/US20220292197A1

## CPC

- G06F 8/63: {Image based installation; Cloning; Build to order}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 9/44505: {Configuring for program initiating, e.g. using registry, configuration files}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Cloud services intelligently provision new VMs for a VM scale set when the original label that included the OS or other software images used to provision existing VMs of the VM scale set is no longer available or has been changed. Metadata of the existing VMs are analyzed to identify an OS image or other software image used to provision the existing VMs. The metadata also reveals updates that are running on the new VMs. These updates include software that was not part of the original label used to provision the existing VMs and are used to find the second label in a label database. The second labels include the OS or software of the existing VMs—or a later version thereof—and some portion of the updates. A VM-provisioning service uses the second label to provision the new VM.

## Claims

### Claim 1

A method for provisioning a new virtual machine (VM) for addition to a VM scale set comprising at least one existing VM, the method comprising:
analyzing metadata of software running on the existing VM to identify a first label specifying a software image of an operating system (OS) being executed by the existing VM;
identifying, from the metadata, a software update installed on the existing VM;
locating, from the metadata, a second label comprising the software update and the image of the OS specified in the first label; and
provisioning the new VM with the second label based on the second label located from the metadata.

### Claim 2 (depends on 1)

The method of claim 1, wherein the software update comprises a security patch to the OS.

### Claim 3 (depends on 2)

The method of claim 2, wherein the software update is different than another software update that is part of the first label.

### Claim 4 (depends on 1)

The method of claim 1, wherein the second label comprises a different security update than a security update of the first label.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining the first label with the software image of the OS has been deleted from a label database; and
performing said locating of the second label incident to the first label with the software image of the OS having been deleted.

### Claim 6 (depends on 5)

The method of claim 5, further comprising selecting the second label for provisioning the new VM based on the security patch of the second label being newer than another security patch associated with the first label.

### Claim 7 (depends on 1)

The method of claim 1, wherein the metadata of the existing VM indicates an operational setting of the existing VM.

### Claim 8 (depends on 7)

The method of claim 7, wherein the operational setting comprises one or more registry keys used by the existing VM.

### Claim 9 (depends on 7)

The method of claim 7, wherein the operational setting comprises one or more server roles being active or disabled.

### Claim 10 (depends on 1)

The method of claim 1, wherein the metadata of the existing VM comprises a stock-keeping unit (SKU) indicative of the OS.

### Claim 11

One or more servers configured to provision a new virtual machine (VM) for addition to a VM scale set comprising at least one existing VM, the one or more servers comprising:
memory embodied with executable instructions for identifying a first label of a software image for provisioning the existing VM and machine learning a second label of the software image; and
at least one processor programmed to:
analyze metadata of software running on the existing VM to identify a first label specifying a software image being executed by the existing VM,
determine the first label with the software image has been deleted from a label database,
identify, from the metadata, a software update installed on the one or more existing VMs,
locate a second label comprising the software update and the software image specified in the first label for use in provisioning the new VM, and
provision the new VM with the second label based on the second label located from the metadata.

### Claim 12 (depends on 11)

The one or more servers of claim 11, wherein the at least one processor is further programmed to:
identify the first label is deleted from a label database, and
locate the second label based, at least in part, on the first label being deleted from the label database.

### Claim 13 (depends on 11)

The one or more servers of claim 11, wherein the metadata of the existing VM indicates an operational setting comprising one or more registry keys used by the existing VM.

### Claim 14 (depends on 13)

The one or more servers of claim 13, wherein the second label comprises a different registry key than the one or more registry keys.

### Claim 15

One or more computer-storage memory devices embodied with executable operations that, when executed by one or more processors, are configured to perform operations for provisioning a new VM for a VM scale comprising at least one existing VM, comprising:
analyzing metadata of software running on the existing VM to identify a first label specifying a software image being executed by the existing VM;
determining a path to the first label with the software image is broken;
identifying, from the metadata, a software update installed on the one or more existing VMs; and
incident to the determination that the path to the first label with the software image is broken, locating a second label comprising the software update and the software image specified in the first label for use in provisioning the new VM based on the second label identified from the metadata; and
provisioning the new VM with the second label based on the second label located from the metadata.

### Claim 16 (depends on 15)

The one or more computer-storage memory devices of claim 15, wherein the software update comprises a security patch that is not in the first label.

### Claim 17 (depends on 15)

The one or more computer-storage memory devices of claim 15, wherein the software update comprises an operation setting that is not in the first label.

### Claim 18 (depends on 15)

The one or more computer-storage memory devices of claim 15, wherein the path to the first label with the software image is broken due to the first label having been changed.

### Claim 19 (depends on 15)

The one or more computer-storage memory devices of claim 15, further comprising selecting the second label for provisioning the new VM based on the security patch of the second label being newer than another security patch associated with the first label.

### Claim 20 (depends on 15)

The one or more computer-storage memory devices of claim 15, wherein the metadata of the one or more existing VMs indicates an operational setting comprising one or more registry keys used by the one or more existing VMs, and wherein the second label comprises a different registry key than the one or more registry keys.
