func (c *Client) updateVM(ctx context.Context, resourceGroupName string, VMName string, parameters compute.VirtualMachineUpdate, source string) *retry.Error {
	resourceID := armclient.GetResourceID(
		c.subscriptionID,
		resourceGroupName,
		"Microsoft.Compute/virtualMachines",
		VMName,
	)

	response, rerr := c.armClient.PatchResource(ctx, resourceID, parameters)
	defer c.armClient.CloseResponse(ctx, response)
	if rerr != nil {
		klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "vm.put.request", resourceID, rerr.Error())
		return rerr
	}

	if response != nil && response.StatusCode != http.StatusNoContent {
		_, rerr = c.updateResponder(response)
		if rerr != nil {
			klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "vm.put.respond", resourceID, rerr.Error())
			return rerr
		}
	}

	return nil
}
// updateVM updates a VirtualMachine.
updateVM updates a VirtualMachine.
// updateVM updates a VirtualMachine .
func (c *Client) updateVM(ctx context.Context, resourceGroupName string, VMName string, parameters compute.VirtualMachineUpdate, source string) *retry.Error {
	resourceID := armclient.GetResourceID(
		c.subscriptionID,
		resourceGroupName,
		"Microsoft.Compute/virtualMachines",
		VMName,
	)
	response, rerr := c.armClient.PatchResource(ctx, resourceID, parameters)
	defer c.armClient.CloseResponse(ctx, response)
	if rerr != nil {
		klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "vm.put.request", resourceID, rerr.Error())
		return rerr
	}
	if response != nil && response.StatusCode != http.StatusNoContent {
		_, rerr = c.updateResponder(response)
		if rerr != nil {
			klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "vm.put.respond", resourceID, rerr.Error())
			return rerr
		}
	}
	return nil
}
func ( c * Client ) updateVM ( ctx context . Context , resourceGroupName string , VMName string , parameters compute . VirtualMachineUpdate , source string ) * retry . Error { resourceID := armclient . GetResourceID ( c . subscriptionID , resourceGroupName , " " , VMName , ) response , rerr := c . armClient . PatchResource ( ctx , resourceID , parameters ) defer c . armClient . CloseResponse ( ctx , response ) if rerr != nil { klog . V ( 5 ) . Infof ( " " , " " , resourceID , rerr . Error ( ) ) return rerr } if response != nil && response . StatusCode != http . StatusNoContent { _ , rerr = c . updateResponder ( response ) if rerr != nil { klog . V ( 5 ) . Infof ( " " , " " , resourceID , rerr . Error ( ) ) return rerr } } return nil }
updateVM updates a VirtualMachine.
updateVM updates a VirtualMachine .