Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Azure long-form help #5112

Merged
merged 2 commits into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions providers/azure/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,20 @@ var Config = plugin.Provider{
},
Connectors: []plugin.Connector{
{
Name: "azure",
Use: "azure",
Short: "an Azure subscription",
Name: "azure",
Use: "azure",
Short: "an Azure subscription",
Long: `Use the azure provider to query resources within Microsoft Azure, including storage, compute instances, snapshots, databases, and more.

Examples run in your shell:
cnspec scan azure compute instance <name> --client-id <your-client-id> --tenant-id <your-tenant-id> --client-secret <your-client-secret-value>
cnspec scan azure compute snapshot <name> --client-id <your-client-id> --tenant-id <your-tenant-id> --client-secret <your-client-secret-value>
cnquery shell azure <name> --client-id <your-client-id> --tenant-id <your-tenant-id> --client-secret <your-client-secret-value>

Examples run in the Azure CLI:
cnquery shell azure
cnspec scan azure --subscription <specific-subscription-id>
`,
MinArgs: 0,
MaxArgs: 8,
Discovery: []string{
Expand Down
Loading