Showing posts with label Tobias Zimmergren. Show all posts
Showing posts with label Tobias Zimmergren. Show all posts

Wednesday, April 10, 2019

Azure DevOps (VSTS) - The current operating system is not capable of running this task, with "Azure File Copy"

During daily operations and work in Azure DevOps, one of the many things I'm doing is building Docker images and doing related tasks. Since I run everything on Linux, and the Hosted Ubuntu linux agent is ridiculously fast, I'm using that for all my tasks in my pipelines.

Unfortunately, if you want to use the Azure File Copy task, you're out of luck. It is not supported on Linux currently (but should be eventually). You might end up with this error:

The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.

So that's that. Either I go back to a Windows agent for this/these specific tasks,

... Read the full post on https://zimmergren.net/azure-devops-vsts-current-operating-system-not-capable-of-running-this-task-linux/

by Tobias Zimmergren via Zimmergren

Wednesday, March 27, 2019

Developing using Azure Dev Spaces with Azure Kubernetes Services

Last year Microsoft introduced a preview of something known as Azure Dev Spaces for Azure Kubernetes Services (AKS). To follow suite with my previous posts around container workloads for developers, I'll make examples with C# .NET Core and we'll run the containers in AKS - this time using Dev Spaces for easier local development efforts. Tag along to learn what it's all about and how to test, implement and iterate quicker.

2019-03-26: Azure Dev Spaces is currently in preview and there might be things that change along the way as it matures into GA.

Pre-requisites and tooling

In order to successfully tag along with the examples below, I suggest that you prepare your tool baskets with the proper tools.

... Read the full post on https://zimmergren.net/azure-dev-spaces-aks-kubernetes-services-visual-studio/

by Tobias Zimmergren via Zimmergren

Friday, March 22, 2019

Protecting your Azure Container Registry by denying all requests except from allowed IP addresses

With Azure Container Registry, or ACR, we get a lot of great capabilities to host our Docker images in the Azure cloud. With that, as with everything else, comes security concerns we should not overlook.

In this post I'm exploring how we can lock down all access to our ACR by default, and then enable access based on an IP address or range of IP addresses.

This is similar to what I've already explained in another post about Secure your Azure Storage Accounts with restrictions based on public IP addresses. If you haven't seen that, take a look there how to learn to protect the storage accounts the same way.

Note 2019-03-20: This feature is currently in Preview for ACR.
That said, it's an important
... Read the full post on https://zimmergren.net/protect-azure-container-registry-deny-traffic-whitelist-firewall/

by Tobias Zimmergren via Zimmergren

Monday, March 18, 2019

Building a .NET Core API, host it in Azure Container Instances from a private Container Registry and enable HTTPS using Application Gateway

Introduction

Tobias Zimmergren (Microsoft MVP) and Jussi Roine (Microsoft Regional Director and MVP), are teaming up to discuss and break down various scenarios and how to get started on your own journey into container-land.

This post is about hosting a public .NET Core C# API inside of a container (ACI), whose image is pulled from a private container registry (ACR) - and enable secure transfer with HTTPS using Application Gateway.

What will we cover in this post?

  • Learn how to build a C# API that is suitable for container deployment.
  • Learn how to create and publish your container image to Azure Container Registry directly from Visual Studio
  • Learn how to utilize Azure Container Instances to host your containers
  • Use Azure Application Gateway to enable HTTPS
... Read the full post on https://zimmergren.net/azure-container-instances-dotnet-core-api-application-gateway-https/

by Tobias Zimmergren via Zimmergren

Tuesday, May 22, 2018

What's new in SharePoint Online, Microsoft 365 and SharePoint Server 2019

This week, the big event of the year is happening in the SharePoint space. SharePoint Conference in Las Vegas. During a couple of days from May 21 to May 23, Microsoft and some world-class speakers are announcing exciting news and features that are happening in the SharePoint space.

This blog post aims to give a recap of the most interesting announcements and features we've learnt about so far.

First off - the introductory stats about SharePoint is pretty incredible. I remember back in 2006 when I started my journey in the SharePoint landscape. A LOT has happened since!

  • 400 000 organizations are on SharePoint
  • 70% of all seats are in the cloud
  • 135 million active users in Microsoft 365

