Azure: Powershell Workflows, speeding things up in azure! (and in AzureStack)
Here's a small snippet you can use in multiple ways to bulk create / modify / etc. do stuff against the azure API's in parallel. The Example below is used against deleting all the resource groups in my subscription. (operation 'Green Field', ;) ) So let me give a little bit of context. When you're working in Azure you will notice doing things in a traditional sense means sequential working. Due to the inner workings of the API. So instead of sending a job of 10 items i will send 10 times 1 item as separate posts to the API in azure. They will all be handled at once saving me the time of waiting forever....But be warned there is a limit to doing things simultaneously! so be smart about this because if you lock up the API with bulk posts you could block other users due to the limit set by Microsoft. #Login to Azure to get the profile context ready. Login-AzureRmAccount #Fixed path for writing the profile to. $path = 'c:\temp\AzureRmContext.json'