Terraspace for Azure - Delete resources from tfstate using CMD

Brass Contributor

 

- Create a new branch from the Master 

MohamedT_Trabelsi_0-1705348900900.png

 

- connect to your subscription 

MohamedT_Trabelsi_1-1705348989202.png

 

- list all resources in your state file 

MohamedT_Trabelsi_3-1705349057785.png

 

MohamedT_Trabelsi_4-1705349297589.png

 

- if you have the error of "zsh: no matches found" , you must use this cmd : setopt no_nomatch

 

- delete one resource from this tfstate (Remotely in a container Storage account Azure)

 

MohamedT_Trabelsi_5-1705349474776.png

 

Go on with Terraspace , it's an amazing tools for IAC

https://terraspace.cloud/docs/learn/azure/

 

 

0 Replies