enihcam / ARMClient

A simple command line tool to invoke the Azure Resource Manager API

Home Page:http://blog.davidebbo.com/2015/01/azure-resource-manager-client.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARMClient

ARMClient is a simple command line tool to invoke the Azure Resource Manager API. You can install it from Chocolatey by running:

choco install armclient

This blog post introduces the tool and is a good place to start.

Check out wiki for more details.

Login and get tokens
    ARMClient.exe login [environment name]

Call ARM api
    ARMClient.exe [get|post|put|patch|delete] [url] (<@file|content>) (-h "header: value") (-verbose)
    Use '-h' multiple times to add more than one custom HTTP header.

Copy token to clipboard
    ARMClient.exe token [tenant|subscription]

List token cache
    ARMClient.exe listcache

Clear token cache
    ARMClient.exe clearcache

Note: Valid values for optional [environment name]: (Default) Prod for Azure Global, Fairfax for Azure Government, Blackforest for Azure Germany, Mooncake for Azure China.

Note: The tokens are cached at %USERPROFILE%\.arm folder. All files are encrypted with CurrentUser ProtectData .NET api.

Note: PowerShell users will need to escape the @ symbol with a back tick `.

About

A simple command line tool to invoke the Azure Resource Manager API

http://blog.davidebbo.com/2015/01/azure-resource-manager-client.html

License:Apache License 2.0


Languages

Language:C# 99.9%Language:Batchfile 0.1%