Category: Powershell

Last updated by at .

Thomas Maurer Supercharging Hyper-V with quantum computing

Speaking at the Hyper-V Community + Hybrid Cloud Community Pre-Day in Germany

I already announced that I will be speaking at the Cloud & Datacenter Conference 2018 in Germany again this year. One day before the conferences starts there is a Pre-Day with the Hyper-V Community and Hybrid Cloud Community, where I will have another session. This session will purely focus on the latest and greats in Hyper-V.

Supercharging Hyper-V with quantum computing

Okay, I am not really talking about quantum computing, but hey there are some cool features in Hyper-V you should definitely know about! In this session Thomas Maurer will talk about 10 hidden Hyper-V features everyone should know about. This covers different features for Hyper-V on Windows Server as well as on Windows 10. Be prepared for a lot of Demos!

The Speaking at the Hyper-V Community + Hybrid Cloud Community Pre-Day will take place on 14th May in Hanau Germany (Close to Frankfurt). I hope to see you there!



Azure Stack Azure Cloud Shell

Connect to Azure Stack from Azure Cloud Shell

A little while ago Microsoft announced the Azure Cloud Shell. The Azure Cloud Shell is a perfect tool to manage your Azure resources using the Azure CLI or Azure PowerShell. Wouldn’t it be great to also manage your resources running on Azure Stack? Thanks to the consistency between Microsoft Azure and Microsoft Azure Stack, you can use the same tools to manage your hybrid cloud.

First of all login to your Azure Cloud Shell on shell.azure.com or in the Azure Portal.

Azure Cloud Shell

After the login you have to register Azure Stack as a new cloud by running the following command:

Azure Stack Cloud List Azure CLI

Now you can list the new Azure Stack cloud by using:

To switch to the Azure Stack Cloud use the following command:

If you are doing this the first time and you use another account you can use az login to login.

One thing you should do is to switch the profile version to an Azure Stack compatible version

Azure Cloud Shell Azure Stack

Now you can start using the Azure CLI in the Azure Cloud Shell to manage your Azure Stack. First of all yes this works also if you just use the Azure CLI. In the case of the Azure Cloud Shell the Azure Stack needs to be accessible from the internet. If your Azure Stack is not accessible from the internet, you can just use the Azure CLI directly from your management machine.

Azure Stack Cloud Shell Visual Studio Code

Fun Fact, since you an also run the Azure Cloud Shell directly in Visual Studio Code, you can also just open up the shell session and start working from Visual Studio Code.

 

 

 



Global Azure Bootcamp Switzerland 2018

Speaking about Azure Stack at the Global Azure Bootcamp Switzerland 2018

I am happy to announce that I will be speaking at this years Global Azure Bootcamp Switzerland 2018. Global Azure Bootcamp Switzerland is a full day conference about the Microsoft Azure Cloud Computing Platform. The event is taking place in Zurich on 21st April 2018. It is free and open for everybody to join.

Around the world, user groups and communities want to learn about Azure and Cloud Computing. On April 21, all communities will come together once again for a great Global Azure Bootcamp event. Each user group will organize their own one day deep dive class on Azure the way they see fit and how it works for their members. The result is that thousands of people get to learn about Azure and join together online under the social hashtag #GlobalAzure.

If you would like to read more about the worldwide movement, please visit: Global Azure Bootcamp

In my session I will speak about Microsoft Azure Stack

Azure Stack - Your Cloud, Your Datacenter

Microsoft released Azure Stack as a Azure appliance for your datacenter. Learn what Azure Stack is, what challenges it solves, how you deploy, manage and operate a Azure Stack in your datacenter. Learn about the features and services you will get by offering Azure Stack to your customers and how you can build a true Hybrid Cloud experience. In this presentation, Thomas Maurer (Microsoft MVP) will guide you through the highly anticipated innovations and experience during the Azure Stack Early Adaption Program and Azure Stack Technology Adoption Program (TAP).