Compare this to when BPOS launched its first preview about 9 years ago ;)
https://twitter.com/zimmergren/status/974383219939467264

Anyway, here's some of the recent announcements I really liked from the first day of the conference along with some of my thoughts.

General SharePoint Updates

List Creation is getting a major update

I am fairly certain that anyone working with lists and libraries on a daily basis will find these announcements very welcome. List creation is getting a major update, and allows for a more powerfull and easy list creation process.

Copy and Paste from Excel into a SharePoint List. YES!

One of the things that was announced is the simplicity and ease of which you can now copy rows from an Excel-sheet directly into a SharePoint list. Good bye old datasheet views, welcome native support for copy-paste from Excel.

I don't think I have to explain how much we've wanted to see this capability come true, and become easier than ever before. Well done Microsoft. Now let's hope it's as good in action as it is in the demo.

Row formatting coming to lists

As Maarten pointed out, Lists will also come with other new capabilities like row formatting to easier make your lists render the data as you want them to.

Tag Pages with Metadata

Dan Holme announced that SharePoint will get tagging of pages with metadata. It does indeed look pretty slick and simple.

Updated SharePoint Mobile experience/app

Improved file activity, usage tracking and stats for files

Image analysis in SharePoint

One pretty interesting feature is the new image analysis. Images uploaded into Microsoft 365 will automatically be scanned (and possibly recognized).

imganalysis

Administration

SharePoint Admin Center - Revamped

