'How to fetch dependencies of a resource using .NET Azure SDK?

I am trying to create an alternative to using ARM templates.

I have so far managed to fetch subscriptions, resource groups and resource details using apropriate clients in SDK (ResourceManagementClient, SubscriptionClient), however I couldnt find a way to fetch the dependsOn portion of the template.

Is this even supported, and if it is, how do I do it?



Solution 1:[1]

Is this even supported, and if it is, how do I do it?

Currently, there is no support for getting the dependsOn value.

The MSDOC says that dependsOn isn't the best option because of how resources are interconnected. Because the resource's properties do not maintain deployment dependencies after deployment, there are no commands or actions that allow you to see dependencies.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DelliganeshS-MT