Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of Microsoft Azure PowerShell (Az PowerShell Module) available.

Microsoft Azure PowerShell (Az PowerShell Module)

2.5.0

Package test results are passing.

This package was approved by moderator gep13 on 8/26/2019.

Contains PowerShell cmdlets for developers and administrators to develop, deploy, and manage Microsoft Azure applications.

You can pass the following parameters:

  • /core - Installs the module in the AllUsers scope for PowerShell Core;
  • /desktop - Installs the module in the AllUsers scope for Windows PowerShell (ie. Desktop Edition);

You can pass both /core and /desktop parameters to install on both. If you pass no parameters then /desktop is assumed.

NOTE: This module runs on Windows PowerShell with .NET Framework 4.7.2 or greater, or PowerShell Core.

NOTE: This Az module replaces AzureRM. You should not install Az side-by-side with AzureRM.

NOTE: This is an automatically updated package. If you find it is out of date by more than a week, please contact the maintainer(s) and let them know the package is no longer updating correctly.

To install Microsoft Azure PowerShell (Az PowerShell Module), run the following command from the command line or from PowerShell:

C:\> choco install az.powershell --version 2.5.0

To upgrade Microsoft Azure PowerShell (Az PowerShell Module), run the following command from the command line or from PowerShell:

C:\> choco upgrade az.powershell --version 2.5.0

Files

