Showing posts with label SCORCH. Show all posts
Showing posts with label SCORCH. Show all posts

Friday, 12 July 2013

Using O365 without On-Premise Exchange with System Center 2012 Orchestrator

I was checking over some Runbooks today in my lab and one failed when it hit the send e-mail activity.  Odd I thought and then it dawned on me that when I re-installed the lab a month or so back I didn't re-implement exchange as I went for a full Office 365 play.

Great, here comes the task of setting up SMTP e-mail relays, unless... will Orchestrator work directly with O365 using just the Send Email Activity?

It turns out it does and really simply too.

On the Send Email activity properties, fill out the information on the Details tab.

N.B. Make sure you untick the Task fails if an attachment is missing option if you're not putting an attachment on the mail.


On the Advanced tab enter the email username and password for the account you created in Office 365 that will be used for sending e-mail from Orchestrator.

You can leave the Domain field blank


Logon to Office 365/OWA as the Orchestrator e-mail account, click on the Options button and then About.

Make a note of the Server name and Port as highlighted in the screen shot below (pod51016.outlook.com in this example)


Enter this information into the Connect tab, along with the e-mail account you've setup for Orchestrator to send from


Make sure the Enable SSL option is ticked, otherwise you will get an error in Orchestrator informing you that the SMTP server requires a secure connection.




Check your Runbook in and give it a test run.
If it's setup correctly then this time you should see it succeed.


And voilĂ , you should end up with e-mails being sent to/from Office 365 without the need for any on-premise Exchange or SMTP relay.




Another, simpler method, is to use the Exchange User Integration Pack.

With this IP installed, you can configure the server to use (again the details from OWA) along with the e-mail and password by going to the Options menu and choosing Exchange User.


Then drag a Create and Send E-Mail activity to your runbook and provide at least the e-mail address to send a mail to, the subject and the body.  Other options are available such as priority and attachments via the Optional Properties... button.

 
Again, another successful e-mail can now be sent.
 
 


Wednesday, 3 April 2013

Orchestrator & VMware vSphere – Quiesce Snapshots

While there is an official VMware vSphere Integration Pack for Orchestrator available from Microsoft (here) I was working for a customer the other week where they had an extra need that the Create Snapshot activity didn’t seem to provide.

The customer as part of their SoP (Standard Operating Proceedure) have the requirement that all snapshots are quiesced for both memory and file operations during a snapshot activity.

While the vSphere IP activity allows you to set the option for capturing the memory state with the snapshot, there is no reference as to whether it quiesces the file system by default or not.

So the quickest way to achieve this, fall back to PowerShell and script it.

VMware have a PowerShell module available for vSphere known as PowerCLI.
Once I had downloaded and installed this on both the Runbook Designer workstations and the SCORCH server I started working on the script.

The script:
$VC = "<Insert vCenter Server>"

$VMName = "<Insert VM Name>"

$Snapshot = "<Insert VM Name>"

if(-not (Get-PSSnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue))



{
 
Add-PSSnapin VMware.VimAutomation.Core



}
 
Set-PowerCLIConfiguration -DefaultVIServerMode Single -InvalidCertificateAction Ignore -confirm:$false

Connect-VIServer -Server $VC -ErrorAction SilentlyContinue

Get-VM $VMName | New-Snapshot -Name $Snapshot -Memory:$true -Quiesce:$true -Description "Snapshot for protection while running automated process" -Confirm:$false



Basically this script will take the input of a virtual machine name and a name for the snapshot then perform a snapshot of the VM but with the options set to quiesce both the memory and file system.

Orchestrator & VMware vSphere – Calculate Datastore Capacity

While there is an official VMware vSphere Integration Pack for Orchestrator available from Microsoft (here) I was working for a customer the other week where I ran into a problem that meant we couldn’t use it and I had to work around it.

