Registry / cloud / azure-azure-sdk-for-go-sdk-resourcemanager-resources-armsubscriptions

azure-azure-sdk-for-go-sdk-resourcemanager-resources-armsubscriptions

JSON →
library1.3.0gogounverified

Package armsubscriptions provides the Azure subscription management client for Go, part of the Azure SDK for Go resource manager.

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions
INSTALL
IMPORT
SIG · AZURE-AZURE-SDK-FO
A
azure-azure-sdk-for-go-sdk-resourcemanager-resources-armsubscriptions
cloudgov1.3.0
harness data pending
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.

armsubscriptions
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions

Authenticate and retrieve an Azure subscription by ID.

package main import ( "context" "fmt" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" ) func main() { cred, _ := azidentity.NewDefaultAzureCredential(nil) client, _ := armsubscriptions.NewClient(cred, nil) sub, _ := client.Get(context.Background(), "subscription-id", nil) fmt.Println(*sub.ID) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
azure-azure-sdk-for-go-sdk-resourcemanager-resources-armsubscriptions — go get azure-azure-sdk-for-go-sdk-resourcemanager-resources-armsubscriptions · libregistry