All Projects → Azure → azure-cli-dev-tools

Azure / azure-cli-dev-tools

Licence: MIT license
Developer utilities for Azure CLI command module and extension developers.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to azure-cli-dev-tools

monthlyresources
Use this repository to explore the latest content and code samples. Each month we will release best of content resources that relate to a particular theme. - Microsoft Developer Editorial team
Stars: ✭ 198 (+219.35%)
Mutual labels:  microsoft, developer
VirionTools
A handy plugin for developers who wish to compile and inject virions without using Poggit.
Stars: ✭ 17 (-72.58%)
Mutual labels:  devtools, developer
Msgraph Sdk Powershell
Powershell SDK for Microsoft Graph
Stars: ✭ 239 (+285.48%)
Mutual labels:  microsoft
Tools-I-use
A collection of tools and applications I use for Frontend Development
Stars: ✭ 14 (-77.42%)
Mutual labels:  developer
Xbox-GDK-Samples
Game development samples published by the Xbox Advanced Technology Group using the Microsoft GDK.
Stars: ✭ 128 (+106.45%)
Mutual labels:  microsoft
Studentsatbuild
Find all of the resources you might need to try out code presented in the Student Zone at Build 2020 for yourself!
Stars: ✭ 251 (+304.84%)
Mutual labels:  microsoft
AlwaysEncryptedSample
Sample ASP.NET MVC Application for demonstrating Microsoft SQL Server Always Encrypted Functionality
Stars: ✭ 14 (-77.42%)
Mutual labels:  microsoft
Azure Event Hubs
☁️ Cloud-scale telemetry ingestion from any stream of data with Azure Event Hubs
Stars: ✭ 233 (+275.81%)
Mutual labels:  microsoft
tod0
A Terminal Client for Microsoft To-Do
Stars: ✭ 93 (+50%)
Mutual labels:  microsoft
privacysec
I don't have anything to hide, but I don't have anything to show you either.
Stars: ✭ 110 (+77.42%)
Mutual labels:  microsoft
lava
Microsoft Azure Exploitation Framework
Stars: ✭ 46 (-25.81%)
Mutual labels:  microsoft
FritzBoxTelefon-dingsbums
Das Fritz!Box Telefon-dingsbums ist ein Outlook-Addin, welches ein direktes Wählen der Kontakte aus Outlook ermöglicht. Zusätzlich bietet es nützliche Funktionen, wie einen Anrufmonitor oder eine Rückwärtssuche.
Stars: ✭ 16 (-74.19%)
Mutual labels:  microsoft
Vscode
Visual Studio Code
Stars: ✭ 125,417 (+202185.48%)
Mutual labels:  microsoft
nanobox-engine-php
Engine for running PHP apps on Nanobox
Stars: ✭ 20 (-67.74%)
Mutual labels:  devtools
Timelinestoryteller
An expressive visual storytelling environment for presenting timelines on the web and in Power BI. Developed at Microsoft Research.
Stars: ✭ 244 (+293.55%)
Mutual labels:  microsoft
angular-devtools
Moved to the Angular organization.
Stars: ✭ 261 (+320.97%)
Mutual labels:  devtools
Checkedc
Checked C is an extension to C that lets programmers write C code that is guaranteed by the compiler to be type-safe. The goal is to let people easily make their existing C code type-safe and eliminate entire classes of errors. Checked C does not address use-after-free errors. This repo has a wiki for Checked C, sample code, the specification, a…
Stars: ✭ 2,692 (+4241.94%)
Mutual labels:  microsoft
nuxeo-tools-docker
Various Docker files used at Nuxeo
Stars: ✭ 16 (-74.19%)
Mutual labels:  devtools
DacFx
SQL Server database schema validation, deployment, and upgrade runtime. Enables declarative database development and database portability across SQL Server versions and environments.
Stars: ✭ 152 (+145.16%)
Mutual labels:  microsoft
System-Center-Operations-Manager-API
Microsoft System Center Operations Manager (SCOM) Web API
Stars: ✭ 40 (-35.48%)
Mutual labels:  microsoft

Microsoft Azure CLI Dev Tools (azdev)

Python Build Status