The problem looks to stem from having a vApp present within their vSphere environment, as discussed in this TechNet forum thread: http://social.technet.microsoft.com/Forums/en-US/scoscip/thread/2a1c03db-c24b-43c8-b035-f7c8cd6f6a83/

The biggest problem we had is that the Get Datastore Capacity activity which was failing was the very first step of the process that we were trying to automate.

The customer wanted to be able to check that there was sufficient space as dictated by their SoP (Standard Operating Proceedure) on the Datastore before taking snapshots of the VM’s.
So the quickest way to achieve this, fall back to PowerShell and script it.

VMware have a PowerShell module available for vSphere known as PowerCLI.
Once I had downloaded and installed this on both the Runbook Designer workstations and the SCORCH server I started working on the script.

N.B. There is also a community IP from Ryan Andorfer that wraps the PowerCLI into activities, but it's based on PowerCLI v4 and isn't compatible with PowerCLI v5 which is what I wanted to utilise.

This is a modified version of the script that LucD discusses on the VMware community forums here: http://communities.vmware.com/message/2119043

The script:

$VC = "<Enter vCenter name here>"

if(-not (Get-PSSnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue))


{
 
Add-PSSnapin VMware.VimAutomation.Core 

}
 
Set-PowerCLIConfiguration -DefaultVIServerMode Single -InvalidCertificateAction Ignore -confirm:$false

Connect-VIServer -Server $VC -ErrorAction SilentlyContinue

$VMInfo=Get-VM "<Enter VM Name here>" | Select Name, MemoryGB, UsedSpaceGB, @{N="Cluster";E={Get-Cluster -VM $_}}, @{N="ESX Host";E={Get-VMHost -VM $_}}, @{N="Datastore";E={Get-Datastore -VM $_}}

$ESXiHost=$VMInfo.ESXHost.name

$DSName=$VMInfo.datastore.name

$VMMem=$VMInfo.MemoryGB

$VMHD=$VMInfo.UsedSpaceGB

$Datastore=Get-Datastore -Name $DSName | select Name, @{N="Capacity";E={[Math]::Round($_.CapacityMB/1024,2)}}, @{N="FreeSpace";E={[Math]::Round($_.FreeSpaceMB/1024,2)}}

$Capacity=$Datastore.Capacity

$FreeSpace=$Datastore.FreeSpace

*Sorry about the formatting, blogger mangles code*

Basically this script will take the input of a virtual machine name, lookup which datastore the VM resides on and then query that datastore for the available free space and output it as a variable that we capture onto the SCORCH databus.
While I was writing the script and finding the datastore for the VM I thought we might as well pull back some other info regarding the VM and ESX host so the script also makes some more information available as variables that we can push back onto the databus.

Variables:
Datastore Name ($Datastore)
Datastore Capacity ($Capacity)
Datastore FreeSpace ($FreeSpace)
VM Assigned Memory ($VMMem)
VM Assigned Disk Size ($VMHD)
ESX Host running the VM ($ESXiHost)

Add this into a simple runbook as shown below and we can prompt for a virtual machine name (or pass it across from a calling runbook!), query vSphere for all the details and then return the data to be used as part of the further process.


Monday, 7 January 2013

System Center 2012 Service Pack 1 - Where's the goodies?

There's plenty of posts starting to come online now regarding Service Pack 1, especially around installation and new features.

If you're looking for that type of content then you might like to start with these links:
  • Kevin Greene's covered installing SCOM SP1- Part 1, Part 2, Part 3
  • Kevin Greene's also covered Installing Orchestrator SP1 
  • Bob Cornelissen has a good post for the DPM 2012 -> SP1 upgrade here
  • Marcel Zehner has you covered for the SCSM SP1 upgrade here
  • Russ Rimmerman rounds off the links with ConfigMgr upgrade here

However, I thought it might be useful to pull together a listing of the various downloads that would be handy for anyone about to start implementing from scratch or upgrading alike to have to hand.

  1. System Center 2012 Service Pack 1
    Unfortunately I can't list a download link for this as it's not available as a simple upgrade Service Pack.  The Service Pack is actually slipstreamed into the System Center 2012 media to allow you to either install fresh or upgrade from it.
    To obtain it you need to head to one of the following sites with your appropriate subscription account:
  2. New and Updated Orchestrator (SCORCH) Integration Packs (IP's)
     
    Orchestrator Integration Toolkit
    System Center 2012 SP1 Integration Packs
    Integration Pack for REST
    Exchange User
    Exchange Admin
    FTP
    Active Directory
    Windows Azure
     
    vSphere IP for SP1 (Bit confused as to whether this IP is still Beta or not)
     
    HP iLO and OA
     
    HP Service Manager
     
    HP Operations Manager
     
    IBM Tivoli Netcool/Omnibus
     
  3. Configuration Manager Component Add-ons and Extensions
     
    11 Essential tools to help you manage, maintain and troubleshoot your ConfigMgr environment, containing:
    • Client Spy
    • Policy Spy
    • Security Configuration Wizard Template
    • Send Schedule Tool
    • Power Viewer Tool
    • Deployment Monitoring Tool
    • Run Metering Summarization Tool
    • Role-based Administration Modelling and Auditing Tool
    • Wakeup Spy
    • Content Library Transfer
    • Content Ownership Transfer
       
  4. ConfigMgr Clients for Additional Operating Systems
     
    Service Pack 1 brings with it support for Mac OSX and Linux/Solaris and these are the native clients for those Operating Systems
     
  5. Windows Phone 8 Company Portal
     
    Might not seem like something to list with System Center, but you'll need this for side loading applications via ConfigMgr and Intune on Windows Phone 8 with System Center SP1
     
  6. Service Manager Authoring Tools
     
    Need to extend or customise SCSM forms or add new classes?  Then you need this Authoring Tool.
     
  7. Server App-V Remote Sequencer
     
    Rather than having to install apps on the same server as your sequencer, you can now use this tool to install software on a remote server and monitor it for sequencing.
     
  8. Data Protection Manager (DPM) Azure Online Backup Update
     
    Following very quickly on SP1's heels is this update for DPM that brings the following new or improved features to DPM's ability to utilise the Azure Online Backup Service:
     
    • This update improves the performance of Windows Azure Online Backup.
    • Windows Azure Online Backup support for a SQL Server data source in System Center 2012 SP1 DPM is available.
    • The retention range of Windows Azure Online Backup for System Center 2012 SP1 DPM is increased to support 120 recovery points.
       
  9. Update Rollup 1 for System Center 2012 Service Pack 1
    http://support.microsoft.com/kb/2785682

    Hot on the heels of Service Pack 1 and before SP1 is even fully Generally Available is Update Rollup 1 bringing a collection of further bug fixes to System Center 2012 with SP1.
     
  10. Visio 2010 & SharePoint 2010 Extensions
    http://www.microsoft.com/en-us/download/details.aspx?id=29268

    This Visio 2010 Add-in will enable diagrams to show health states of System Center 2012 - Operations Manager managed objects within the Visio diagram. This live health state functionality is available both when viewing the document in Visio 2010 and in SharePoint 2010.
     
  11. Visual Studio Authoring Extensions (VASE)
    http://www.microsoft.com/en-us/download/details.aspx?id=30169

    The System Center 2012 Visual Studio Authoring Extensions—VSAE—is an add-in for Visual Studio 2010 Professional provides Lifecycle Management Tools to support Management Pack Authoring.
     
  12. Visio MP Designer (VMPD)
    http://www.microsoft.com/en-us/download/details.aspx?id=30170

    The System Center 2012 Visio MP Designer—VMPD—is an add-in for Visio 2010 Premium that allows you to visually design a System Center Operations Manager Core Monitoring Management Pack.
     
  13. System Center 2012 SP1 Configuration Manager Package Conversion Manager 2.0
    http://www.microsoft.com/en-us/download/details.aspx?id=34605

    Package Conversion Manager (PCM) is a feature pack download that lets you to convert ConfigMgr 2007 packages into System Center 2012 SP1 Configuration Manager applications.
     
  14. System Center Data Protection Manager CSV Serialization Tool
    http://www.microsoft.com/en-us/download/details.aspx?id=36524

    The CSV XML merging tool makes CSV VM backup serialization easier for Windows 2008R2 CSV Cluster environment.
     
  15. Global Service Monitor (GSM) Management Packs
    http://www.microsoft.com/en-us/download/details.aspx?id=36422

    These management packs enable the System Center Global Service Monitor functionality within System Center Operations Manager 2012 SP1
     
  16. System Center 2012 Service Manager Component Add-ons and Extensions
    Addons for Service Manager including:
    IT Governance Risk and Compliance (GRC) Process Management Pack
    System Center Cloud Services Process Pack - coming soon

    Friday, 15 June 2012

    System Center 2012 Service Pack 1 CTP2 - What's New?

    So Service Pack 1 CTP2 has just been released for download:
    http://www.microsoft.com/en-us/download/details.aspx?id=30133

    With the Technical Documentation here:

    I don't know if it's an oversight or not, but there is currently no technical doc for ConfigMgr....

    From scanning the documents quick, here's a high level new feature list:

    App Controller
    • Upload a virtual hard disk or image to Windows Azure from a VMM library or network share
    • Add a virtual machine to a deployed service in Windows Azure
    • Start, stop, and connect to virtual machines in Windows Azure
    • Migrate a virtual machine from VMM to Windows Azure
    • Deploy a virtual machine in Windows Azure to create hosted service
    • Add a Service Provider Framework (SPF) hosting provider connection
    Orchestrator
    • In System Center 2012 Service Pack 1 (SP1), Windows Server 2012 and SQL Server 2012 are both supported.
    • Additional support for Integration Packs, including 3rd party
    • Manage VMM self-service User Roles
    • Manage multiple VMM ‘stamps’ (scale units), aggregate results from multiple stamps
    • Integration with App Controller to consume Hosted clouds

    Virtual Machine Manager
    • Network Virtualization
    • VHDX Support
    • SMB 3.0 File Shares
    • Live Migration Enhancements
    • Storage enhancements
    • Provision a Physical Computer as a Hyper-V Host - Enhancements
    • Support for VMM console add-ins

    Service Manager
    • SQL Server 2012 Support
    • New Charge Back Feature

    Operations Manager
    • New APM Monitoring Capabilities (WCF, MVC and .NET NT services)
    • New MP and support for Windows Server 2012 and IIS 8
    • Azure SDK support

    Configuration Manager
    • Support for Windows 8
    • Support for Mac OS clients
    • Support for Linux and Unix servers

    Data Protection Manager
    • Improved backup performance of Windows Server 2012 Hyper-V over CSV 2.0 deployments
    • Protect Hyper-V over remote SMB share
    • Protect Windows 8 deduplicated volumes
    • Support for Live Migration (Uninterupted Protection)
    • Use SQL Server 2012 to host DPM database
    Server App-V
    • Support for applications that create scheduled tasks during packaging
    • Create virtual application packages from applications installed remotely on native server

    Thursday, 10 May 2012

    Building the TESG Private Cloud Customer Experience Centre - Part 1

    Every year my employer holds an event for customers (and potential new customers) to show case what we do and give customers a chance to meet our partner vendors.

    This year, nicely coinciding with just after the System Center 2012 release, I landed the brilliant job of setting up something to demonstrate our System Center and Desktop expertise.

    And so the concept of the Private Cloud and Optimised Desktop Customer Experience Centre was born.

    The goal?
    1. To showcase the full System Center 2012 suite
    2. To showcase the interactions of each component and how they drive efficiencies
    3. To showcase an elastic and easily scalable datacentre that can flex into the Public Cloud
    4. To showcase the dynamic desktop with OS, Data, User and Application layers abstracted
    5. To showcase BYOD and specifically desktop/application access on tablet devices

    Over a couple of blog posts I'll aim to share some of the planning, thoughts and tips & tricks that went into building it.
    What I'll not be doing is guides on how to install the different components as there are plenty of them out there, but I will post links to some relevant good guides.

    My original test lab was made up of a couple of HP Proliant DL380 G7's with some shared space pinched off the corporate SAN, but as this was going to need to host a lot more and it would need to be "slightly" portable for attending events like the T360 it was time to purchase some upgrades.
    1. More memory.  Upgrade from 64Gb per host to 128Gb
    2. Dedicated Storage.  iSCSI SAN that would also allow me to show some of the VMM storage management features (N.B. More details on this later, plus some pitfalls to watch out for!)
    3. Dedicated Switches.  To show SCOM network management & keep the environment self contained.
    4. More NIC's.  The original environment only had 4 onboard NICs, not good enough.
    5. Flight case to rack it all in to make it portable (kind of!)
    Now that might sound slightly overkill for a test/demo environment.  However, I have a laptop which is quite capable of showing 2-3 of the System Center products at the same time, but this Customer Experience Center had to host the following:
    • Active Directory
    • Virtual Machine Manager
    • Operations Manager
    • Service Manager
    • Configuration Manager
    • Data Protection Manager
    • Orchestrator
    • App Controller
    • SQL 2008 R2 Server
    • SharePoint Enterprise Server
    • Exchange
    • Lync
    • ForeFront UAG
    • ForeFront TMG
    • File Servers
    • XenDesktop Mgt Server
    • XenDesktop VDI Desktops
    • XenApp Mgt Server
    • XenApp App Servers
    • Remote Desktop Session Hosts
    • Remote Desktop Broker/Gateway/Licensing
    • RDS/Hyper-V VDI Desktops
    • Dedicated Win 7 Admin Workstations
    • Citrix NetScaler VM Appliance
    • App-V Sequencer Workstations
    When you consider that all of this needs to be up and running at the same time, my laptop just wasn't going to cope!

    So far this has spread out across 34 VM's and there's still more to come...

    This is a quick example diagram that I drew up to show the Hyper-V layout

    Once all the hardware components were installed and racked then Hyper-V was the first thing to tackle and all I can say is thank god for Aidan Finn and his blog: http://www.aidanfinn.com/

    Lots of useful posts, for example: http://www.aidanfinn.com/?p=10311

    I'm going to leave the rest for the next post, but I just want to mention something that came to light when I installed the first System Center component, Virtual Machine Manager.

    This is a logical first place to start if you've got the chance to build a private cloud from scratch like I have as you can implement Service Templates for deploying your VM's to help structure the environment and provide servicing and scale out options.

    However, I hit a problem almost straight away, I struggled to get it to see my storage provider.

    Originally I was ordering a Dell Equalogic iSCSI SAN for the environment, but due to certain disks not being available and increased costs for alternatives I was suggested to look at a DotHill AssuredSAN 2332.

    The first thing I did was ask/check it supported SMI-S protocol, which it did as this is what VMM requires for the new features.
    However when trying to set it up in VMM, it soon came to light that it only supported SMI-S 1.3 whereas VMM requires version 1.5.

    So lesson learnt, make sure that when checking specifications, especially SAN's that you check in detail, right down to the version number!

    There is a useful table (I found this afterwards!) that details the supported arrays:
    http://technet.microsoft.com/en-us/library/gg610600.aspx



    Part 1 - Building the TESG Private Cloud Customer Experience Centre
    Part 3 - Installation Guide Links
    Part 4 - Partner Solutions & Extensions