Go SDK for configuring Azure Machine Learning workspaces.
The library is still under development and at the moment it only supports CRUD operations over Datastores of AML Workspaces.
Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.
go get github.com/orobix/azureml-go-sdk
To update the SDK use go get -u to retrieve the latest version of the SDK.
go get -u github.com/orobix/azureml-go-sdk
import (
"github.com/orobix/azureml-go-sdk/workspace"
)
config := workspace.Config{
ClientId: "", // the client ID of the Service Principal used for authenticating with Azure
ClientSecret: "", // the client secret of the Service Principal used for authenticating with Azure
TenantId: "", // the tenant ID to which the Service Principal used for authenticating with Azure belongs to
SubscriptionId: "", // the Azure Subscription ID of the subscription containing the AML Workspace
}
ws, err := workspace.New(config, true)
datastores, err := ws.GetDatastores( "rg-name", "workspace-name" )
datastore, err := ws.GetDatastore( "rg-name", "workspace-name", "datastore-name" )
This project is licensed under the MIT License.
Copyright (c) 2021 Michele Zanotti.