It is going to be a great event, hopefully see you there! The event is already sold out, but if you want to learn more about Azure and Azure Stack in Switzerland, I recommend that you join ExpertsLive Switzerland. But register quickly, there are also only a few tickets left.

 



Hyper-V HVC SSH Direct for Linux VMs

HVC – SSH Direct for Linux VMs on Hyper-V

If you are running Hyper-V on Windows 10 or on Windows Server 2016, you probably know about a feature called PowerShell Direct. I also mentioned that PowerShell Direct is one of the 10 hidden features in Hyper-V you should know about. PowerShell Direct lets you remote connect to a Windows Virtual Machine running on a Hyper-V host, without any network connection inside the VM. PowerShell Direct uses the Hyper-V VMBus to connect inside the Virtual Machine. Of course this feature is really handy if you need it for automation and configuration for Virtual Machines. As this is great for Windows virtual machines, it does not work with Virtual Machines running Linux. In the latest Windows 10, Windows Server 1803 (RS4) and Windows Server 2019 (RS5) Insider Preview builds, Microsoft enabled a tool called HVC. HVC is at tool which allows you to do some command line VM management. HVC SSH is basically SSH Direct of Linux VMs.

This allows to connect to a Linux VM using SSH over the Hyper-V VMBus. You are also able to copy file inside a virtual machines using scp.

How to connect to Linux VMs using SSH Direct

HVC SSH on Hyper-V

To connect to Linux VMs using SSH Direct (HVC) simply type hvc.exe into the command line or PowerShell. This will give you all the possible command options. Of course SSH has to big configured inside the Linux virtual machine.

To make this work, the SSH server inside the VM needs to be configured.

Final Thoughts

Pretty cool tool which will be available in the official releases of Windows 10 and Windows Server 1803, released this spring. Later this year this feature will also be included in Windows Server 2019. If you want to try it out today, give the Windows Insider Preview builds a spin.

Thanks to Ben Armstrong for pointing this out 😉



Azure Stack PowerShell Docker Container

Run Azure Stack PowerShell and Azure Stack Tools in a Docker Container

The Azure Stack Tools is a set of scripts and tools to work with Azure Stack and Azure. If you want to run the Azure Stack Tools you will need to install the Azure Stack compatible Azure PowerShell module. To install that that can be some work and it does not allow to run the side by side today with the latest Azure PowerShell Module. For that I have a simple solution. I created two Docker Containers with preinstalled Azure Stack PowerShell and one with Azure Stack PowerShell and the Azure Stack Tools together.

AzureStack-Tools is a GitHub repository that hosts PowerShell modules for managing and deploying resources to Azure Stack. If you are planning to establish VPN connectivity, you can download these PowerShell modules to the Azure Stack Development Kit, or to a Windows-based external client

Azure Stack PowerShell Docker Container

Azure Stack PowerShell Docker Container

This container contains the Azure Stack PowerShell. To run Azure Stack PowerShell in a Docker Container, just run the following command on your server or PC with Docker installed.

Azure Stack Tools Docker Container

Azure Stack Tools Docker Container

This container contains the Azure Stack PowerShell as well as the Azure Stack Tools. To run Azure Stack Tools in a Docker Container, just run the following command on your server or pc with Docker installed.

Both Images are based on Windows Server Core and depending on the microsoft/windowsservercore Docker images.

This should help you to quickly spin up new Azure Stack Operator Workstations. And it should help you to work and interact with Azure Stack.



My Favorite Visual Studio Code Themes

While I am doing presentations, I often do demos, and since a lot of my demos are PowerShell based, I use a lot of Visual Studio Code. With that I often get the question which is the Visual Studio Code Theme I use. Even I change my Visual Studio Code Themes pretty often, I have a couple of favorites I want to share.

Cobalt2

Visual Studio Code Theme Cobalt2

My current favorite Visual Studio Code Theme is Cobalt2. Cobalt2 is a dark but colorful theme for Visual Studio. I like it because it is a dark theme, but it not uses the classic dark grey background, instead I like the mix of dark blue and yellow.

