Samples

  • Example 1
# Display usage information
PS C:\IC.Azure> .\IC.Azure.ps1
  • Example 2
# Provision virtual environment
PS C:\IC.Azure> .\IC.Azure.ps1 Add
  • Example 3
# Provision virtual environment using specific configuration file (IC.Azure.Production.config)
PS C:\IC.Azure> .\IC.Azure.ps1 -Operation Add -ConfigFile .\Configuration\IC.Azure.Production.config
  • Example 4
# Provision virtual environment and log the output to a file (IC.Azure.log)
PS C:\IC.Azure> .\IC.Azure.ps1 -Operation Add -LogFile IC.Azure.log
  • Example 5
# De-provision virtual environment:
PS C:\IC.Azure> .\IC.Azure.ps1 Remove
  • Example 6
# Start virtual machines:
PS C:\IC.Azure> .\IC.Azure.ps1 Start
  • Example 7
# Stop (deallocate) virtual machines:
PS C:\IC.Azure> .\IC.Azure.ps1 Stop
  • Example 8
# Create virtual machine snapshot:
PS C:\IC.Azure> .\IC.Azure.ps1 SnapshotCreate
  • Example 9
# List virtual machine snapshots:
PS C:\IC.Azure> .\IC.Azure.ps1 SnapshotList
  • Example 10
# Remove virtual machine snapshot:
PS C:\IC.Azure> .\IC.Azure.ps1 SnapshotRemove
  • Example 11
# Restore virtual machine snapshot:
PS C:\IC.Azure> .\IC.Azure.ps1 SnapshotRestore
  • Example 12
# Export virtual machine definition:
PS C:\IC.Azure> .\IC.Azure.ps1 DefinitionExport
  • Example 13
# Remove virtual machine definition:
PS C:\IC.Azure> .\IC.Azure.ps1 DefinitionRemove
  • Example 14
# Import virtual machine definition:
PS C:\IC.Azure> .\IC.Azure.ps1 DefinitionImport

Last edited Apr 3, 2015 at 12:29 PM by Meriffa, version 5