public static VirtualMachineRunCommand GetVirtualMachineRunCommand(this ArmClient client, ResourceIdentifier id) { return(client.GetClient(() => { VirtualMachineRunCommand.ValidateResourceId(id); return new VirtualMachineRunCommand(client, id); } )); }
public static VirtualMachineRunCommand GetVirtualMachineRunCommand(this ArmClient armClient, ResourceIdentifier id) { VirtualMachineRunCommand.ValidateResourceId(id); return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new VirtualMachineRunCommand(clientOptions, credential, uri, pipeline, id))); }
public static VirtualMachineRunCommand GetVirtualMachineRunCommand(this ArmClient armClient, ResourceIdentifier id) { VirtualMachineRunCommand.ValidateResourceId(id); return(new VirtualMachineRunCommand(armClient, id)); }