Samples for using the update management capabilities in Azure Automation
SDK Samples can be found under sdk/{version}/samples
These samples uses LinqPad to provide an easy way to expriment and view the result. In addition to LinqPad, samples use the following nuget packages:
- Microsoft.Azure.Management.Automation (SDK itself)
- Microsoft.Azure.Management.ResourceManager.Fluent (used for authentication)
Service principal authentication is used. To learn about service principal authentication, see Create Service Principal
This file contains environment and authentication related information. You need to replace placeholders with your specifc values before you run the samples.
Sample | Description |
---|---|
Get-SUC | Getting Software Update Configuration by name |
List-SUC | Get list of Software Update Configurations in account |
List-SUC-ByVM | Get list of Software Update Configurations targetting specific VM |
New-SUC-OneTime | Create new Software Update Configuration on a one time schedule |
New-SUC-Weekly | Create new Software Update Configuration on a weekly time schedule |
New-SUC-Monthly | Create new Software Update Configuration on a monthly schedule |
New-SUC-Monthly-TimeZone | Create new Software Update Configuration on a monthly schedule using time zone |
New-SUC-Monthly-Adv | Create new Software Update Configuration with advanced schedule |
Sample | Description |
---|---|
Get-SUCR | Get Update Runs with different filters |
Sample | Description |
---|---|
Get-SUCMR | Get Update Machine Runs with different filters |