Hide
  • tools\.skipAutoUninstaller
  • tools\az.zip Show
    md5: 814641BAC165DB47CB7A2A4860704E7B | sha1: 8D37A717FADF7717717CEE7D5B87F56A6AAEF424 | sha256: 5D75B1BEA26BC3FE69FFEB9AB7A4B62D3DE76B0DC1B6A9578CB80D0BD51488A9 | sha512: EA1BE8D03A97FB5C6984487D89408CA1D54860784C6640A81DAA1784A5BFF0FF6597F19B987295BDA2CEAB68869CB148ABF3A5A10613E2B200544B787188CFF7
  • tools\chocolateyBeforeModify.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $moduleName = 'az'    # this could be different from package name
    $toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
    $depModulesPath = Join-Path $toolsdir -ChildPath 'dependent.modules'
    
    $modules = Get-Content -Path $depModulesPath
    ForEach ($m in $modules) {
        Remove-Module -Name $m -Force -ErrorAction SilentlyContinue
    }
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
    $moduleName = 'az'  # this may be different from the package name and different case
    $moduleVersion = $env:ChocolateyPackageVersion  # this may change so keep this here
    $savedParamsPath = Join-Path $toolsDir -ChildPath 'parameters.saved'
    $depModulesPath = Join-Path $toolsdir -ChildPath 'dependent.modules'
    
    # module may already be installed outside of Chocolatey
    Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
    
    # remove the saved parameters file if it exists
    if (Test-Path -Path $savedParamsPath) {
        Remove-Item -Path $savedParamsPath -Force
    }
    
    $params = Get-PackageParameters
    
    # Taken from the AZ.psm1 script module - allows us to detect thgis at installatin rather than after
    function Test-DotNet {
        try {
            if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | where { $_ -ge 461808 }))) {
                throw ".NET Framework versions lower than 4.7.2 are not supported in Az.  Please upgrade to .NET Framework 4.7.2 or higher."
            }
        }
        catch [System.Management.Automation.DriveNotFoundException] {
            Write-Verbose ".NET Framework version check failed."
        }
    }
    
    if ($params.Desktop) {
        if ($PSVersionTable.PSVersion -lt [Version]'5.1') {
            throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher."
        }
    
        Test-DotNet
    }
    
    $sourcePath = Join-Path -Path $toolsDir -ChildPath "$modulename.zip"
    $destinationPath = @()
    if ($params.Desktop -or (-not $params.Core)) {
        $destinationPath += Join-Path -Path $env:ProgramFiles -ChildPath "WindowsPowerShell\Modules\"
    }
    
    if ($params.Core) {
        $destinationPath += Join-Path -Path $env:ProgramFiles -ChildPath "PowerShell\Modules\"
    }
    
    ForEach ($destPath in $destinationPath) {
        Write-Verbose "Installing '$modulename', and all of it's dependent modules, to '$destPath'."
    
        # check destination path exists and create if not
        if (Test-Path -Path $destPath) {
            $null = New-Item -Path $destPath -ItemType Directory -Force
        }
        Get-ChocolateyUnzip -FileFullPath $sourcePath -Destination $destPath -PackageName $moduleName
    
        # save the locations where the module was installed so we can uninstall it
        Add-Content -Path $savedParamsPath -Value $destPath
    }
    
    # cleanup the module from the Chocolatey $toolsDir folder
    Remove-Item -Path $sourcePath -Force -Recurse
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
    $moduleName = 'az'  # this may be different from the package name and different case
    $savedParamsPath = Join-Path $toolsDir -ChildPath 'parameters.saved'
    $depModulesPath = Join-Path $toolsdir -ChildPath 'dependent.modules'
    
    if (Test-Path -Path $savedParamsPath) {
        $removePath = Get-Content -Path $savedParamsPath
    }
    else {
        $removePath = Join-Path -Path $env:ProgramFiles -ChildPath "WindowsPowerShell\Modules\"
    }
    
    ForEach ($path in $removePath) {
        if (-not (Test-Path -Path $depModulesPath)) {
            Write-Error "Cannot find the list of dependent modules to remove at '$depModulesPath'. Cannot uninstall."
        }
    
        Get-Content -Path $depModulesPath | ForEach-Object {
            $pathToRemove = Join-Path -Path $path -ChildPath $_
            Write-Verbose "Removing all version of '$_' from '$pathToRemove'."
            Remove-Item -Path $pathToRemove -Recurse -Force -ErrorAction SilentlyContinue
        }
    }
  • tools\dependent.modules
  • tools\LICENSE.txt Show
    From: https://github.com/Azure/azure-powershell/blob/master/LICENSE.txt
    
    MICROSOFT SOFTWARE LICENSE TERMS
    
    MICROSOFT AZURE POWERSHELL
    
    These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any.
    
    BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
    
    
    -----------------START OF LICENSE--------------------------
    
                                     Apache License
                               Version 2.0, January 2004
                            http://www.apache.org/licenses/
    
       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    
       1. Definitions.
    
          "License" shall mean the terms and conditions for use, reproduction,
          and distribution as defined by Sections 1 through 9 of this document.
    
          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.
    
          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
          direction or management of such entity, whether by contract or
          otherwise, or (ii) ownership of fifty percent (50%) or more of the
          outstanding shares, or (iii) beneficial ownership of such entity.
    
          "You" (or "Your") shall mean an individual or Legal Entity
          exercising permissions granted by this License.
    
          "Source" form shall mean the preferred form for making modifications,
          including but not limited to software source code, documentation
          source, and configuration files.
    
          "Object" form shall mean any form resulting from mechanical
          transformation or translation of a Source form, including but
          not limited to compiled object code, generated documentation,
          and conversions to other media types.
    
          "Work" shall mean the work of authorship, whether in Source or
          Object form, made available under the License, as indicated by a
          copyright notice that is included in or attached to the work
          (an example is provided in the Appendix below).
    
          "Derivative Works" shall mean any work, whether in Source or Object
          form, that is based on (or derived from) the Work and for which the
          editorial revisions, annotations, elaborations, or other modifications
          represent, as a whole, an original work of authorship. For the purposes
          of this License, Derivative Works shall not include works that remain
          separable from, or merely link (or bind by name) to the interfaces of,
          the Work and Derivative Works thereof.
    
          "Contribution" shall mean any work of authorship, including
          the original version of the Work and any modifications or additions
          to that Work or Derivative Works thereof, that is intentionally
          submitted to Licensor for inclusion in the Work by the copyright owner
          or by an individual or Legal Entity authorized to submit on behalf of
          the copyright owner. For the purposes of this definition, "submitted"
          means any form of electronic, verbal, or written communication sent
          to the Licensor or its representatives, including but not limited to
          communication on electronic mailing lists, source code control systems,
          and issue tracking systems that are managed by, or on behalf of, the
          Licensor for the purpose of discussing and improving the Work, but
          excluding communication that is conspicuously marked or otherwise
          designated in writing by the copyright owner as "Not a Contribution."
    
          "Contributor" shall mean Licensor and any individual or Legal Entity
          on behalf of whom a Contribution has been received by Licensor and
          subsequently incorporated within the Work.
    
       2. Grant of Copyright License. Subject to the terms and conditions of
          this License, each Contributor hereby grants to You a perpetual,
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
          copyright license to reproduce, prepare Derivative Works of,
          publicly display, publicly perform, sublicense, and distribute the
          Work and such Derivative Works in Source or Object form.
    
       3. Grant of Patent License. Subject to the terms and conditions of
          this License, each Contributor hereby grants to You a perpetual,
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
          (except as stated in this section) patent license to make, have made,
          use, offer to sell, sell, import, and otherwise transfer the Work,
          where such license applies only to those patent claims licensable
          by such Contributor that are necessarily infringed by their
          Contribution(s) alone or by combination of their Contribution(s)
          with the Work to which such Contribution(s) was submitted. If You
          institute patent litigation against any entity (including a
          cross-claim or counterclaim in a lawsuit) alleging that the Work
          or a Contribution incorporated within the Work constitutes direct
          or contributory patent infringement, then any patent licenses
          granted to You under this License for that Work shall terminate
          as of the date such litigation is filed.
    
       4. Redistribution. You may reproduce and distribute copies of the
          Work or Derivative Works thereof in any medium, with or without
          modifications, and in Source or Object form, provided that You
          meet the following conditions:
    
          (a) You must give any other recipients of the Work or
              Derivative Works a copy of this License; and
    
          (b) You must cause any modified files to carry prominent notices
              stating that You changed the files; and
    
          (c) You must retain, in the Source form of any Derivative Works
              that You distribute, all copyright, patent, trademark, and
              attribution notices from the Source form of the Work,
              excluding those notices that do not pertain to any part of
              the Derivative Works; and
    
          (d) If the Work includes a "NOTICE" text file as part of its
              distribution, then any Derivative Works that You distribute must
              include a readable copy of the attribution notices contained
              within such NOTICE file, excluding those notices that do not
              pertain to any part of the Derivative Works, in at least one
              of the following places: within a NOTICE text file distributed
              as part of the Derivative Works; within the Source form or
              documentation, if provided along with the Derivative Works; or,
              within a display generated by the Derivative Works, if and
              wherever such third-party notices normally appear. The contents
              of the NOTICE file are for informational purposes only and
              do not modify the License. You may add Your own attribution
              notices within Derivative Works that You distribute, alongside
              or as an addendum to the NOTICE text from the Work, provided
              that such additional attribution notices cannot be construed
              as modifying the License.
    
          You may add Your own copyright statement to Your modifications and
          may provide additional or different license terms and conditions
          for use, reproduction, or distribution of Your modifications, or
          for any such Derivative Works as a whole, provided Your use,
          reproduction, and distribution of the Work otherwise complies with
          the conditions stated in this License.
    
       5. Submission of Contributions. Unless You explicitly state otherwise,
          any Contribution intentionally submitted for inclusion in the Work
          by You to the Licensor shall be under the terms and conditions of
          this License, without any additional terms or conditions.
          Notwithstanding the above, nothing herein shall supersede or modify
          the terms of any separate license agreement you may have executed
          with Licensor regarding such Contributions.
    
       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.
    
       7. Disclaimer of Warranty. Unless required by applicable law or
          agreed to in writing, Licensor provides the Work (and each
          Contributor provides its Contributions) on an "AS IS" BASIS,
          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
          implied, including, without limitation, any warranties or conditions
          of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
          PARTICULAR PURPOSE. You are solely responsible for determining the
          appropriateness of using or redistributing the Work and assume any
          risks associated with Your exercise of permissions under this License.
    
       8. Limitation of Liability. In no event and under no legal theory,
          whether in tort (including negligence), contract, or otherwise,
          unless required by applicable law (such as deliberate and grossly
          negligent acts) or agreed to in writing, shall any Contributor be
          liable to You for damages, including any direct, indirect, special,
          incidental, or consequential damages of any character arising as a
          result of this License or out of the use or inability to use the
          Work (including but not limited to damages for loss of goodwill,
          work stoppage, computer failure or malfunction, or any and all
          other commercial damages or losses), even if such Contributor
          has been advised of the possibility of such damages.
    
       9. Accepting Warranty or Additional Liability. While redistributing
          the Work or Derivative Works thereof, You may choose to offer,
          and charge a fee for, acceptance of support, warranty, indemnity,
          or other liability obligations and/or rights consistent with this
          License. However, in accepting such obligations, You may act only
          on Your own behalf and on Your sole responsibility, not on behalf
          of any other Contributor, and only if You agree to indemnify,
          defend, and hold each Contributor harmless for any liability
          incurred by, or claims asserted against, such Contributor by reason
          of your accepting any such warranty or additional liability.
    
    -------------------END OF LICENSE------------------------------------------
    
    
    ----------------START OF THIRD PARTY NOTICE--------------------------------
    
    
    The software includes the AutoMapper library ("AutoMapper").  The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
    
    Provided for Informational Purposes Only
    
    AutoMapper
    
    The MIT License (MIT)
    Copyright (c) 2010 Jimmy Bogard
    
    
    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    
    ***************
    
    The software includes Newtonsoft.Json. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software.
    
    Newtonsoft.Json
    
    The MIT License (MIT)
    Copyright (c) 2007 James Newton-King
    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    
    -------------END OF THIRD PARTY NOTICE----------------------------------------
    
    
  • tools\VERIFICATION.txt Show
    VERIFICATION
    
    To verify the files using the project source:
    
    1. Please go to the project source releases location (https://github.com/Azure/azure-powershell/releases) and download the source files;
    2. Use Get-FileHash -Path <FILE TO VERIFY> to get the file hash value from both the built file (from step 1 above) and the file from the package and compare them;
    
    Alternatively you can download the module from the PowerShell Gallery ...
    
        Save-Module -Name az -Path <PATH TO DOWNLOAD TO>
    
    ... and compare the files from the package against those in the installed module. Again use Get-FileHash -Path <FILE TO VERIFY> to retrieve those hash values.

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Microsoft

Copyright

2019 Microsoft

Tags

Version History

Version Downloads Last updated Status
Microsoft Azure PowerShell (Az PowerShell Module) 2.5.0 15 Monday, August 5, 2019 approved

Discussion for the Microsoft Azure PowerShell (Az PowerShell Module) Package

Ground rules:

  • This discussion is only about Microsoft Azure PowerShell (Az PowerShell Module) and the Microsoft Azure PowerShell (Az PowerShell Module) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Microsoft Azure PowerShell (Az PowerShell Module), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok