Create or update a component in Azure Monitor REST API

 

Updated: September 26, 2016

See Common headers and parameters for headers and parameters that are used by all requests related to components.

Method

Request URI

PUT

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/microsoft.insights/component/{component-name}?api-version={api-version}

Replace {component-name} with the name of the one you want to create or update.

Status code: 200

{
  "id": "/subscriptions/089bd33f-d4ec-47fe-8ba5-0753aa5c5b33/resourceGroups/Default-Web-EastUS/providers/microsoft.insights/components/mycomp1",
  "name": "mycomp1",
  "type": "microsoft.insights/components",
  "location": "Central US",
  "tags": {},
  "properties": {
    "InstrumentationKey": "51f742b2-96c2-493a-a479-0940d042c224",
    "Name": "mycomp1",
    "CreationDate": "2015-02-03T01:16:35.6870134+00:00",
  }
}

Element Name

Description

id

The identifying URL of the component.

name

The name of the component.

type

Specifies that this is of type Microsoft.Insights/Components

location

Specifies the supported Azure location of the component. For more information, see List all of the available geo-locations.

tags

The tags and their values.

instrumentationKey

The key that can be used to upload data into this component.

creationDate

When this component was created.

Show: