I am currently using Azure to create virtual machines, and I tried to find a way to get the time duration of creating a VM.
As you can see in the picture below, I found that as I go to the deployments section of a resource group where I create a VM, I can see the duration of the deployment for the VM, which is great.
However, I can only see the time duration in Azure portal, but I want to retrieve it using Azure CLI
because I want to automate this process using a script.
I cannot find any way to do this, so please help me!