Azure-Samples / azure-iot-starter-kits

Samples for Azure IoT starter kits.
MIT License
30 stars 39 forks source link

Module cannot be created due to missing Azure RC credentials #38

Closed sgiovinetti closed 3 years ago

sgiovinetti commented 3 years ago

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Deploy the solution to Azure CR configured with admin user/pwd access Setup the IoT central template to use the deployed private container Setup raspPI to act as an IoT edge device connected with IoT Central

Any log messages given by the failure

In IoT central: One or more errors occurred. (Error calling Create module SimulatedTemperatureSensor: Could not create module SimulatedTemperatureSensor caused by: Could not pull image iotcontainerwe01.azurecr.io/azureiotedge-seeed-temperature-sensor:1.0.2-arm32v7 caused by: Get https://iotcontainerwe01.azurecr.io/v2/azureiotedge-seeed-temperature-sensor/manifests/1.0.2-arm32v7: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.)

Expected/desired behavior

The IoT Edge device should be able to retrieve the image (Model) from Azure RC but it looks like it is not passing the docker credentials configured in the docker deployment template (.env file)

OS and Version?

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.