Azure PowerShell

Azure PowerShell

Azure PowerShell is the product name for the collection of official Microsoft PowerShell modules for managing Azure resources. It requires PowerShell, a command-line shell and scripting language.

You can use Azure PowerShell interactively by running commands from PowerShell or creating and executing scripts that consist of multiple commands.

The Az PowerShell module

The current version of Azure PowerShell is the Az PowerShell module. It's the recommended PowerShell module for managing Azure resources with PowerShell on all platforms including Windows, Linux, and macOS. It includes thousands of commands that control almost every aspect of Azure. The Az PowerShell module is cross-platform.

There are a few different options for using the Az PowerShell module:

  • Azure Cloud Shell: A browser-based shell that allows you to run Azure PowerShell commands without installing anything on your local machine.
  • Local installation: To run commands directly from your terminal, install Azure PowerShell on your local machine.
  • Docker container: Run Azure PowerShell in a Docker container.

Authentication

Azure PowerShell supports several authentication methods. For detailed information about authenticating to Azure from the Az PowerShell module, see Sign into Azure from Azure PowerShell.

Module Design

The Az PowerShell module is a wrapper module for Azure service-related PowerShell modules, usually one module per Azure service, such as Az.Network for Azure networking services and Az.AKS for Azure Kubernetes Service.

The cmdlets in the Az PowerShell module make REST calls to the Azure Resource Manager API. Breaking changes in the Az PowerShell module are limited to twice a year. Many breaking changes at the API level are handled within the cmdlets to prevent the perception of a breaking change.

The Az PowerShell module contains cmdlets for performing both control plane and data plane operations in Azure. You use the control plane to manage resources in your subscription. You use the data plane to control capabilities exposed by your instance of a resource type. For more information, see Azure control plane and data plane.

Output Objects

The cmdlets in the Az PowerShell module produce .NET objects. As with any PowerShell command that produces output, the cmdlets in the Az PowerShell module can be piped to the Get-Member cmdlet to determine what type of object is produced, along with a list of the available properties and methods. For more information, see Query output of Azure PowerShell and Format Azure PowerShell cmdlet output.

The AzPreview PowerShell module

The AzPreview PowerShell module includes all generally available (GA) modules from the Az PowerShell module and all preview modules for managing Azure resources. It isn't recommended for use in production environments since preview modules don't adhere to breaking change policies.

The AzPreview module is always the same version and is released at the same time as the Az PowerShell module.

The AzureRM PowerShell module

While you might find examples online that use the AzureRM PowerShell module, it's the previous generation of Azure PowerShell. It's deprecated, no longer maintained or supported, and not recommended. Commands in the AzureRM PowerShell module use the *-AzureRM* format. For more information, see Overview of the AzureRM PowerShell module.

The Azure PowerShell module

You might also encounter a version of Azure PowerShell named the Azure PowerShell module, which is for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This module isn't recommended for creating new resources as ASM is scheduled for retirement. For more information, see Overview of the Azure PowerShell Service Management module.

Azure PowerShell-related modules

The following PowerShell modules aren't part of Azure PowerShell:

  • Microsoft.Graph
  • Microsoft.Graph.Entra
  • AzureAD PowerShell Module
  • MSOnline PowerShell Module

要查看或添加评论,请登录

NISHI KUMARI的更多文章

  • What is Debt Recovery?

    What is Debt Recovery?

    Debt recovery and debt collection are similar terms with one small, but very important distinction. The difference is…

  • Row-level security (RLS)

    Row-level security (RLS)

    Create roles It's possible to create multiple roles. When you're considering the permission needs for a single report…

  • What is NULL ?

    What is NULL ?

    In Structured Query Language Null Or NULL is a special type of marker which is used to tell us about that a data value…

  • Delta Format

    Delta Format

    The Delta format is a storage format used in data lakes, particularly in the context of Azure Data Factory and Azure…

  • Amazon SageMaker

    Amazon SageMaker

    Amazon SageMaker is a fully managed machine learning (ML) service provided by Amazon Web Services (AWS). It enables…

  • What is SharePoint?

    What is SharePoint?

    SharePoint is a web-based collaborative platform developed by Microsoft, launched in 2001. It is primarily used for web…

  • What is Data Pipeline?

    What is Data Pipeline?

    A data pipeline is a series of processes and tools designed to collect, process, and deliver data from various sources…

  • What is Azure Logic Apps?

    What is Azure Logic Apps?

    Azure Logic Apps, from Microsoft Azure, is a cloud-based Platform-as-a-Service (PaaS) that is used to automate tasks…

  • What is Power Automate

    What is Power Automate

    Microsoft Power Automate is a comprehensive cloud-based automation platform designed to streamline and optimize…

  • Campaign Optimization Techniques

    Campaign Optimization Techniques

    Campaign optimization is a crucial aspect of any marketing strategy, whether it be for a small business or a…

社区洞察

其他会员也浏览了