Author Archives: Chris

Azure: Email a Backup Report with PowerShell and Office365

Azure PortalThis PowerShell snippet compiles a daily report of backup jobs on all the Recovery Service Vaults within the current subscription. It then uses the Office 365 SMTP server to mail this report out to chosen recipients – if you’re not using O365 then just change the SMTPServer, Port, and UseSSL arguments as appropriate in the Send-MailMessage cmdlet.

$Body=foreach ($RSV in Get-AzRecoveryServicesvault) {
Get-AzRecoveryServicesBackupJob -VaultID $RSV.ID -Operation "Backup" -From ((Get-Date).AddDays(-1).ToUniversalTime()) |
Select-Object WorkloadName,Operation,Status,StartTime,EndTime,Duration
}
$Body= "
<h1>Daily Azure Backup Report: "
+ (Get-AzSubscription).Name +"</h1>
<code>"
+ ($Body | ConvertTo-HTML)+"</code>"
Send-MailMessage -BodyAsHTML $Body -From "[email protected]" `
-To "[email protected]" -SmtpServer smtp.office365.com -Port 587 `
-Subject "Azure Backup Report" -UseSsl `
-Credential (Get-Credential -Message "Office 365 credentials")

If the email should go to multiple recipients then comma separate the list as follows:

Send-MailMessage -To @("[email protected]","sysad[email protected]")

Obviously to automate this you’ll need to feed the credentials in, using whatever secure platform you have available, rather than prompting for them in the script. The resulting email looks something like this:
Email
There’s plenty of scope for customisation of the email – the style and look of it can be changed by manipulating the HTML that’s generated in the snippet and the information included can be changed by modifying the Select-Object parameters.

VMworld Europe 2019-Day 2 Keynote highlights

The Wednesday General Session at VMworld Europe is usually where VMware puts the meat onto the bones of the Tuesday announcements and this year was no exception. Here’s a quick rundown of my highlights.

imageExecutive VP Ray O’Farrell kicked off proceedings with a video of a near-future environment where a person is making use of futuristic apps, devices, and transport- a storyline which was then tied in to the new VMware announcements. Following on from the success of Elastic Sky Pizza in 2017, attendees were introduced to the latest (ficticious) company- Tanzu Tees – who must be opening a European branch following their success at VMworld US in August.

The Keynote was divided into four sections to follow this theme- “Build and Run”, “Connect and Protect”, “Manage” and “Experience”. This split the hour into 10-15 minute sections and showed the breadth of todays’ VMware profile.

Less than 7 minutes into the show and we’re already diving into product demos, with Joe Baguely brought in to show an application being built with Spring Initializr to build out a framework for developers, deploying this to a Bitnami catalogue with Project Galleon and make it available in VMware Cloud Marketplace.

The second demo showed off the new Tanzu Mission Control managing Kubernetes clusters across vSphere, AWS, VMware Cloud, Azure, and Google Cloud- all on one screen. A key feature here was the ability to apply policies across all these different platforms from one consistent interface- no need to dive into 3, 4, or 5 different workflows, each with their own GUI, CLI, and API components to deal with.

A demo of Project Pacific followed this. I’ve heard lots of people say how much they appreciated these demonstrations and being able to see what the products actually look like as slide decks can only take you so far.

In this third demo we saw the vSphere Client we all know managing Kubernetes clusters alongside VMs and container pods- all natively within ESX. VMware are already using this technology in house- currently creating and destroying 800,000 containers weekly- a number which is growing.

Moving onto the “Connect and Protect” section Ray was joined onstage by Marcos Hernandez who had more demos. The first of these looked at the NSX Intelligence features- picking up risks, threats, and vulnerabilities which have been surfaced using the new Distributed IDS/IPS technology in NSX and then applying recommended firewall rules to remediate the faults.

Marcos’s second demo looked at how Carbon Black Cloud Workload adds another layer to protecting the application- spotting known vulnerabilities, locations in the infrastructure where encryption wasn’t implemented, The demo included a simulated hack on the Tanzu Tees application and showed how Carbon Black and AppDefense detected the intrusion attempt.

The “Manage” segment brought Purnima Padmanabhan to the stage. Wavefront was the first product up here, collecting metrics from the components of the Tanzu Tees apps and drilling down into individual microservices to diagnose performance problems- in this demo identifying a specific SQL query which was the root cause.

Project Magna was next up in the demonstrations- this uses AI and ML to optimise application performance- in this example by modifying cache size based on the current workload on the storage device.

CloudHealth was used by Tanzu Tees to analyse the usage of the components of the applications and recommend right-sizing of VMs and produce budget alerts to help proactively manage cloud spend.

The final section- “Experience” – was led by Shikha Mittal who continued the demo heavy theme by showing how Horizon Virtual Desktops sites can be created on both AWS and Azure clouds and use on-premises style images alongside the Microsoft Windows Virtual Desktops deployments of Windows 10.

VMware Workspace One was shown managing a variety of end user devices, and connecting to Carbon Black to spot anomalies in usual device behaviour, for example spotting malicious logins and potentially compromised endpoints. Again VMware uses this internally for their 60,000 endpoints across the globe.

The new CTO of VMware, Greg Lavender, closed out the presentations talking through some of the forward-looking activities of his office including using Bitfusion appliances to provide GPU resources across a network thus sharing a pool of GPU resources amongst a CPU-only ESX infrastructure.

In summary this was a session full of product demonstrations- definitely worth a watch or picking out the bits relevant to you. You can now tune into the full keynote (1 hour) on Youtube.

246520-vmworld2019-contentcatalog-eu-blank-1600x250

Azure Arc Announcement

Microsoft released an 87 page “Book of New” listing the announcements  from this weeks Ignite Conference and right at the top is Azure Arc. It’s not just alphabetical order that put’s this new product here, in my opinion this is a real step forward by Microsoft towards fulfilling the early promise of their Azure Hybrid Cloud model.

Arc’s first feature provides the ability to run Azure data services – Azure SQL Server and friends- on any platform, be it on-premises, on an edge device, or in the public cloud. We saw VMware advertising this from their point of view in the VMworld Europe keynote this week. Bringing Platform-As-A-Service to your own platform, or those at another cloud provider, is an interesting concept and vital to the idea of a true hybrid environment where you can run any app on any cloud.

Whilst Azure stack provided “Azure consistent hardware” in your datacentre, Azure Arc continues this journey – in essence expanding what “Azure consistent” means to the customer in terms of data services.

Azure Arc also extends the security, governance and management from Azure into other environments – coming back to a single architecture.

Azure hybrid innovation anywhere infographic

For me this is the key feature of this technology. With Azure Arc sitting at the heart of the Azure Hybrid model we’re one step closer to that utopia where the datacentre is abstracted away in the same way that virtualisation abstracted away the server hardware. You can do this abstraction in the public clouds, but there are still workloads that have regulatory, financial, or technical reasons for staying on-premises (or even a different public cloud) and until now managing these alongside Azure has meant two different platforms.

 image

Previously Azure Stack (and to a certain extent Azure Stack HCI) came close to providing this true hybrid functionality for Microsoft but there was still a disconnect- you have to visit a separate Azure portal to manage your on-premises Azure Stack “Region” for example.

In the Arc environment, an Azure agent is deployed to non-Azure VMs (or physical servers) and then they appear on the Azure Portal as a regular resource. Policies can be applied and compliance audited (remediation is expected in the “next few months”). The people in your Security Team who got excited about what was possible with Policies in Azure can now apply the same policy features to VMs in your datacentre and from the same interface.

image

As I implied above, this is still a journey in progress and I believe Microsoft have further to travel down this roadmap, but this is definitely a big step along their way and provides very useful features now and promise of an even brighter future.

As you would expect, there’s a number of recorded sessions at Microsoft Ignite 2019 covering this new product following it’s announcement in the keynotes. If you’re interested in finding out more I would suggest starting with BRK2208 : Introducing Azure Arc. Azure Arc is currently available in Preview and usable from the portal today.

image

VMworld Europe 2019-Day 1 Keynote Highlights

VMworld Europe is happening in Barcelona this week, and today saw the annual Tuesday keynote start the morning off. I’m not amongst the 14,000 attendees from 111 countries at the event this year, so I’m recapping the highlights from the comfort of the sofa thanks to the online broadcast.

PG-Welcome-VMworld2019As has become normal for this European keynote, Jean-Paul Brulard (Senior VP and GM for VMware EMEA) welcomed the audience and introduced CEO Pat Gelsinger to deliver the core of the session. Pat focused on how digital technology has permeated all areas of our life and looked into the future to see how technologies such as AI and 5G will continue to accelerate this development.

VMware’s vision of Any Device, Any Application, and Any Cloud continues to be refined year on year- and the show looked at how VMware works to help provide consistence to the technologists trying to master the breadth of applications, clouds,  and devices in the modern world.

The product features started with Joe Beda being brought onstage to talk Kubernetes. VMware’s new Tanzu portfolio of products is designed to help build, run, and manage Kubernetes in the enterprise and is sold as a product to help both developers and IT. This section included the announcement of the betas of  Project Galleon which takes the Bitnami catalogue to the enterprise and Project Pacific which is vSphere rearchitected with Kubernetes at it’s core. VMware’s Tanzu Mission Control product which helps manage Kubernetes deployments on any platform has reached Private Beta.

image

In the hybrid cloud arena, VMware Cloud Director Service has been introduced to allow the 4000 VMware Cloud Provider Partners (VCPP) to provision the infrastructure from the hyperscale clouds to their customers. This is available on AWS and IBM clouds today and expected in Azure by the end of the year.

The VMware on AWS platform is continuing to be developed- now available in 4 times the number of regions that it was a year ago, and the Outposts product getting closer to being delivered which will open up AWS zones in customer datacentres. When Tanzu ships next year it will be also feature on the VMWonAWS platform.

rJr0l480_400x400Microsoft also got a mention, VMware are partnering there to provide the HCX migration tools on Azure, and integrating Workspace One with Microsoft Endpoint Manager. Azure SQL 2019 on VMware vSphere is an interesting concept- providing the public cloud database service but on-premises.

Staying on-prem, the private cloud is covered with VMware Cloud on Dell EMC is now available – this couples VMware Cloud Foundation with Dell’s VXRail hardware to provide Datacentre-as-a-Service.

NSX, the “secret sauce” of previous VMworld keynotes, continues to develop- the acquisition of AVI Networks providing load balance capabilities and software-defined intrusion detection to bring features only seen within the datacentre in special purpose devices or next-gen firewalls right down into the hypervisor and adjacent to the applications.

Sanjay Poonen (COO) interspersed customer chats in amongst the presentation and towards the end took centre stage to discuss VMware’s security stance.  Their strategy is to provide proactive security whilst tying the network security, endpoint security, cloud security, identity, and analytics together. The Carbon Black acquisition closed between the US and Europe events and this technology will be layered into vSphere, Workspace One, and NSX, providing agentless antivirus protection and threat detection.

There’s a wide range of announcements here- and whilst a lot of the content is similar to the US event back in August, albeit further along the roadmap- it sets up for a good week in Barcelona. You can tune in to the full keynote (1 hour 48 minutes) on Youtube.

246520-vmworld2019-contentcatalog-eu-blank-1600x250