Share via


GuestConfiguration.GuestConfigurationAssignmentsCreateOrUpdateViaJsonString Method

Definition

update an association between a VM and guest configuration

public System.Threading.Tasks.Task GuestConfigurationAssignmentsCreateOrUpdateViaJsonString(string subscriptionId, string resourceGroupName, string guestConfigurationAssignmentName, string vmName, string jsonString, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment>,System.Threading.Tasks.Task> onCreated, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.ISendAsync sender);
member this.GuestConfigurationAssignmentsCreateOrUpdateViaJsonString : string * string * string * string * string * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IGuestConfigurationAssignment>, System.Threading.Tasks.Task> * Func<System.Net.Http.HttpResponseMessage, System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Models.IErrorResponse>, System.Threading.Tasks.Task> * Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.ISendAsync -> System.Threading.Tasks.Task
Public Function GuestConfigurationAssignmentsCreateOrUpdateViaJsonString (subscriptionId As String, resourceGroupName As String, guestConfigurationAssignmentName As String, vmName As String, jsonString As String, onOk As Func(Of HttpResponseMessage, Task(Of IGuestConfigurationAssignment), Task), onCreated As Func(Of HttpResponseMessage, Task(Of IGuestConfigurationAssignment), Task), onDefault As Func(Of HttpResponseMessage, Task(Of IErrorResponse), Task), eventListener As IEventListener, sender As ISendAsync) As Task

Parameters

subscriptionId
String

Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupName
String

The resource group name.

guestConfigurationAssignmentName
String

Name of the guest configuration assignment.

vmName
String

The name of the virtual machine.

jsonString
String

Json string supplied to the GuestConfigurationAssignmentsCreateOrUpdate operation

onOk
Func<HttpResponseMessage,Task<IGuestConfigurationAssignment>,Task>

a delegate that is called when the remote service returns 200 (OK).

onCreated
Func<HttpResponseMessage,Task<IGuestConfigurationAssignment>,Task>

a delegate that is called when the remote service returns 201 (Created).

onDefault
Func<HttpResponseMessage,Task<IErrorResponse>,Task>

a delegate that is called when the remote service returns default (any response code not handled elsewhere).

eventListener
IEventListener

an IEventListener instance that will receive events.

sender
ISendAsync

an instance of an Microsoft.Azure.PowerShell.Cmdlets.GuestConfiguration.Runtime.ISendAsync pipeline to use to make the request.

Returns

A Task that will be complete when handling of the response is completed.

Applies to