Closed derbl4ck closed 7 months ago
@derbl4ck, can you provide us the azure cli command that you ran?
I used the following cli command:
az iot ops init --subscription xxxxxx -g rg-xxxxxx --cluster xxxxxx --kv-id /subscriptions/xxxxxx/resourceGroups/rg-xxxxxx/providers/Microsoft.KeyVault/vaults/kv-xxxxxx --custom-location xxxxxx-cl --target xxxxxx-target --dp-instance xxxxxx-processor --mq-instance mq-instance --mq-mode auto --mq-mem-profile low
In the meantime I also found the root cause: The Engineer who created the AKS EE Instance used "West Europe" as location instead of "westeurope" inside of his aksedge-config.json
:
{
"SchemaVersion": "1.9",
"Version": "1.0",
"DeploymentType": "SingleMachineCluster",
"Init": {
"ServiceIPRangeSize": 100
},
"Arc": {
"ClusterName": "xxxxxx",
"Location": "West Europe",
...
}
I think the AKS EE Team should put some validation on that value, since other services propably do not check this other kind of name. @chgennar Could you check if we should put some kind of validation / fallback inside the IoT Operations ARM-Templates too?
Thank you for the debugging information. I'll forward this to the AKS-EE team.
Thanks for sharing this issue! In the latest AKS EE release, we added validation for the custom location value in the config json (called out in the release notes here).
Describe the bug While deploying Azure IoT Operations in westeurope, the deployment fails with the latest CLI-Extension as well as via the Azure Portal. It seems like the location name has changed since westeurope becomes west%20europe and therefore is not being recogniced by some API Endpoints.
Errors
Same error if you try to add the custom-location feature directly:
After manipulating the ARM-Template to use the west%20europe version of the location name, the deployment goes to the next step and will fail with
"Microsoft.ExtendedLocation" resource provider does not have the required permissions to create a namespace on the cluster.
.Cluster Environment
Developer Environment