Apps - Update

Update the metadata of an IoT Central application.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}?api-version=2021-06-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group that contains the IoT Central application.

resourceName
path True

string

The ARM resource name of the IoT Central application.

subscriptionId
path True

string

The subscription identifier.

api-version
query True

string

The version of the API.

Request Body

Name Type Description
identity

SystemAssignedServiceIdentity

The managed identities for the IoT Central application.

properties.displayName

string

The display name of the application.

properties.subdomain

string

The subdomain of the application.

properties.template

string

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

sku

AppSkuInfo

A valid instance SKU.

tags

object

Instance tags

Responses

Name Type Description
200 OK

App

This is returned as a response to the status polling request for the create or update operation. The body contains the resource representation that indicates a transitional provisioning state.

202 Accepted

Accepted - Put request accepted; the operation will complete asynchronously.

Other Status Codes

CloudError

DefaultErrorResponse

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Apps_Update

Sample request

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp?api-version=2021-06-01

{
  "properties": {
    "displayName": "My IoT Central App 2"
  },
  "identity": {
    "type": "SystemAssigned"
  }
}

Sample response

code: 200
message: OK
target: ResourceHandler.ExecutePatchRequest
{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
  "location": "westus",
  "type": "Microsoft.IoTCentral/IoTApps",
  "name": "myIoTCentralApp",
  "tags": {
    "key": "value"
  },
  "properties": {
    "applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
    "displayName": "My IoT Central App 2",
    "subdomain": "my-iot-central-app-2",
    "template": "iotc-pnp-preview@1.0.0",
    "state": "created"
  },
  "sku": {
    "name": "ST2"
  },
  "identity": {
    "type": "SystemAssigned",
    "tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
    "principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
  }
}
{
  "error": {
    "code": "Error code",
    "message": "Error message",
    "target": "Error target"
  }
}

Definitions

Name Description
App

The IoT Central application.

AppPatch

The description of the IoT Central application.

AppSku

The name of the SKU.

AppSkuInfo

Information about the SKU of the IoT Central application.

AppState

The current state of the application.

CloudError

Error details.

CloudErrorBody

Details of error response.

SystemAssignedServiceIdentity

Managed service identity (either system assigned, or none)

SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

App

The IoT Central application.

Name Type Description
id

string

The ARM resource identifier.

identity

SystemAssignedServiceIdentity

The managed identities for the IoT Central application.

location

string

The resource location.

name

string

The ARM resource name.

properties.applicationId

string

The ID of the application.

properties.displayName

string

The display name of the application.

properties.state

AppState

The current state of the application.

properties.subdomain

string

The subdomain of the application.

properties.template

string

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

sku

AppSkuInfo

A valid instance SKU.

tags

object

The resource tags.

type

string

The resource type.

AppPatch

The description of the IoT Central application.

Name Type Description
identity

SystemAssignedServiceIdentity

The managed identities for the IoT Central application.

properties.applicationId

string

The ID of the application.

properties.displayName

string

The display name of the application.

properties.state

AppState

The current state of the application.

properties.subdomain

string

The subdomain of the application.

properties.template

string

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

sku

AppSkuInfo

A valid instance SKU.

tags

object

Instance tags

AppSku

The name of the SKU.

Name Type Description
ST0

string

ST1

string

ST2

string

AppSkuInfo

Information about the SKU of the IoT Central application.

Name Type Description
name

AppSku

The name of the SKU.

AppState

The current state of the application.

Name Type Description
created

string

suspended

string

CloudError

Error details.

Name Type Description
error.code

string

The error code.

error.details

CloudErrorBody[]

A list of additional details about the error.

error.message

string

The error message.

error.target

string

The target of the particular error.

CloudErrorBody

Details of error response.

Name Type Description
code

string

The error code.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

The error message.

target

string

The target of the particular error.

SystemAssignedServiceIdentity

Managed service identity (either system assigned, or none)

Name Type Description
principalId

string

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId

string

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

type

SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

Name Type Description
None

string

SystemAssigned

string