Giter Club home page Giter Club logo

azure-1's Introduction

azureautomation2Microsoft Azure PowerShell Repo

SCRIPTS

No Script Description
1 Deploy-AzureVm.ps1 Deploy multiple Azure Iaas VM from JSON templates
2 New-SecureCred.ps1 Create file that contains encrypted password for Azure VM local admin account. The adminPassword parameter from JSON templates
3 Apply-AzVmPowerStatePolicy.ps1 Start/Stop Azure VM in parallel on schedule based on two VM Tags (PowerOn/PowerOff)

MODULES

Az-Module Azure Automation PowerShell Module

Requirements: PowerShell 5 or above. To check, type the following command: $PSVersionTable.PSVersion.Major.

To install this module, drop the entire 'Az-Module' folder into one of your module directories.

The default PowerShell module paths are listed in the $env:PSModulePath environment variable.

To make it look better, split the paths in this manner: $env:PSModulePath -split ';'

The default per-user module path is: "$env:HOMEDRIVE$env:HOMEPATH\Documents\WindowsPowerShell\Modules".

The default computer-level module path is: "$env:windir\System32\WindowsPowerShell\v1.0\Modules".

To use the module, type following command: Import-Module Az-Module -Force -Verbose.

To see the commands imported, type Get-Command -Module Az-Module.

For help on each individual cmdlet or function, run Get-Help CmdletName -Full [-Online][-Examples].

To start using the module functions:

  • Install Azure Resource Manager Module module from Microsoft PSGallery by Install-Module AzureRm.
  • Connect to your Azure account by Login-AzureRmAccount cmdlet.
  • Optionally, select your target subscription by Select-AzSubscription function.
No Function Description
1 Select-AzSubscription Interactively select Azure Subscription
2 Select-AzResourceGroup Interactively select Azure ResourceGroup name
3 Select-AzObject Interactively select an Azure object (VM, StorageAccount, VNET, AvailabilitySet)
4 New-AzCredProfile Set your PowerShell session to automatically login to the Azure
5 Get-AzOrphanedVhd Find Azure orphaned *.VHD files
6 Get-AzSubnet Get busy IP in Azure Subnets
7 Get-AzVmPowerState Get Azure VM Power State
8 Get-AzVmTag / Add-AzVmTag Get/Add/Set Azure VM Resource Tag(s)
9 Get-AzVmDisk Get Azure VM Virtual Disks (OSDisk, DataDisk, All)
10 New-AzVmDisk Add a new DataDisk to an Azure VM
11 Expand-AzVmDisk Increase Azure VM disks

Stay tuned for the updates!

azure-1's People

Contributors

rgel avatar skitau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.