Atom One Dark

Visual Studio Code Theme Atom One Dark

Atom One Dark is another Dark theme I started to like very much. I like the popping colors on the dark background.

Ayu Mirage – Visual Studio Code Theme

Visual Studio Code Theme Ayu Mirage

The Ayu Themes for Visual Studio are simple, bright and elegant themes. I prefer the Ayu Mirage theme which as I said looks very elegant. The Ayu themes also have other options like the Ayu light which is also one of my favorites.

Dracula

Visual Studio Code Theme Dracula

Dracula is one of the famous Visual Studio Code themes, which is also available on other platforms. When I am not using the Cobalt2 theme, I most often switch to Dracula.

Ayu Light

Visual Studio Code Theme Ayu Light

I mentioned the Ayu Themes before, and this is the light version of it. I am mostly using dark themes, but when I switch to a light theme, I mostly use Ayu Light.

PowerShell ISE

Visual Studio Code Theme PowerShell ISE

If you are coming form PowerShell scripting, you are already familiar with the PowerShell ISE. The PowerShell ISE theme bring you back in to the old school world and even gives you the PowerShell blue background terminal.

There are a lot of other great Visual Studio Code Themes out there. What is your favorite? Let me know in the comments!



Azure Stack

Azure Stack Roadmap – Update 12 February 2018

I often get ask about the Azure Stack roadmap and when new services, features and improvements will be integrated into Microsoft Azure Stack. Microsoft just released some new official update on the Azure roadmap page.

Azure Stack Roadmap

