Skip to content

Instantly share code, notes, and snippets.

@pkirch
Created November 21, 2014 12:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkirch/4648d7899619e7c8ec7f to your computer and use it in GitHub Desktop.
Save pkirch/4648d7899619e7c8ec7f to your computer and use it in GitHub Desktop.
Get all related commands for a certain service.
# Sample by Peter Kirchner (peter.kirchner@microsoft.com)
PS C:\Users\pkirch> Get-Command -Module Azure -Noun AzureService
<# Output
CommandType Name ModuleName
----------- ---- ----------
Cmdlet Get-AzureService Azure
Cmdlet New-AzureService Azure
Cmdlet Remove-AzureService Azure
Cmdlet Set-AzureService Azure
Cmdlet Start-AzureService Azure
Cmdlet Stop-AzureService Azure
#>
PS C:\Users\pkirch> Get-Command -Module Azure -Noun AzureVM
<# Output
CommandType Name ModuleName
----------- ---- ----------
Cmdlet Export-AzureVM Azure
Cmdlet Get-AzureVM Azure
Cmdlet Import-AzureVM Azure
Cmdlet New-AzureVM Azure
Cmdlet Remove-AzureVM Azure
Cmdlet Restart-AzureVM Azure
Cmdlet Start-AzureVM Azure
Cmdlet Stop-AzureVM Azure
Cmdlet Update-AzureVM Azure
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment