Tech ONTAP Blogs

What's New with Azure NetApp Files VS Code Extension

SagarGupta
NetApp
99 Views

Overview 

The Azure Netapp Files VS Code extension embeds storage management and optimization workflows directly inside VS Code, so developers and DevOps engineers can provision, inspect, and tune Azure NetApp Files resources without switching context to the Azure portal. It integrates with Azure APIs and Microsoft Entra ID to authenticate, explore NetApp accounts, capacity pools, and volumes, and leverage AI-powered guidance for configuration and optimization. 

  • Browse NetApp accounts, capacity pools, and volumes from an Azure Netapp Files - focused explorer in VS Code. 
  • Use AI-assisted workflows to generate ARM templates, analyze existing environments, and get optimization recommendations inline with your code workflows. 
  • Work across multiple Azure subscriptions within a single tenant, already reducing portal hopping for complex enterprise environments. 

With the latest enhancements, this foundation now extends across tenants and into your application code with language-aware mount snippets. 

 

Multi-Tenant Support: 

Multi-tenant environments are the norm for enterprises, but until now, managing Azure NetApp Files resources across multiple Azure tenants often meant constant sign‑in/out churn and fragmented context. The new multi‑tenant support lets you stay in one VS Code session while working across all your Azure tenants and subscriptions. 

  • One extension, all your tenants: Log into more than just your “home” tenant and seamlessly switch between tenant and subscription contexts in the same VS Code workspace. 
  • Cross-tenant visibility: Analyze and manage Azure NetApp Files volumes across tenants and subscriptions, enabling consistent patterns for performance, data protection, and lifecycle management from one IDE. 
  • Compliance and security alignment: Centrally view how volumes are provisioned across tenants so platform teams can align with tenant‑specific compliance, data residency, and security requirements while still working in dev tooling. 
  • Cost and usage optimization: With multi-subscription and multi-tenant visibility, it becomes easier to spot underutilized capacity, standardize service tiers (Standard/Premium/Ultra). 

The result: no more logging out and back in just to investigate an issue in a different tenant—switch, inspect, and fix directly from VS Code 

 

Context-Aware Mount Code Generation:

The second major capability in this release is language-aware, right‑click mount code generation, designed for teams that move fast and do not want to keep translating documentation examples into their preferred language or framework. Instead of hunting through docs and re‑writing mount commands, you generate production‑ready mount code that matches the language of the file you are editing, then paste and run. 

  • Right‑click integration: From the Azure NetApp Files Explorer, right‑click any volume and choose “Insert mount command” to trigger the workflow. 

image (4).png

  • File type detection: The extension auto‑detects the active file type (for example Python, JavaScript/Node.js, TypeScript, .NET languages, Java, YAML) and tailors the snippet to that language and pattern. 
  • Language coverage: v1.1.0 supports Python (.py), JavaScript (.js), TypeScript (.ts), C# (.cs), Java (.java), and YAML (.yml, .yaml), with syntax that aligns to common best practices for each ecosystem. 
  • Protocol awareness: The workflow understands Azure NetApp Files protocol options such as NFSv3 and NFSv4.1, prompting you where needed so that the generated code matches your chosen protocol and volume configuration. 

You stay in flow: work in a .py file, get Python code; switch to a .ts file, get TypeScript; move to infrastructure YAML, get the right YAML representation for your mount configuration. 

 

How does it work: 

Under the hood, the new “Insert mount command” workflow combines Azure authentication, resource discovery, and code generation into a single guided, low-friction path that ends with a ready‑to‑run snippet in your file. This compresses what used to be multiple trips between Azure Portal, docs, and terminals into one cohesive in‑editor experience. 

 

Typical flow:  

  1. Authentication and context  
  1. The extension validates that you are authenticated against Azure, with the correct subscription selected and tokens refreshed automatically. 
  1. NetApp account and pool selection  
  1. You get a quick‑pick list of NetApp accounts (with names and locations) and then capacity pools (with their service level: Standard, Premium, or Ultra). 
  1. Volume and protocol selection  
  1. From the chosen pool, the extension lists volumes, showing protocol (NFSv3, NFSv4.1) and mount target IPs retrieved directly from Azure APIs. 
  1. Code generation and insertion  
  1. The extension auto‑detects the active file’s language, generates mount commands or connection code tailored to that language and protocol, and inserts the snippet at your cursor position. 
  1. The cursor is then placed after the generated block so you can immediately continue coding; unsupported file types surface a clear warning with a list of supported types. 

From a developer’s perspective, the workflow feels like another refactor or code action: right‑click, pick the volume, confirm protocol, and keep coding with mount logic already in place. 

 

Getting started with v1.1.0:

If your team is already using the Azure NetApp Files VS Code extension, upgrading to v1.1.0 is a straightforward way to centralize multi‑tenant operations and reduce friction when wiring applications to Azure NetApp Files volumes. If you are new to the extension, it is available directly from the Visual Studio Code Marketplace and installs in seconds on any VS Code environment that meets the baseline requirements. 

  • Open VS Code, go to the Extensions view, and search for “Azure NetApp Files” to install or update the extension. 
  • Sign in with Microsoft Entra ID, connect the tenants and subscriptions you manage, and open the Azure NetApp Files Explorer view to start exploring multi‑tenant resources. 
  • Open an application file in one of the supported languages, right‑click an Azure NetApp Files volume, and try “Insert mount command” to see language‑aware mount generation in action. 

 

Learn more:

Public