This post will show how to use the Run Command to execute PowerShell scripts inside an Azure virtual machine running Windows Server from the Azure Portal. Note that this can also be done using PowerShell, CLI, and REST API.
Custom PowerShell objects are one way to represent a set of data as a single object and so are PowerShell classes. In this article, take a look at some of the similarities and differences between the two object structures so that you can best define custom objects for your needs.
Take your PowerShell class programming to the next level! Define constructors to simplify the creation of the classes, and use inheritance to create a hierarchy of classes and subclasses that inherit properties and methods.
In part 3 of the PowerShell Class series, Missy Januszko discusses how to define methods to perform actions against an instance of the class.
In the second part of the series on PowerShell classes, learn how and where to declare constant values using Enums and explore the differences between enums and ValidateSet.
Take your PowerShell programming to a new level by learning how to use classes.
Missy Januszko explores the uses of $MyInvocation.
Missy Januszko uses parameter validation attributes to define the acceptable input without writing a ton of additional code.
Learn how to prevent PowerShell mistakes by adding -whatif and -confirm parameters.
PowerShell advanced functions provide modularity in automating system administration tasks and by structuring PowerShell scripts as advanced functions, you can transform your scripts and functions into reusable tools.
Learn what a PowerShell provider does and how it allows a common set of cmdlets to interact with differently-structured data stores.
Missy Januszko provides an overview of PowerShell remoting and explains the use of different cmdlets for managing multiple machines at once.
Learn how to create professional-looking class-based DSC resources in just a few easy steps.