I have some problem destroy my stack that I have set up. The problem is when I try to delete my Service Principal Password and Assignment. For some reason it seems like the actual Service Principal was deleted before those resources and I think that is what caused the issue.
If I use some value from one resource as input to another resource I thought I would have a dependency between the two. So in my case simplified:
* Service principal - X
* Service Principal Password - Y, it has an input reference to X.Id
When I destroy a stack like this I expected Y to first be deleted and then X, can I expect that to be the case?