methodazure

command module
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

README

methodazure

GitHub Release Verify Go Report Card Acceptable Use Policy

GitHub Downloads Docker Pulls

methodazure provides security operators with a number of data-rich Azure enumeration capabilities to help them gain visibility into their Azure environments. Designed with data-modeling and data-integration needs in mind, methodazure can be used on its own as an interactive CLI, orchestrated as part of a broader data pipeline, or leveraged from within the Method Platform.

The number of security-relevant Azure resources that methodazure can enumerate are constantly growing. For the most up to date listing, please see the documentation here

To learn more about methodazure, please see the Documentation site for the most detailed information.

Quick Start

Get methodazure

For the full list of available installation options, please see the Installation page. For convenience, here are some of the most commonly used options:

Authentication

methodazure is built using the Azure SDK for Go and authenticates with DefaultAzureCredential, which walks the standard Azure credential chain — environment variables, workload and managed identity, and a signed-in Azure CLI session. For more information, see Microsoft's Authentication and the Azure SDK.

AZURE_TENANT_ID must be exported regardless of which link in the chain supplies the credential — methodazure exits with an error if it is unset. To authenticate as a service principal, export the client credentials alongside it:

export AZURE_TENANT_ID=<tenant-id>
export AZURE_CLIENT_ID=<client-id>
export AZURE_CLIENT_SECRET=<client-secret>

Sovereign clouds are selected with --cloud-config (AzurePublic, AzureGovernment, AzureChina); it defaults to AzurePublic.

General Usage

methodazure <resource> enumerate --subscription-id <id>

Available resources: aks, database, dns, entra, iam, loadbalancer, nsg, resourcegroup, storage, subscription, tenant, vm, vnet.

subscription and tenant enumerate what the credential can reach, so they take no --subscription-id. entra queries Microsoft Graph and accepts --graph-service-endpoint, which is defaulted from --cloud-config.

Examples
methodazure storage enumerate --subscription-id <id>
methodazure vm enumerate --subscription-id <id> --output json
methodazure subscription enumerate

Contributing

Interested in contributing to methodazure? Please see our organization wide Contribution page.

Want More?

If you're looking for an easy way to tie methodazure into your broader cybersecurity workflows, or want to leverage some autonomy to improve your overall security posture, you'll love the broader Method Platform.

For more information, visit us here

Community

methodazure is a Method Security open source project.

Learn more about Method's open source source work by checking out our other projects here or our organization wide documentation here.

Have an idea for a Tool to contribute? Open a Discussion here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd implements the CobraCLI commands for the methodazure CLI.
Package cmd implements the CobraCLI commands for the methodazure CLI.
internal
aks
Package aks provides functions and data structures to interact with Azure Kubernetes Service (AKS) resources.
Package aks provides functions and data structures to interact with Azure Kubernetes Service (AKS) resources.
azure
Package azure provides utility functions for interacting with Azure resources and the Azure SDK.
Package azure provides utility functions for interacting with Azure resources and the Azure SDK.
config
Package config contains common configuration values that are used by the various commands and subcommands in the CLI.
Package config contains common configuration values that are used by the various commands and subcommands in the CLI.
database
Package database provides functions and data structures to interact with Azure Database resources.
Package database provides functions and data structures to interact with Azure Database resources.
dns
Package dns provides functions and data structures to interact with Azure DNS resources.
Package dns provides functions and data structures to interact with Azure DNS resources.
entra
Package entra provides functions and data structures to interact with Azure Entra ID.
Package entra provides functions and data structures to interact with Azure Entra ID.
iam
Package iam provides functions and data structures to interact with Azure IAM resources.
Package iam provides functions and data structures to interact with Azure IAM resources.
loadbalancer
Package loadbalancer provides functions and data structures to interact with Azure Load Balancer resources.
Package loadbalancer provides functions and data structures to interact with Azure Load Balancer resources.
nsg
Package nsg provides functions and data structures to interact with Azure Network Security Group resources.
Package nsg provides functions and data structures to interact with Azure Network Security Group resources.
resourcegroup
Package resourcegroup provides functions and data structures to interact with Azure Resource Group resources.
Package resourcegroup provides functions and data structures to interact with Azure Resource Group resources.
storage
Package storage provides functions and data structures to interact with Azure Storage resources.
Package storage provides functions and data structures to interact with Azure Storage resources.
subscription
Package subscription provides functions and data structures to interact with Azure Subscriptions.
Package subscription provides functions and data structures to interact with Azure Subscriptions.
tenant
Package tenant provides functions and data structures to interact with Azure Tenants.
Package tenant provides functions and data structures to interact with Azure Tenants.
vm
Package vm provides functions and data structures to interact with Azure Virtual Machine resources.
Package vm provides functions and data structures to interact with Azure Virtual Machine resources.
vnet
Package vnet provides functions and data structures to interact with Azure VNet resources.
Package vnet provides functions and data structures to interact with Azure VNet resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL