Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "[email protected]"
},
"identity": {
"type": "SystemAssigned"
}
}
},
Expand All @@ -39,6 +42,11 @@
},
"sku": {
"name": "ST2"
},
"identity": {
"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
},
Expand All @@ -65,6 +73,11 @@
},
"sku": {
"name": "ST2"
},
"identity": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there will be three different scenarios for the response

  1. No "identity": {} since it was never set.
  2. Identity with type of SystemAssigned.
  3. Identity with type of None.

We should show that in the example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there precedence or other example showing all different scenarios? I noticed enum for AppState (created/suspended) does not provide all scenarios in the examples (only created in shown in examples).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The response for these 3 examples are vastly different. That is why I think it may be a good idea to include it in our examples. Just something nit. Up to you to decide.

"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
},
"sku": {
"name": "F1"
},
"identity": {
"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
},
"sku": {
"name": "F1"
},
"identity": {
"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
},
"sku": {
"name": "F1"
},
"identity": {
"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"AppPatch": {
"properties": {
"displayName": "My IoT Central App 2"
},
"identity": {
"type": "SystemAssigned"
}
}
},
Expand Down Expand Up @@ -34,6 +37,11 @@
},
"sku": {
"name": "ST2"
},
"identity": {
"type": "SystemAssigned",
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"principalId": "8988ab15-3e7a-4586-8a1c-ed07a73a53e9"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@
"sku": {
"description": "A valid instance SKU.",
"$ref": "#/definitions/AppSkuInfo"
},
"identity": {
"description": "The managed identities for the IoT Central application.",
"$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/SystemAssignedServiceIdentity"
}
},
"allOf": [
Expand Down Expand Up @@ -597,6 +601,10 @@
"description": "The common properties of an IoT Central application.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/AppProperties"
},
"identity": {
"description": "The managed identities for the IoT Central application.",
"$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/SystemAssignedServiceIdentity"
}
}
},
Expand Down