Deploy web apps, explore resources and more – Introducing the Azure Toolkit for Rider

Today, we are happy to introduce the Azure Toolkit for JetBrains Rider – an open-source plugin that helps .NET developers easily create, develop, configure, test, manage and deploy web apps to Azure directly from within Rider, and work with resources such as storage, Redis cache and virtual machines.

TL;DR: Get the plugin for Rider 2018.2, install it, explore your Azure resources and deploy a Web App!

Microsoft Azure Toolkit for Rider - Manage your Azure Resources and deploy Web Apps

Let’s dive in and look at the Azure Explorer tool window and its functionality, as well as deploying ASP.NET web apps to Azure from within Rider!

Installing the Azure Toolkit for Rider

First of course, we will have to install the Azure Toolkit for Rider plugin. We can do this from the settings, then find Plugins. After clicking Install JetBrains plugin…, we can find the Azure Toolkit for Rider and Install it.

Installing the Azure Toolkit for Rider

Note that currently, this plugin is only available for Rider 2018.2 (a version for Rider 2018.3 EAP will be released soon).

What can the Azure Toolkit for Rider do for me?

After installing the Azure Toolkit for Rider, we can sign in to an Azure account from the Azure Explorer tool window, optionally filtering the subscriptions for which resources will be displayed.

Clicking a node in the Azure Explorer will retrieve its resources. For example, we can list storage accounts and their blob containers, list blobs in that container, and perform tasks like uploading and downloading blobs.

Explore Azure Blob container in Rider

Similarly, for Redis caches, we can use the context menu to retrieve its properties and connection details, or use the Redis explorer to scan for existing keys and retrieve their values.

Redis Explorer scans and retrieves keys and values from Redis in Rider

The following functionality is currently available in the Azure Toolkit for Rider:

  • Sign in to an Azure account and select one or multiple subscriptions
  • Basic management of:
    • Container hosts (create/delete, start/stop, view details, list registries)
    • Redis caches (create/delete, start/stop, view details, list keys/values)
    • Storage accounts (create/delete, list/create/delete blob container, list/upload/download/delete blobs)
    • Virtual machines (create/delete, start/stop, view details)
    • Web apps (create/delete, start/stop, view details, edit settings)
  • Run configuration to deploy ASP.NET web apps (can also provision SQL database)
    • ASP.NET Core web apps (any platform)
    • .NET Framework web apps (Windows)

Missing a feature? Spot a bug? Let us know via our issue tracker (we also welcome contributions!)

Deploying ASP.NET web apps to Azure

Azure Publish to Web App run configurationAt some point during development, we may want to publish our ASP.NET web application to an Azure web app. The Azure Toolkit for Rider comes with a dedicated run configuration which will do just that!

From the Run | Edit configurations… menu (or from the toolbar), we create a new run configuration of the type Azure Publish to Web App.

We can select an existing web app to deploy to, or create a new web app from within Rider. When running this configuration for the first time, Rider will create a new web app in the specified resource group, with the selected operating system, service plan and location.

Configure Azure deployment in JetBrains Rider

In the database connection tab, we can specify connection details for an existing SQL database, or create a new one:

Database connection settings

Important to note here is the connection string name: Rider will generate a connection string that can be used by our application when running as a web app:

Connection string generated by Rider in Azure Portal

The Azure Publish to Web App run configuration can deploy ASP.NET Core web apps (on any platform), and .NET framework web apps (on Windows). Deployment activity and progress will be logged in the Azure Activity Log tool window.

What’s the difference with the Microsoft Azure Toolkit for IntelliJ?

The Azure Toolkit for JetBrains Rider is a fork of the Azure Toolkit for IntelliJ, available on GitHub. One might ask: with Rider being built on top of IntelliJ IDEA, and Microsoft already having released the Azure Toolkit for IntelliJ, why not re-use that one?

As it turns out, the Azure Toolkit for IntelliJ focuses heavily on the Java/JVM ecosystem and development flows. While it is possible to enable it in Rider as well, it doesn’t make a lot of sense. We decided to fork the original plugin, and split its base functionality (such as browsing Azure resources) from the Java/JVM-specific features (such as deploying a .war file to the HDInsight service).

The Azure Toolkit for JetBrains Rider comes with some notable differences:

  • No telemetry or usage data is collected and sent to Microsoft;
  • Icons have been replaced by custom icons, as the original icons are not open-source;
  • Java/JVM-specific functionality was separated and removed;
  • .NET-specific functionality, such as deploying an ASP.NET web application, has been added.

We opened a pull request with Microsoft’s Azure Toolkit for IntelliJ as well, which would contribute this effort back to the original plugin.

What is there to come?

Currently, this plugin is only available for Rider 2018.2. A version for Rider 2018.3 EAP will be released soon, where we plan to add:

  • Display and manage SQL databases in the Azure Explorer tool window (issue)
  • Connect to Azure Cloud Shell (pull request in the works)
  • Work with other Azure resources
  • Feature requests from our issue tracker
  • And if you are up for it, features you contribute

Download Rider 2018.2.3, install the Azure Toolkit and give it a try! We would love to hear your feedback through the comments below, and in our issue tracker.

This entry was posted in How-To's and tagged , , , , , . Bookmark the permalink.

6 Responses to Deploy web apps, explore resources and more – Introducing the Azure Toolkit for Rider

  1. Eli says:

    This is awesome
    You should add slots for web app deploy/preview
    You should also add explore this web app (and then offer to connect via FTP)

  2. Pingback: Dew Drop - October 17, 2018 (#2825) - Morning Dew

  3. Mail4NG says:

    >A version for Rider 2018.3 EAP will be released soon,

    Any news here?

  4. Jon Scolamiero says:

    Some management of CosmosDB would be HUGELY beneficial too.

    Great tool!

Leave a Reply

Your email address will not be published. Required fields are marked *