diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json index 8e6e36ef3200..0b7ce5e15432 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_createOrUpdate.json @@ -5,26 +5,15 @@ "api-version": "2019-03-22-preview", "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", "iotHubDescription": { - "name": "iot-dps-cit-hub-1", - "type": "Microsoft.Devices/IotHubs", "location": "centraluseuap", "tags": {}, "etag": "AAAAAAFD6M4=", "properties": { - "state": "Active", - "provisioningState": "Succeeded", "ipFilterRules": [], - "hostName": "iot-dps-cit-hub-1.azure-devices.net", "eventHubEndpoints": { "events": { "retentionTimeInDays": 1, - "partitionCount": 2, - "partitionIds": [ - "0", - "1" - ], - "path": "iot-dps-cit-hub-1", - "endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/" + "partitionCount": 2 } }, "routing": { @@ -74,7 +63,6 @@ }, "sku": { "name": "S1", - "tier": "Standard", "capacity": 1 } } diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json index 8e6dd33b5cbe..6bd924b40126 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/examples/iothub_get.json @@ -78,7 +78,17 @@ "streamingEndpoints": [ "https://streams.azure-devices-int.net:9443" ] - } + }, + "locations": [ + { + "location": "West US", + "role": "primary" + }, + { + "location": "East US", + "role": "secondary" + } + ] }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json index 22364230d82d..8a7c2150d423 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2019-03-22-preview/iothub.json @@ -2045,6 +2045,14 @@ "name": "Capabilities", "modelAsString": true } + }, + "locations": { + "description": "Primary and secondary location for iot hub", + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/IotHubLocationDescription" + } } } }, @@ -3453,6 +3461,28 @@ "required": [ "failoverRegion" ] + }, + "IotHubLocationDescription": { + "description": "Public representation of one of the locations where a resource is provisioned.", + "type": "object", + "properties": { + "location": { + "description": "Azure Geo Regions", + "type": "string" + }, + "role": { + "description": "Specific Role assigned to this location", + "enum": [ + "primary", + "secondary" + ], + "type": "string", + "x-ms-enum": { + "name": "IotHubReplicaRoleType", + "modelAsString": true + } + } + } } }, "parameters": {