GithubHelp home page GithubHelp logo

azuretools's Introduction

Adliance AzureTools

Build Status NuGet

What is AzureTools

AzureTools is a set of common operations for Azure that we use on a daily basis.

Installation

dotnet tool install -g Adliance.AzureTools

Operations

Mirroring storage

Mirrors an Azure Storage account (BLOB storage) either to another Storage account, or to the local file system, or vice versa.

azuretools mirror-storage-to-local --source "DefaultEndpointsProtocol=https; AccountName=my_account; AccountKey=my_key; EndpointSuffix=core.windows.net" --target "c:\my_local_directory"

Additionaly, these commands are available for all combinations of storage/local:

  • mirror-local-to-storage
  • mirror-storage-to-storage
  • mirror-local-to-local

Copying Azure SQL database

Please note that this command uses sqlpackage internally. While sqlpackage is packaged with AzureTools, currently only the Windows version of sqlpackage is included, so currently this command only works on Windows.

azuretools copy-database --source "Server=tcp:myserver.database.windows.net,1433; Initial Catalog=my_db; Persist Security Info=False; User ID=my_user; Password=my_pass;" --target "Data Source=(localdb)\MSSQLLocalDB; Initial Catalog=my_local_db; Integrated Security=true;"

Additional parameters

  • --elastic-pool "<elastic_pool_name>": Sets the Azure SQL elastic pool of the target database after it has been restored
  • --use-local-backpac: Each database gets downloaded to database-specific, local BACPAC to the user profile directory. If this parameter is set, and the BACPAC file exists locally, no new BACPAC will be downloaded and the local BACPAC will be restored.
  • --force: Force copy-database operation without any user confirmation or interaction.

azuretools's People

Contributors

saxx avatar kopfrechner avatar

Watchers

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