Microsoft listed some new features and improvements like:

  • Azure Stack integrated systems with 16 node scale units
    We are working on increasing the maximum number of nodes in a scale unit to 16 so that Azure Stack operators can configure a larger Azure Stack deployment. This entry applies primarily to an Azure Stack operator.
  • Azure Stack support for Azure Backup
    We’re developing the ability for Azure Stack operators to backup and recover guest OS, data disks, and volumes using Azure Backup. When complete, this new ability will give operators more options when developing a backup strategy for Azure Stack.
  • Azure Stack security—drift detection
    New and updated features are being developed to help Azure Stack operators determine if their Azure Stack integrated system has been tampered with, enhancing the Azure Stack security posture. Additionally, they will be able to remediate if configuration has drifted.
  • Azure Stack security—updated audit collection
    Azure Stack operators will be happy to hear that new and updated features are being developed to ensure Azure Stack integrated systems are “hardened by default,” meaning that since the infrastructure runs on well-defined hardware and software, we enable, configure, and validate security features that are usually left to customers to implement. This work will also include updates to the audit collection logs to better integrate with SIEM systems.
  • Azure Container Service (AKS) on Azure Stack
    Managed Kubernetes with Azure Container Service (AKS) on Azure Stack will make it even easier for Azure Stack users to manage and operate Kubernetes environments in the same ways as they do in Azure, without sacrificing portability. This new service features an Azure-hosted control plane, automated upgrades, self-healing, easy scaling, and a simple user experience for both developers and cluster operators. With Container Service, customers get the benefit of open source Kubernetes without complexity and operational overhead. This update applies primarily to Azure Stack users.
  • Templated Kubernetes deployments
    This work in development will bring support for templated Kubernetes clusters. This will simplify deployment and operations for Azure Stack users by allowing them to deploy the template to Azure or Azure Stack, thereby providing a consistent environment in each cloud. This update applies primarily to Azure Stack users.
  • Templated Service Fabric cluster deployments
    This work in development will bring templated Service Fabric clusters that will simplify deployment and operations for Azure Stack users. Once deployed, Azure Stack users will be able to manage Service Fabric clusters, applications, and services through PowerShell, the Service Fabric CLI, or the open source Service Fabric Explorer just as you can in Azure. This update applies primarily to Azure Stack users.
  • Azure Stack support for Azure Site Recovery
    With this work in development, Azure Stack operators will have more site recovery options by be able to take advantage of Azure Site Recovery to replicate and failover guest OS and data disks to Azure. This entry applies primarily to an Azure Stack operator.
  • Azure Stack infrastructure backup and cloud recovery
    We’re developing enhancements for Azure Stack that will simplify infrastructure backup by eliminating the need for manual operator intervention. These enhancements will include the enablement of operator-driven validation of cloud recovery. This post applies primarily to Azure Stack operators.
  • Managed Disks in Azure Stack
    Azure Managed Disks simplifies disk management for Azure VMs by managing the storage accounts associated with the VM disks. You only have to specify the type (Premium or Standard) and the size of disk you need, and Azure creates and manages the disk for you. This work will bring more options and simplicity to Azure Stack users when working with VMs. This update applies primarily to Azure Stack users.
  • Av2-series and F-series virtual machines in Azure Stack
    We’re working on bringing Av2-series and F-series virtual machines (VM) to Azure Stack so that users can create them when building and deploying applications. Av2 is popular for development and test scenarios, while the F-series provides more cores with lesser memory requirement than the D-series. Learn more about Azure VM sizes and Azure Stack Virtual Machines.
  • Expanded VPN Gateway interoperability
    We’re expanding support for the VPN Gateway to allow Azure Stack users greater flexibility with their settings. Once available, this will allow users to configure their own settings so that they can establish a VPN tunnel with the older devices they have in their datacenter, without requiring them to upgrade these devices.
  • Azure Storage API version 2017-04-17 updated in Azure Stack
    We’re working on bringing the 2017-04-17 version of the Azure Storage API to use in Azure Stack. When ready, this will enable Azure Stack users to perform URL-to-URL copies, simplifying the movement of data between Azure and Azure Stack. This update applies primarily to Azure Stack users, but will be beneficial to any user looking to create hybrid applications that span Azure and Azure Stack.
  • Ability to incrementally add capacity to Azure Stack
    We’re now working on adding the ability for Azure Stack operators to add a node to an existing Azure Stack scale unit within the supported scale unit limits. This will enable Azure Stack operators to increase the capacity of a single Azure Stack, and specifics should be discussed with hardware partners.
  • Azure Stack integrated systems support for multiple scale units
    For customers who want larger Azure Stack integrated systems, we’re working on adding support to have multiple scale units in an Azure Stack integrated system. This applies primarily to Azure Stack operators, and will enable them to increase the capacity of a single Azure Stack.
  • Azure Stack operator experience feature updates
    Azure Stack operators can configure Azure Stack and manage offers, plans, services, quotas, and pricing to provide resources for their users. Azure Stack operators also manage capacity and can respond to alerts. We’re developing new and updated features for the monitoring, diagnostics, and servicing experiences to ensure Azure Stack operators can keep the Azure Stack integrated system running and healthy. These include:Investments in infrastructure servicing to minimize tenant downtime.
    Improved alerting and remediations to allow the operator to maintain system health.
    Updated diagnostics for better troubleshooting.
    Continued investments in the Operator UX and Operator PowerShell.
  • Azure Stack Infrastructure—compliance certification guidance
    We’re creating documentation to describe how Azure Stack infrastructure satisfies regulatory technical controls for PCI-DSS and CSA-CCM. Azure Stack operators will be able to use this documentation to simplify the processes that companies go through when working with governing bodies. Check back for more information as the documentation is developed.
  • Display virtual machines prices in Azure Stack portal
    Work is currently in development to allow Azure Stack operators the ability to configure the virtual machine pricing and display it in the Azure Stack portal. This will provide additional flexibility when creating plans, offers, and managing subscriptions. Check back with this blog to see developments as work progresses, and get more information.

You can see Microsoft is going to work on a lot of great improvements for Azure Stack. If you want to know more about Azure Stack, check out my blog post:

Microsoft Azure Stack – Azure Extension in your Datacenter