Automanage.ConfigurationProfileHcrpAssignmentsCreateOrUpdate Method

Definition

Creates an association between a ARC machine and Automanage configuration profile

C#
public System.Threading.Tasks.Task ConfigurationProfileHcrpAssignmentsCreateOrUpdate (string subscriptionId, string resourceGroupName, string machineName, string configurationProfileAssignmentName, Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfileAssignment body, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfileAssignment>,System.Threading.Tasks.Task> onOk, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20220504.IConfigurationProfileAssignment>,System.Threading.Tasks.Task> onCreated, Func<System.Net.Http.HttpResponseMessage,System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Automanage.Models.Api20.IErrorResponse>,System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Automanage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Automanage.Runtime.ISendAsync sender);

Parameters

subscriptionId
String

The ID of the target subscription.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

machineName
String

The name of the Arc machine.

configurationProfileAssignmentName
String

Name of the configuration profile assignment. Only default is supported.

body
IConfigurationProfileAssignment

Parameters supplied to the create or update configuration profile assignment.

onOk
Func<HttpResponseMessage,Task<IConfigurationProfileAssignment>,Task>

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

onCreated
Func<HttpResponseMessage,Task<IConfigurationProfileAssignment>,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.Automanage.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

Product Versions
Azure - PowerShell Commands 12 (LTS), Latest