Git Product home page Git Product logo

azurepowershell's Introduction

Azure Resource Manager Script Samples

Synopsis of Sample Scripts

  • Archive-AzureRMvm.ps1 - Archives or Rehydrates Azure V2 (ARM) Virtual Machines from specified resource group to save VM core allotment

  • Copy-AzureRMresourceGroup.ps1 - Copies resources from one resource group to another a different Azure Subscription AND Tenant

  • Clone-AzureRMresourceGroup.ps1 -Copies resources from one resource group to the same or different location/region in the same Azure Subscription

  • Backup-AzureRMvm.ps1 - Backs up VHDs blobs of each VM in a resource group to a defined container. Does not support VMs with managed disks because they provide snapshots.

  • Restore-AzureRMvm.ps1 - Restores a VM from a backed up VHD created by the above script. Not recommended in production environments. Does not support VMs with managed disks because they provide snapshots.

  • Start-AzureV2vm.ps1 - PowerShell workflow that starts all VMs in a resource group at once. Uses -ServicePrincipal flag of Login-AzureRMAccount

  • Stop-AzureV2vm.ps1 - PowerShell workflow that stops all VMs in a resource group at once. Uses -ServicePrincipal flag of Login-AzureRMAccount

  • Stop-AzureV2vmRunbook.ps1 - Azure Automation Runbook that stops all VMs in a resource group. Requires Automation Connection e.g. AzureRunAsConnection

  • New-AzureServicePrincpal.ps1 - Creates Azure AD Service Principal, associated Application ID and certificate required to use -ServicePrincipal flag of Login-AzureRMAccount

Contribution guide

New to Git?

Contributing to Issues

  • Check if the issue you are going to file already exists in our issues.
  • If you can't find your issue already, open a new issue, making sure to follow the directions as best you can.
  • If the issue is marked as [0 - Backlog][help-wanted-issue], the community code maintainers are looking for help with the issue.

Forks and Pull Requests

GitHub fosters collaboration through the notion of pull requests. On GitHub, anyone can fork an existing repository into their own user account, where they can make private changes to their fork. To contribute these changes back into the original repository, a user simply creates a pull request in order to "request" that the changes be taken "upstream".

Additional references:

Lifecycle of a pull request

Before submitting

  • To avoid merge conflicts, make sure your branch is rebased on the master branch of this repository.
  • Clean up your commit history. Each commit should be a single complete change. This discipline is important when reviewing the changes as well as when using git bisect and git revert.

Pull request submission

Always create a pull request to the master branch of this repository.

  • Run tests and ensure they are passing before pull request.

  • Avoid making big pull requests. Before you invest a large amount of time, file an issue and start a discussion with the community.

azurepowershell's People

Contributors

jeffbow avatar wthenrichs avatar

Watchers

James Cloos 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.