Giter Club home page Giter Club logo

my-azure's Introduction

my-azure

A Powershell Module to streamline some common tasks and needs.

Installation

As of 11/1/2019 My-Azure has been updated to to use the Azure Az Module. If you cannot upgrade to the Az Module you can get the latest version of My-Azure for the RM Modules by checking out the Release-AzureRm tag.

  1. Install the Azure AZ module.
  2. If you don't have one already, create a WindowsPowerShell folder in your Documents folder
  3. If you don't have one already, create a Modules folder inside the WindowsPowerShell folder created in Step 1
  4. Clone this repository to the Modules folder created in Step 2
  5. Launch a Powershell window and navigate to the Modules folder.
  6. Run the install.ps1 script.
    1. When prompted for the root certificate install choose Yes
  7. The module will now be locally signed and trusted and will run with the ExecutionPolicy AllSigned

Login

This module includes two login commands:

  1. Login-MyAzure
  2. Login-MyAzureGov

Login-MyAzure

This command calls the Login-AzureRmAccount and then checks the account to determine if one or more subscription exists.
If multiple subscriptions exist then the user is presented a list of subscriptions they can choose to set as their current subscription context.

Login-MyAzureGov

This command calls the Login-AzureRmAccount targeting the US Government Azure cloud.

Start VMs

Start-MyAzureVMs

This command takes a resource group and then iterates across all the VMs within that resource group and starts them.
8/13/19: Added the ability to filter, by VM name, which machines to start.

Stop VMs

This modules includes two commands to stop Azure VMs

  1. Stop-MyAzureVMs
  2. Stop-MyAzureAllVMs

Stop-MyAzureVMs

This command takes a resource group name as an argument and then iterates across the VMs within that resource group and stops them. 8/13/19: Added the ability to filter, by VM name, which machines to stop.

Stop-MyAzureAllVMs

This command iterates across all virtual machines within all resource groups in the current subscription and stops them.

Switch-MyAzureSubscription

This command queries the account's subscriptions and provides a list of available subscriptions as well as prompting the user for which subscription they would like to make use of.

Other Utility Functions

Get-MyAzureVersion

This command queries the list of available modules which include Azure in the name and then prints a table with their name and version numbers.

Get-MyAzureVmStatus

Queries the Azure VMs in the provided resource group and displays their names and current Status

Get-MyAzureVMPublishers

Displays a list of VM Publishers in the specified region (eastus is the default region), and you can also filter the list of publishers. Added: 8/13/19

Get-MyAzureVMImageSkus

Displays a list of the VM SKUs available in the specified region(eastus is the default region) for the specified VM Publisher (MicrosoftWindowsServer is the default Image Publisher). Added: 8/13/19

Find-MyAzureVMImages

Display a list of VM SKUs available from in the specified region(eastus is the default region) for any VM Publisher who matches the provided filter.

New-MyAzureDeployment

Create or use an Azure Resource Group and begin a new Azure ARM Template Deployment Added: 7/7/21

New-MyDSCPackage

Simple way to create a new DSC Package that includes 3rd party DSC modules like xActiveDirectory Added: 7/7/21

New-MyP2SCertificate

Creates a Root and Child certificate to support deployments that utilize Azure Point-to-Site Gateways and generates a parameter file with the root cert export included in it. Added: 8/29/2023 Updated: 10/12/2023

my-azure's People

Contributors

dmcwee avatar

Watchers

 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.