-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete deployment group #261
Comments
Hi @sheshadri99, this message indicates that ADU thinks that the group you are trying to delete still does have devices associated with it. Are you seeing no devices in that group when you view it in the portal? If you use the ADU CLI to list the devices does it appear empty? "az iot du device list -n -i --filter "groupId eq ''" @josephmsft to comment if there are other things you can check as well. |
Hi @alancshi, i could see there are no devices in the group when viewed through portal. |
@sheshadri99 that is strange, can you share your account/instance and group name? @josephmsft @Olee2021 can you please help with this investigation? |
I'll take a look, please do tell us the account and instance. I'll see if I can find it from the group name alone but that will take longer. |
Ok I have determined the issue. You have 1 unhealthy device that is still tagged as part of this group. Because it is unhealthy it is not listed in the device queries you're running. The deviceId is "4e63870a34774967b9ffb73505271931" and moduleId is "FirmwareModule". If you delete this device from your hub you should be able to delete the group. You can see what unhealthy devices you have by querying for unhealthy devices, although for now that API is not returning group information. I will follow up on how we can improve this scenario. |
Is this the expected behaviour, having unhealthy devices being tagged to a group stops us from deleting them. |
For one particular device group, when viewed from portal it has no deployments, but when tried with api it says group has 1 active deployment, when tried to delete the deployment via api, it is returning 204 and deployment is not getting deleted. DeviceId: ACCE000000000000A20000000F23D602 |
This is currently the expected behavior, I am following up with the team if we want to make any changes here since it seems that it's hard to diagnose what is causing the failure with the current behavior. Untagging the unhealthy device should also work to be able to delete the group. |
https://learn.microsoft.com/en-us/azure/iot-hub-device-update/device-update-agent-check?tabs=portal is the documentation for agent check |
This was deployed the following week from my last comment. Closing this issue. |
Hi,
There are few deployment groups, which doesnot have any devices or any deployments in it, when tried to delete those groups, the below error message is shown. Ideally we should be able to delete those groups.
Is this the expected behaviour?
Error Message:
Group 4e63870a34774967b9ffb73505271931 could not be removed.
Status code: 400.
Detail error code: NotEmptyGroupCannotBeDeleted
Details: Cannot delete Group which is not empty. Please delete or retag the agents before deleting the group.
The text was updated successfully, but these errors were encountered: