Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.63k stars 5.08k forks source link

Missing identity property in Microsoft.Devices/IotHubs spec #10913

Open bantoni opened 4 years ago

bantoni commented 4 years ago

The IoT Hub API supports the "identity" property, but it is not included in the spec (neither in the preview spec nor in the latest stable one).

The following template has been generated by the Azure Portal and includes the "identity" property.

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "iotHubName": {
            "defaultValue": "iot-hub-with-system-assigned-identity-hdu48fh",
            "type": "String"
        }
    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.Devices/IotHubs",
            "apiVersion": "2020-07-10-preview",
            "name": "[parameters('iotHubName')]",
            "location": "westeurope",
            "sku": {
                "name": "S1",
                "tier": "Standard",
                "capacity": 1
            },
            "identity": {
                "type": "SystemAssigned"
            },
            "properties": {
                "ipFilterRules": [],
                "eventHubEndpoints": {
                    "events": {
                        "retentionTimeInDays": 7,
                        "partitionCount": 4
                    }
                },
                "storageEndpoints": {},
                "messagingEndpoints": {
                    "fileNotifications": {
                        "lockDurationAsIso8601": "PT1M",
                        "ttlAsIso8601": "PT1H",
                        "maxDeliveryCount": 10
                    }
                },
                "enableFileUploadNotifications": false,
                "cloudToDevice": {
                    "maxDeliveryCount": 10,
                    "defaultTtlAsIso8601": "PT1H",
                    "feedback": {
                        "lockDurationAsIso8601": "PT1M",
                        "ttlAsIso8601": "PT1H",
                        "maxDeliveryCount": 10
                    }
                },
                "features": "None"
            }
        }
    ]
}
r0bnet commented 4 years ago

Just checked it and the earliest version that is supporting the identity field is 2020-01-01. Would be great if you could add it accordingly.

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn.

yiyiguo commented 3 years ago

@Azure/azure-iot-cli-triage