Pinned Repositories
automation-packs
Collections of Automation resources that can include runbooks, configurations, modules, credentials, schedules, variables, connections, certificates, jobs, compilation jobs, and nodes.
azure-automation-ise-addon
The Azure Automation PowerShell ISE Add-On makes it easy to author and test your runbooks in your local PowerShell ISE
azure-sql-database-scale-using-scheduled-autoscaling
Vertically scale an Azure SQL Database up or down according to a schedule using Azure Automation.
azure_automation_utility
Contains a python package to make it easier to author Python within Azure Automation
graphical-runbook-tools
python_emulated_assets
This python module enables the development and testing of Azure Automation python runbooks in an offline experience using the built in Automation assets (variables, credentials, connections, certificates)
runbooks
Sample Automation runbooks
start-azure-v2-vms
This Graphical PowerShell runbook connects to Azure using an Automation Run As account and starts all V2 VMs in an Azure subscription or in a resource group or a single named V2 VM. You can attach a recurring schedule to this runbook to run it at a specific time. The asso
stopstartazurevm--scheduled-vm-shutdownstartup-
This PowerShell Workflow runbook connects to Azure using an Automation Credential and Starts/Stops a VM/a list of VMs/All VMs in a Subscription in-parallel.
vststasks
Visual Studio Team Services tasks for integrating with Azure Automation
Azure Automation's Repositories
azureautomation/stopstartazurevm--scheduled-vm-shutdownstartup-
This PowerShell Workflow runbook connects to Azure using an Automation Credential and Starts/Stops a VM/a list of VMs/All VMs in a Subscription in-parallel.
azureautomation/sending-email-from-azure-automation-using-office-365--secure-smtp-
This script demonstrates how to send an email from Microsoft Azure automation using secure SMTP for sending the mail. In this setup the script is sending mails using Microsoft Office 365. This is could a nice feature to have to inform someone that Azure Automation just perform
azureautomation/add-a-new-key-to-a-key-vault
This runbook shows how to add a new key to an existing Key Vault. It requires an Azure Run As account and additional modules, see the PREREQUISITE sections in the runbook for details. The runbook will use the Run As account to authenticate against Key Vault. The Key Vault's acc
azureautomation/stop-azure-v2-vms-001
This PowerShell runbook connects to Azure and stops all VMs in an Azure subscription or cloud service. You can attach a schedule to this runbook to run it at a specific time.
azureautomation/remove-a-virtual-machine--vm--on-azure
This Azure Automation runbook removes a Virtual Machine (VM) on Azure using Stop-AzureVM, Remove-AzureVM activities that are available in Azure module. Given a certificate which is used to connect to your subscription, Subscription Id and VM name, the runbook uses Remove-AzureV
azureautomation/remove-all-blobs--including-snapshots--from-one-windows-azure-storage-account
Removes blobs from blob storage containers. The script will enumerate through all containers and remove the blobs, maintaining the existence of the container. If you want to remove the containers, then you can include the RemoveContainer switch.
azureautomation/reset-azure-ad--office-365--users-password
This runbook takes the users name (financeuser@contoso.com) and a credential asset name that has access to Azure AD to reset the users password. It then resets the password and writes out the users alternative email address and the temporary password.
azureautomation/save-to-an-azure-virtual-machine-s-rdp-file
When you execute that function, it provide create the Remote Desktop File of Virtual Machine on Azure in what you select path. SavePath parameter must be specified as mandatory. Optional Account can add into Remote Desktop file with Username Parameter
azureautomation/setting-blob-tiers-to--archive--for-large-data-sets-in-azure-blob-storage
I created this script for a client who wanted to change their off-site backups from Tapes to Azure Blob storage. The total amount of data to be migrated to Azure was approximately 40TB and for this to align appropriately with their on-premise storage structure, we would spread
azureautomation/start--stop-azure-classic-virtual-machines--runbook--azure-automation-
Intended to be used as a Runbook within Azure automation.As part of the Automation account used to run the Runbook you'll need to create a variable for AzureSubscriptionId (this is your azure subscription ID), and a credential called AzureCredential (this needs to be an account w
azureautomation/start-all-virtual-machines-in-a-subscription--with-days-exclusion-
Start Azure All RM virtual machines in a subscription (with days exclusion). An Azure Automation RunAs account is required for this runbook.
azureautomation/start-azure--az--vms-via-tags-in-order-across-many-subscriptionresource-groups
Quick hack to start VM of many Azure Subscription and Resource groups via script in certain order (define by tags)I use in AZ automation account runbook with schedule to start every morning.Please feel free to add logging/more logic.To Stop, I use it with Auto-Shutdown feature of
azureautomation/start-azure-classic-vms-001
This Graphical PowerShell Workflow runbook gets all of your Azure VMs or just the VMs in a service and then starts the ones that are stopped. You can import and use this runbook in the Azure Portal.
azureautomation/start-azure-v2-vms-001
This PowerShell script runbook connects to Azure and starts all VMs in an Azure subscription or cloud service. You can attach a schedule to this runbook to run it at a specific time.
azureautomation/start-v2-vms-and-vm-scales-sets-by-tag--graphical-
DESCRIPTIONThis Graphical PowerShell runbook connects to Azure and starts all V2 VMs in an Azure subscription and resource group where a VM or VM Scale Set contains a User Defined Tag Name and Value. You can attach a recurring schedule to this runbook to run it at a specific ti
azureautomation/startvms--arm-
Starts all the Azure VMs in a specific Azure Resource Group. This simple runbook starts all of the virtual machines in the specified Azure Resource Group. It is particularly useful for CSP (Cloud Solution Provider) customers, or users who have multiple subscriptions/tenants.
azureautomation/status-of-all-the-backup-jobs-in-azure--arm---recovery-services
This script fetches all the Recovery services vaults in all the subscription and provides status of all the jobs in vaults.
azureautomation/stop-all-virtual-machines-in-a-subscription--not-deallocated-included-
Stop Azure resource manager virtual machines in a subscription. An Azure Automation RunAs account is required for this runbook.
azureautomation/stop-all-vms--except-certain-names--and-retry-a-max.-number-on-errors
This runbook will connect to an Azure subscription and switch all Virtual Machines to a Stopped (Deallocated) State but can skip any machine with a certain name. It uses a do-loop, in combination with a try-catch to retry a maximum number of 30 times in case of an error.
azureautomation/stop-azure-classic-vms-001
This Graphical PowerShell Workflow runbook gets all of your Azure VMs or just the VMs in a service and then stops the ones that are started. You can import and use this runbook in the Azure portal.
azureautomation/stop-or-start-all-webapps--websites--in-your-subscription
Stop-Start-All-WebApps: is a simple PowerShell workflow runbook that will help you automate the process of stopping or starting every single WebApp (Website) in your subscription.The Stop-Start-All-WebApps receives two required (mandatory) parameters: Stop and CredentialAssetName
azureautomation/stop-or-start-all-webapps-in-your-resource-groups--new-azurerm-
This Powershell runbook will start/stop all the APP Services in a resource group.
azureautomation/stop-v2-vms-and-vm-scales-sets-by-tag--graphical-
DESCRIPTIONThis Graphical PowerShell runbook connects to Azure and stops all V2 VMs in an Azure subscription and resource group where a VM or VM Scale Set contains a User Defined Tag Name and Value. You can attach a recurring schedule to this runbook to run it at a specific time.
azureautomation/stopvms--arm-
Stops all the Azure VMs in a specific Azure Resource Group. This simple runbook stops all of the virtual machines in the specified Azure Resource Group. It is particularly useful for CSP (Cloud Solution Provider) customers, or users who have multiple subscriptions/tenants.
azureautomation/sync--component-build--files-to-azure-file-share--updated-july-2019-
This script does the following:1) Connects to an Azure Storage Account, using a Service Principal or User account that is currently logged in2) Using a local Directory it will look at that directory, then will check the Files and Directories in a specified component build directo
azureautomation/turn-on-logging---metrics-for-windows-azure-storage-accounts-in-a-subscription
Sets storage logging and metrics settings on storage accounts in the current subscription. Settings can be enable or disabled.**Note:** This script requires an Azure Storage Account to run. The storage account can be specified by setting the subscription configuration.
azureautomation/ultimate-create-web-site--sql-db-and-storage-with-build-in-diagnostics
This sample is a modified version of New-AzureWebsitewithDB.ps1 with built in testing. Pass in -testScript "TEST", and the script creates a random string, and uses that string to create all the resources (SQL DB, Web site, Storage) then deletes them at the end. You can use
azureautomation/update-sharepoint-list-item--script-
Purpose:Update a Sharepoint item using Tao Yangs SharePointSDK Module This script uses an connection asset to connect called "SharePoint Online Connection".You need to create this connection after importing the SharePointDK Module.Get the module here: https://www.powershellgaller
azureautomation/update-sharepoint-list-item--workflow-
Purpose:Update a Sharepoint item using Tao Yangs SharePointSDK Module This script uses an connection asset to connect called "SharePoint Online Connection".You need to create this connection after importing the SharePointDK Module.Get the module here: https://www.powershellgaller
azureautomation/vm-dependency-resolution-supported-parallel-shutdownstart--azure-ps-run-book-
This PowerShell workflow based Azure run book can be deployed to azure automation in order to support scheduled RM VM shutdown/start in parallel, it also supports VM dependency resolution using simple PS hash table object.