I hereby claim:
- I am ehtobsemaj on github.
- I am ehtobsemaj (https://keybase.io/ehtobsemaj) on keybase.
- I have a public key ASDV0vH7C6MhbBhIb2q8cSe8N1dgXnc2h14TtcPFy-uD5Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| Title | Description
| Title | Description
# This script is intended to be used as part of a script to automatically create Organisation VDCs in vCloud Director. | |
# Find the Storage Profile in the Provider vDC to be added to the Org vDC | |
$BronzePvDCProfile = search-cloud -QueryType ProviderVdcStorageProfile -Name "Bronze Storage" | Get-CIView | |
# Create a new object of type VdcStorageProfileParams and fill in the parameters for the new Org vDC passing in the href of the Provider vDC Storage Profile | |
$spParams = new-object VMware.VimAutomation.Cloud.Views.VdcStorageProfileParams | |
$spParams.Limit = 512000 | |
$spParams.Units = "MB" | |
$spParams.ProviderVdcStorageProfile = $BronzePvDCProfile.href |
function Get-VDCVMDetails { | |
# Adapted from original code from http://geekafterfive.com/2013/03/21/simple-vm-reporting-in-vcloud-with-powercli/ | |
# Added MAC Address, Network Connection, Storage Profile and setup as a function | |
$objects = @() | |
$vms = $input | Get-CIVM | |
foreach($vm in $vms) | |
{ |
# Run from a PowerCLI shell that has been logged into the vCloud Director instance using “Connect-CIServer -server url” | |
# and then run the script passing the following parameters: | |
# -file or -f = The CSV file to export rules to | |
# -edge or -e = The Edge Gateway Name | |
# Example: | |
# ./export-vse-nat-rules.ps1 -f mynatrules.csv -e “My vShield Edge” | |
param ( | |
[parameter(Mandatory = $true, HelpMessage="Edge Gateway Name")][alias("-edge","e")][ValidateNotNullOrEmpty()][string[]]$egwname, |
# Run from a PowerCLI shell that has been logged into the vCloud Director instance using “Connect-CIServer -server url” | |
# and then run the script passing the following parameters: | |
# -file or -f = The CSV file to import rules from | |
# -edge or -e = The Edge Gateway Name to import rules into | |
# Example: | |
# ./import-vse-nat-rules.ps1 -f mynatrules.csv -e “My vShield Edge” | |
param ( |
# Run from a PowerCLI shell that has been logged into the vCloud Director instance using “Connect-CIServer -server url” | |
# and then run the script passing the following parameters: | |
# -file or -f = The CSV file to export rules to | |
# -edge or -e = The Edge Gateway Name | |
# | |
# Example: | |
# ./export-vse-fw-rules.ps1 -f myfwrules.csv -e “My vShield Edge” | |
# | |
param ( |
# Run from a PowerCLI shell that has been logged into the vCloud Director instance using “Connect-CIServer -server url” | |
# and then run the script passing the following parameters: | |
# -file or -f = The CSV file containing the rules to import | |
# -edge or -e = The Edge Gateway Name | |
# | |
# Example: | |
# ./import-vse-fw-rules.ps1 -f myfwrules.csv -e “My vShield Edge” | |
param ( | |
[parameter(Mandatory = $true, HelpMessage="Edge Gateway Name")][alias("-edge","e")][ValidateNotNullOrEmpty()][string[]]$egwname, |