The azdev tool is designed to aid new and experienced developers in contributing to Azure CLI command modules and extensions.

Getting Started Videos

1. Cloning Repos

2. Setup with azdev setup

3. Basics with azdev style/test/linter

4. Creating modules with azdev cli create

5. Create extensions with azdev extension create

6. Publishing extensions with azdev extension publish

Setting up your development environment

  1. Install Python 3.6/3.7/3.8 from http://python.org. Please note that the version of Python that comes preinstalled on OSX is 2.7. Currently it's not recommended to use Python 3.9.

  2. Fork and clone the repository or repositories you wish to develop for.

    After forking azure-cli, follow the below commands to set up:

    # Clone your forked repository
    git clone https://github.com/<your-github-name>/azure-cli.git
    
    cd azure-cli
    # Add the Azure/azure-cli repository as upstream
    git remote add upstream https://github.com/Azure/azure-cli.git
    git fetch upstream
    # Reset the default dev branch to track dev branch of Azure/azure-cli so you can use it to track the latest azure-cli code.
    git branch dev --set-upstream-to upstream/dev
    # Develop with a new branch
    git checkout -b <feature_branch>

    You can do the same for azure-cli-extensions except that the default branch for it is main, run git branch main --set-upstream-to upstream/main instead.

    See Authenticating with GitHub from Git about caching your GitHub credentials in Git which is needed when you push the code.

  3. Create a new virtual environment for Python in the root of your clone. You can do this by running:

    Python 3.6+ (all platforms):

    python -m venv env

    or

    python3 -m venv env
  4. Activate the env virtual environment by running:

    Windows CMD.exe:

    env\Scripts\activate.bat

    Windows Powershell:

    env\Scripts\activate.ps1
    

    OSX/Linux (bash):

    source env/bin/activate
  5. Prepare and install azdev

    If you're on Linux, install the dependency packages first by running:

    For apt packages:

    sudo apt install gcc python3-dev

    For rpm packages:

    sudo yum install gcc python3-devel 

    Otherwise you will have psutil installation issues (#269) when you setup azure-cli later.

    Upgrade pip on all platforms:

    python -m pip install -U pip
    

    Install azdev:

    pip install azdev
    
  6. Complete setup by running:

    azdev setup
    

    This will launch the interactive setup process. You can also run with non-interactive options:

    azdev setup --cli /path/to/azure-cli --repo /path/to/azure-cli-extensions
    

    To see more non-interactive options, run azdev setup --help.

Authoring commands and tests

If you are building commands based on a REST API SPEC from azure-rest-api-specs, you can leverage autorest.az to generate the commands. Otherwise you can run the following commands to create a code template:

azdev extension create <extension-name>

or

azdev cli create <module-name>

If you are working on an extension, before you can run its command, you need to install the extension from the source code by running:

azdev extension add <extension-name>

Run az <command> --help with your command groups or commands for a quick check on the command interface and help messages.

For instructions on manually writing the commands and tests, see more in

Style, linter check and testing

  1. Check code style (Pylint and PEP8):

    azdev style <extension-name/module-name>
    
  2. Run static code checks of the CLI command table:

    azdev linter <extension-name/module-name>
    
  3. Record or replay CLI tests:

    azdev test <extension-name/module-name>
    

    By default, test is running in once mode. If there are no corresponding recording files (in yaml format), it will run live tests and generate recording files. If recording files are found, the tests will be run in playback mode against the recording files. You can use --live to force a test run in live mode and regenerate the recording files.

Submitting a pull request to merge the code

  1. After committing your code locally, push it to your forked repository:
    git push --set-upstream origin <feature_branch>
    
  2. Submit a PR to merge from the feature_branch of your repository into the default branch of Azure/azure-cli or Azure/azure-cli-extensions repositories. See Submitting Pull Requests and Publish Extensions for more details.

Reporting issues and feedback

If you encounter any bugs with the tool please file an issue in the Issues section of our GitHub repo.

Contribute Code

This project has adopted the Microsoft Open Source Code of Conduct.

For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.

License

Azure CLI Dev Tools (azdev)

Copyright (c) Microsoft Corporation
All rights reserved.

MIT License

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].