Azure ML Go SDK
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.
Getting Started
Installation
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
Quick Examples
Init the client
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)
Get all the Datastores of a workspace
datastores, err := ws.GetDatastores( "rg-name", "workspace-name" )
Get a specific Datastore of a workspace
datastore, err := ws.GetDatastore( "rg-name", "workspace-name", "datastore-name" )
License
This project is licensed under the MIT License.
Copyright (c) 2021 Michele Zanotti.