Code Monkey home page Code Monkey logo

Comments (4)

KarsonAlford avatar KarsonAlford commented on August 30, 2024 1

I am finding that the DevCenters are getting out of synch very easily. I am trying to clean up the existing ones so I can start all over. I cannot delete the projects because there are environments that users cannot access. I cannot delete the DevCenter because it thinks the projects still have data. I can't delete the resource group for the same reason. This is a very severe issue.

I am going to try putting in a support ticket with Microsoft to delete all these resources.

from deployment-environments.

markl234 avatar markl234 commented on August 30, 2024

Had same experience. Tried everything to delete each resource but still telling me there's something dependent.

from deployment-environments.

John-Donalson avatar John-Donalson commented on August 30, 2024

any process of which to follow to delete enviornments and projects??? Does there need to be a specific order in which you do it?

from deployment-environments.

KarsonAlford avatar KarsonAlford commented on August 30, 2024

Working with Microsoft we were finally able to get everything deleted.

Some Background:
We are using an AD group for users and managed identities that need Owner access to the subscription. I had the DevCenter system assigned identity as a user in the group for months and did not run into any issues until 2 weeks ago.

Two weeks ago, we created a second DevCenter with some of our developers with access to just one DevCenter and others with access to both. This was when everything got corrupted, and we couldn't delete environments from the devportal and there was no option in the DevCenter.

After everything got corrupted, I started cleaning up all the permissions including removing the DevCenter identities from the AD group so we wouldn't end up with 'Identity not found' placeholders everywhere.

Working With Microsoft:
While trying to figure out how to delete the DevCenters we tried several Azure CLI commands, and nothing worked. This week one of the DevCenters (was apparently upgraded) began allowing environment deletes from the portal UI. This also didn't work.

Microsoft had me re-add the system assigned identities for the DevCenters as Owner for the subscription. This worked [only when we assigned the system assigned identity to the subscription and not to the AD group (not sure if this is a red herring or not, we didn't test this thoroughly).]

The other DevCenter’s environments, projects, and environment types could not be deleted from the UI because some of those options did not show up in the UI. However, using API commands for environments and projects (and portal UI operations for other resource) we were able to clear up those resources once the DevCenter’s identity had Owner access to the subscription.

Example API Commands:

# This command must have the UserId of the user that created the environment and must be ran by that user.
az devcenter dev environment delete --dev-center-name "dc-Feature"  --name "testteam2" --project-name "TeamEnvironments" --user-id "d4cd9ed1-68a9-4566-8159-1459d3b9d2bd"
az devcenter admin project delete --name "Environmental" --resource-group "Dev-DevBox"

Conclusion:
At the time of this writing there appears to be two different versions of DevCenters floating around. Both require that the DevCenter’s identity have Owner permissions to the subscription and that you manually delete artifacts in the reverse order they were added.

from deployment-environments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.