Registry /
cloud / azure-azure-sdk-for-go-sdk-resourcemanager-authorization-armauthorization
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.
armauthorization
✓ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization
Lists Azure role definitions using the authorization client.
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatal(err)
}
client, err := armauthorization.NewRoleDefinitionsClient(cred, nil)
if err != nil {
log.Fatal(err)
}
_, err = client.List(context.Background(), "/subscriptions/...", nil)
if err != nil {
log.Fatal(err)
}
}
Upgrade
Version history
0.5.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.