This is very welcome news. The Admin Center for SharePoint Online has for a long time been pretty bad. Really bad, in many ways. With the recent announcements for an improved admin center (which we've been able to test a bit already), they also announced a -very- welcome addition: Better Site Management!

Development and Extensibility

Dynamic Data and Azure-Connected Web Parts

Creating engaging pages using connected web parts and extensions. This is what the messaging was for some new improvements in the extensibility model of SharePoint. I'm really excited about seeing this in action, and to see this come full-circle. Developers today can leverage many technologies, and the easier it becomes to integrate with data and services in the Azure stack, the lower the bar becomes for new developers to embrace these new workloads. This is good news.

Automatically run scripts when joining a Hub site

When you join a site to a hub site, it by default inherits the theme of the hub site. With the recent announcements, new capabilities will offer Site Scripting methods to help with things like:

  • Enforced permissions
  • Shared metadata
  • Preferred content management
  • Brand elements
  • Policies

See the link section at the end of this post for references and more information.

Mixed Reality (MR) in SharePoint

SharePoint Spaces has been announced

SharePoint Spaces was announced. I guess my only comment on this right now is to see where the train goes.

SharePoint Server

SharePoint Server 2019 goes GA during the fall 2018

Microsoft announced that SharePoint Server 2019 will hit GA by fall 2018. Exciting news for anyone who is still running their SharePoint deployments in-house and on-premises.

Communication sites comes SharePoint Server 2019

The "Modern Experience" isn't just about running in the cloud anymore. With SharePoint Server 2019, communication sites can now also be created and configured on-prem.

SharePoint Server 2019 gets the best from Office 365

As Bill Baer says, Microsoft is using the cloud as a baseline - and brings the best things over to SharePoint Server 2019 as well.

Things like:

  • Communication Sites
  • Team News
  • Modern Team Sites (and thus, modern Lists and Libraries)
  • SharePoint Home
  • Next Generation Sync Client (NGSC) for OneDrive
  • Better Hybrid support
  • PowerApps and Flow support

While I live in the cloud most of my time, a lot of organizations I talk to are still on-prem, and these announcements will probably be pleasing to hear.


by Tobias Zimmergren via Zimmergren

Friday, March 16, 2018

Azure Tip: Installing and using the Azure CLI in VSCode

1. Install the Azure CLI Tools extension in vscode

Install Azure CLI Tools extension in VSCode

If you don't already have the Azure CLI installed, you can open the link to the landing page directly from vscode (or use the link above):

Run the AzureCLI Install Command

Choose your platform and install.

2. Start working with the Azure CLI Tools extension in vscode

Once this extension is installed, it's pretty straight forward to get started. I have a lot of files, configurations and common commands that I run on a daily basis with my production and dev tenants; With the support of vscode and the integrated CLI it's easier to ensure correctness in these commands.

2.1 An example: Define an .azcli file

The vscode extension supports the .azcli extension, and if you open a file with this extension inside vscode you'll get all the juice and goodness. Here's an example.

Create an azcli file and see the results

Now we've got intellisense directly from the editor. Neat.

But it's not only intellisense for the commands, it's intellisense for your actual resources in Azure too - it'll look it up for you while you're typing, so if you're for example trying to execute the get-version command for an AKS cluster, you don't have to by-heart know the full resource group name and cluster name (and the same obviously goes for any resource in Azure):

Intellisense on actual resources in Azure

Now, you can chose to run your command in the Terminal or in the Editor. I usually execute it in the Terminal (see the shortcut commands for each in the picture below), but sometimes when I need to grab the JSON result, it is very convenient to run it in the Editor.

Run in Terminal or Editor

Run an azcli command in Terminal

In order to get the output directly in the Terminal, all you'll have to do is to execute the "Run Line in Terminal" command; Either by using shortcuts or from the menus. Whatever floats your boat.

Azure CLI executed in Terminal

Great, quick and easy - superb for troubleshooting and I use this a lot.

Run an azcli command in Editor

But, what is this running in Editor thing? Well, I use this when I need to quickly grab the JSON result of my query and use in any documentation, additional configuration files or REST queries I may need to execute using other means.

Choose the other run option to run in Editor, and you'll get a side by side Editor with first the command being executed, and after a few short moments you'll see the result:

Command running in Editor

Command result in Editor

Documentation on mouse-over

Simple things made easier: Now you can just mouse-over any element in the file and it'll display the up to date documentation about this command:

Mouse-over documentation in AzureCLI in VSCode

That's a wrap for this short tip. I hope you'll find it as beneficial as I am when working with the CLI on a daily basis.

Cheers,
Tobias.


by Tobias Zimmergren via Zimmergren

Tuesday, March 13, 2018

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

I recently got a question about how to use the Bash CLI instead of the Windows-based CMD experience, but remaining in Windows and not have to set up virtual machines or other computers.

The Azure team is doing an awesome job in expanding the functionality in the Azure CLI, and this goes cross-platform. It's pretty straight forward, and since I was asked I'll outline the steps here for future reference.

1. Enable the Windows Subsystem for Linux on Windows 10

The first thing we need to do on our Windows 10 box is to enable the Linux Subsystem, which is done from the Windows Fetures dialogue:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Once enabled, ensure you reboot your machine. (You know - Windows, rebooting and all that jazz...)

2. Install the Ubuntu app from the Microsoft Store

Once the feature is enabled, we'll find bash.exe on the Start Menu. Launching it will give you further instructions, saying you'll need to select a distribution to run on your subsystem:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Head on over to the Microsoft Store, search for Bash for example, and click the App called Ubuntu.

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Click Get:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Et voila! It's installing:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Once it is done, you can install the Azure CLI directly into this distro. Microsoft have detailed instructions about it here.

Just run these commands to set it up:

AZ_REPO=$(lsb_release -cs)  
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \  
     sudo tee /etc/apt/sources.list.d/azure-cli.list

then:

sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893  
sudo apt-get install apt-transport-https  
sudo apt-get update && sudo apt-get install azure-cli  

And we're done:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Run Bash and install Azure CLI

With those few simple steps, we're prepared to take on the Azure CLI using the Ubuntu dist on our Windows 10 box using Bash. Awkward, strange, awesome, ingenious and fun. Right?

As you always do, run your login commands to the Azure CLI:

az login  

If things were setup correctly, you'll see a positive result:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Now you can use the Azure CLI as you normally would on any other system as well, but running in Bash:

Azure Tip: Running the Azure CLI using Bash on Ubuntu, in Windows 10

Resources

Microsoft Docs: Install Azure CLI on Ubuntu or Debian

A complex concept made extremely simple in Windows 10 - hope it'll help someone to get it running quickly.


by Tobias Zimmergren via Zimmergren's thoughts on tech