Comments (4)
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.
Had same experience. Tried everything to delete each resource but still telling me there's something dependent.
from deployment-environments.
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.
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)
- Increase deployments verbosity and feedback
- Feature request | Ability to show environment deployment outputs in the Portal
- How dev infra team test the catalog template before releasing to main branch
- Not all projects from same DevCenter are selectable in the Dev Portal HOT 8
- DeploymentCanceledByTimeout HOT 1
- Enable Auto Expiration HOT 3
- Ability to View Quotas
- AzureDeployment Environment Dev center setup failing with key vault Integration HOT 2
- Pass Environment Type to Manifest/ARM Template
- Deployment Environments in Multiple Dev Centers
- Removing Access to User HOT 3
- Access to Environment Templates Cannot be Restricted to Certain Users HOT 1
- deploying environment using main.bicep due to InvalidContentLink HOT 3
- cannot delete Environment when deployed using Terraform HOT 2
- Environments not showing up in devportal.microsoft.com after succesful deployment HOT 1
- Creating an environment from the dev portal doesn't use the manifest default values HOT 7
- Not getting option to create Deployment environments on devportal HOT 6
- Is there any guidance to use terraform IaC Codes with AzureDeployment environment ? HOT 1
- ADE with extensibility and custom container image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deployment-environments.