Wap
-
SMA Runbook to set VM custom property... (or run PS script)
A word⌠Having worked with many clients over the years, the commonality between many of them an under-utilization of automation. Even the biggest of Microsoft shops fall short when it comes to automation, regularly being confused about the options they have and often fear of introducing a new tool to their organisation. As a Hyper-V data center operator, I leverage automation as often as I can. This has been a concept we have tried to foster since the days of having scores of scripts triggered from scheduled tasks⌠-
SMA Runbook: SCVMM Logical Networks into HP OneView
This SMA Runbook will add any new or missing logical network definitions (i.e. VLANâs) in SCVMM and to HP OneView appliance. As well as having a âworking SMA deploymentâ, the prerequisites for this Runbook are 5 SMA Variables (Assets) which are: VMMServer HPOneViewAppliance HPOneViewUsername HPOneViewPassword HPOneViewLoginDomain We use Active Directory to authenticate to our OneView. If you use local credentials you can remove this from the Runbook or set the variable to âLocalâ. -
Add networks to HP OneView 3.00 using REST API via PowerShell
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. -
SCVMM and Datastores
Was cleaning out some old PS scripts recently and found this one in my toolkit. This one will appease some of those out there who came to Hyper-V from another virtualization technology and are familiar with the term datastore⌠We use SOFS storage so our VM paths are all SMB shares but Iâve included the CSV path split for those still running CSVâs to the nodes. What this gives you is a quick view into which storage device each VM lives on: -
Updating uri's for HA WAP deployment via PowerShell
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. -
Azure Connector for WAP(Pheonix) fails to create VM âError in CheckCheckVmCreation()â
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 -
NVGRE Rebuild â Warning 26926
Had a quirky one recently where by a client was rebuilding a NVGRE gateway (as per this post) failed with the below warning. Warning (26926) Unable to set up Remote Access server to support multi-tenancy mode. (Remote Access server and the host are not configured for multi-tenancy. Fix the issue in Remote Access server and retry the operation.). Recommended Action Fix the issue in Remote Access server and retry the operation. -
Hyper-V 2012 R2 NVGRE Gateways Rebuild
Fast publish⌠will revisit later Scenario: Existing NVGRE gateways manual deployed. Working fine for ages. NAT resources failed to come online HyperV Network Virtualization Gateway role failed FOCM below Cluster resource xxxxxxxxxxxxxxxxxx of type âNatâ in clustered role âHyperV Network Virtualization Gatewayâ failed The Windows NAT Driver service failed to start due to the following error: The property set specified does not exist on the object So, I decided I wanted to rebuild my gateways and reconnect them⌠but how? -
WAP - Deploying a VM Role, some VM's prompt for product key
Simple one that new WAP users often miss when deploying VHDâs for VM Roles. When deploying a VM role with multiple instances, some instances get stuck during deployment with the VM waiting for a product key to be entered. Although the solution is clearly discussed here on TechNet I find that new WAP admins typically overlook this setting when importing a new vhd/vhdx template and loose a bit of time troubleshooting. -
Migrate Logical Networks from VMM to VMM with PowerShell - The Export
Fast publish! Had to migrate logical networks from an existing VMM 2012 instance into a new shiny VMM 2012 R2 deployment. This is the export from the existing VMM. The import script will follow shortly: Import-Module virtualmachinemanager # all Logical network definitions $LogicalNetsdef = Get-SCLogicalNetworkDefinition Foreach ($def in $LogicalNetsdef){ foreach ($SubnetVlan in $def.SubnetVLans){ $data=[ordered]@{ LogicalNetworkName = $def.LogicalNetwork.Name Name=$def.Name Subnet=$SubnetVlan.Subnet VlanID=$SubnetVlan.VLanID } $Obj=New-Object -TypeName PSObject -Property $data Write-Output $Obj } } Enjoy! -
Deleting Virtual Network fails due to assigned IP address - SCVMM
Had a request today where a tenant was trying to delete a virtual network but they received an error saying there were dependent IP addresses but they have no IP addresses listed in the network. Using my current favourite PowerShell feature, Out-GridView, we can quickly script the revocation of the naughty IP address.. Note: Change the VMM variable to suit your environment So I ran the below to find the IP. -
Physical, Logical & Virtual Networks in a Microsoft Cloud OS Environment
I had to give an overview of our Cloud OS network topology to our support and engineering guys to help them understand at high levels how it all fitted together. The below diagram hopefully demonstrates the 3 layers â physical, logical and virtual â and more importantly how the fit together. Some notes: We have a dedicated Hyper-V cluster for the fabric management domain. We also have a standalone Hyper-V host that has a VM for DC and DPM. -
Adding existing VMâs to WAP Subscription using PowerShell
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. -
Change default PHP settings in Windows Azure Pack (IIS WebFarm)
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: -
VM Template network settings for WAP
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. -
SCVMM 2012 R2 - Refresh Host Cluster - Error (25122)
Fast publish (this is becoming a common phrase) so be kind⌠When refreshing host cluster in VMM, for some reason we started to see the below error in VMM: Error (25122) The specified address ((AllocatedIPAddressData#e449) { id = 6ea8ddba-b8a7-43f6-856e-0a4d35076681, LastUpdatedTimestamp = 3/24/2015 5:55:17 AM }) is already allocated by the pool (IPPool-LNet-Mgmt). This address should be assigned to only a single entity. Recommended Action Resolve to which entity this address is allocated. -
Setting the URLâs for WAP Admin & Tenant sites with PowerShell using variables
Edit: have updated the script This is a PowerShell script I use as a template when building WAP instances. Essentially, either edit variables in the script or use the read-host option. I prefer the set variables but the read-host is handy⌠well, it was onceâŚ
Collect URLS & Ports $URL = read-host "Domain Name?" Write-Host -ForegroundColor Yellow "Specify hostnames for each service" $TenantSite = read-host "Tenant host? (i.e. wap)" $TenantAuth = read-host "TenantAuth host?
-
Windows Azure Pack - URLs & Ports
This is for editing the Windows Azure Pack URLâs and Ports. Works as of WAP for Server 2012 R2 UR5. Modify your variables accordingly. I have each WAP site on an individual server for a scaled deployment so this sets all the sites to use the 443. #Set Variables $WAPDB = "WAPDB" $AdminSite = "wapadmin.domain.com" $AdminAuth = "wapauth.domain.com" $Tenant = "wap.domain.com" $TenantAuth = "waplogon.domain.com" #Run on Tenant Site Import-Module -Name MgmtSvcConfig Set-MgmtSvcFqdn -Namespace "TenantSite" -FullyQualifiedDomainName $Tenant -Port 443 -Server $WAPDB #Run on Tenant Auth Site Set-MgmtSvcFqdn -Namespace "AuthSite" âFullyQualifiedDomainName $TenantAuth -Port 443 -Server $WAPDB $ConnectionString = "Data Source=$WAPDB;Initial Catalog=Microsoft. -
Windows Azure Pack - change web sites default domain - Web Sites v2 update rollup 4
I recently had a POC WAP environment where the client wanted the web sites default domain changed. Ordinarily you canât do this through the web ui nor is it recommended.. But that does not mean itâs not possible.. As the title suggests, this change applies to Windows Azure Pack Web Sites Version 2 - Update Rollup 4. More info found here - http://support.microsoft.com/kb/2992029 Firstly, take a look at the config: -
WAP Usage does not work. Last ID never changes. SQL Named instances.
This is a fast publish! We were working with WAP and had an issue on one of our deployments not getting usage information. Never had this issue in previous deployments but identified that our SCOM DW SQL is on a Named Instance on this deployment. The fix that worked for me with SQL Named instances to change the connection string to use âTrusted Connectionâ. My environment: SCOM MS Server = SCOM01.