共用方式為


ComponentsOperationsExtensions.CreateOrUpdate Method

Definition

Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

public static Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent CreateOrUpdate (this Microsoft.Azure.Management.ApplicationInsights.Management.IComponentsOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent insightProperties);
static member CreateOrUpdate : Microsoft.Azure.Management.ApplicationInsights.Management.IComponentsOperations * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent -> Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent
<Extension()>
Public Function CreateOrUpdate (operations As IComponentsOperations, resourceGroupName As String, resourceName As String, insightProperties As ApplicationInsightsComponent) As ApplicationInsightsComponent

Parameters

operations
IComponentsOperations

The operations group for this extension method.

resourceGroupName
String

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

resourceName
String

The name of the Application Insights component resource.

insightProperties
ApplicationInsightsComponent

Properties that need to be specified to create an Application Insights component.

Returns

Applies to