【发布时间】:2022-06-21 16:56:19
【问题描述】:
我尝试更改 IoT Central 实例的层级/SKU。但是,我在 Azure 门户或 IoT Central 中都找不到这样做的选项。
是否可以更改实例的 SKU 还是必须创建一个新实例?
【问题讨论】:
我尝试更改 IoT Central 实例的层级/SKU。但是,我在 Azure 门户或 IoT Central 中都找不到这样做的选项。
是否可以更改实例的 SKU 还是必须创建一个新实例?
【问题讨论】:
此时没有用于更改 SKU 的 UI。它可以通过 Azure CLI 或 ARM 模板/二头肌进行更改。标准 0、1 和 2 的当前有效值为 ST0, ST1, ST2。
az iot central app update -n my-first-iot-app -g MyResourceGroup --set sku.name=ST1
https://docs.microsoft.com/en-us/azure/templates/microsoft.iotcentral/iotapps?tabs=json
{
"type": "Microsoft.IoTCentral/iotApps",
"apiVersion": "2021-11-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"sku": {
"name": "string"
},
"identity": {
"type": "string"
},
"properties": {
"displayName": "string",
"networkRuleSets": {
"applyToDevices": "bool",
"applyToIoTCentral": "bool",
"defaultAction": "string",
"ipRules": [
{
"filterName": "string",
"ipMask": "string"
}
]
},
"publicNetworkAccess": "string",
"subdomain": "string",
"template": "string"
}
}
【讨论】: