The function will loop through all Azure SQL instances in a single subscription or all subscriptions based on the parameter passed to the function. The script can also be added to an automation runbook and used for SQL server sa account password rotation on a schedule. The sa account password will be a random scrambled 30char password.
TechNet gallery is retiring! This script was migrated from TechNet script center to GitHub by Microsoft Azure Automation product group. All the Script Center fields like Rating, RatingCount and DownloadCount have been carried over to Github as-is for the migrated scripts only. Note : The Script Center fields will not be applicable for the new repositories created in Github & hence those fields will not show up for new Github repositories.