I recently had the task of creating a PowerShell script to call REST API for adding Networks to an uplink set in HP OneView.
A quick overview of the environment.
Our enclosures have 4x FlexFabrics, 2 used to plumb an access port to the LOMs and 2 used as trunks to create the Virtual Switch teams.
The vSwitch uplink sets are labelled Switch_A and Switch_B
Each Vlan we connect is plumbed to each switch and named accordingly.
Another quick one, just to share…. :)
For a HA WAP deployment you will need to update each service of the pertinent url to ensure they are using the NLB endpoint rather than going direct to one of the servers.. This is one that catches a few people out when deploying a HA WAP environment.
Bit’s of the below are scribed from other sources (they escape me right now so apologies for the lack of a references) but found that they didn’t work.
Another quick one (becoming a habit..)
In deploying and testing Azure Connector for Windows Azure Pack found here, deploying a virtual machine can sometimes fail with an obscure status message of:
“Error in CheckCheckVmCreation()”
This is because the parameters of the resource creation are rejected. In the below example, I faced this because my lab password did not meet the required complexities.
Running the the process using the same account in Azure, I am faced with a minimum password complexity error
Edit: added Cloud parameter to the script.
Deploying WAP for clients, they start creating new clouds, plans and subscriptions which is great!! But how do they add existing VM’s to new users in WAP?
Easy….. you guessed it…. PowerShell!
So I can’t take the credit here, my sources are found here & here.
Ok, that’s out of the way.. here it is…
Requirements:
You must have an existing tenant account That tenant must have an existing VM (I usually just kick off a quick VM deployment in WAP and delete it once done) I like to use Out-GridView to keep the script portable.
Had a user try to upload a theme to a Wordpress site they had published using Windows Azure Pack but were getting a file exceeded size limit error as exampled below.
“The uploaded file exceeds the upload_max_filesize directive in php.ini”
Typically you would just go into the php.ini located on the local webserver but how do I do this in a WAP Websites WebFarm?
PowerShell of course!!!
Ok, I do this from the websites controller server:
Quick scribble: add images and detail
3 steps
Template > NIC > Set Connected > Set static IP & Static MAC > OK
Template > NIC > Set No Connected > Confirm static IP & Static MAC > OK
Template > NIC > Set Connected > VM Network None > Confirm static IP & Static MAC > OK
Do in each template AND hardware profile
Deploying in WAP should work with or without a virtual network.