By considering the below scenario as an example, the desired state configuration (DSC) automates the deployment of Internet Information Services (IIS) web servers as it mainly installs IIS, creates an application pool and sets up a default website based on your requirements you define in your script.
Please find below document for more information:
https://learn.microsoft.com/en-us/azure/automation/quickstarts/dsc-configuration
https://azure.microsoft.com/en-us/blog/what-why-how-azure-automation-desired-state-configuration/
If the information is helpful, please consider by clicking the "Accept answer and Upvote" on the post.
Thank you.