Registry /
cloud / azure-azure-sdk-for-go-sdk-resourcemanager-resources-armresources
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
armresources
✓ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources
Lists all Azure resources in a subscription using the ARM resources client.
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
)
func main() {
cred, _ := azidentity.NewDefaultAzureCredential(nil)
client, _ := armresources.NewClient("subscription-id", cred, nil)
resources, _ := client.List(context.Background(), nil)
for _, r := range resources.Value {
println(*r.Name)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.