$ npm install nodecloud-azure-plugin
Please follow this link to create azure Credentials and set them in env variables using following Keys:
export AZURE_CLIENT_SECRET=<Azure Client Secret>
export AZURE_TENANT_ID=<Azure Tenant Id>
export AZURE_CLIENT_ID=<Azure Client Id>
export AZURE_SUBSCRIPTION_ID=<Azure Subscription Id>
Please use same key names as they are used in this plugin implementation.
Please make sure you have .nc.config
file in the project root and have nodecloud-core
installed.
Content of .nc.config
file is assumed as the following json structure.
It is an array of supported providers.
name
: It is the provider name which nodecloud-core supports.tag
: It is the name that you will use to load the given provider. It is for your reference in code. It can be anything that you may like.libName
: It is the name of the library which has to be installed before loading a provider.
This config file can contain array of objects for all providers and all will be loaded.
Supported values for name
: Azure, google, AWS
[
{
name: "Azure",
tag: "azure",
libName: "nodecloud-azure"
},
{
... // For Google
}
];
module.exports = providers;
$ git clone https://github.com/cloudlibz/nodecloud-azure-plugin.git
$ cd nodecloud-azure-plugin
$ npm link
$ cd .. && mkdir nodecloud-dev && cd nodecloud-dev
$ npm link nodecloud-azure-plugin
$ cd .. && git clone https://github.com/cloudlibz/nodecloud.git
$ cd nodecloud
$ npm link
$ cd nodecloud-dev
$ npm link nodecloud
(For nodecloud setup follow this)
Changes in local project nodecloud-azure-plugin
will be reflected when running nodecloud
locally.
For code on quick start, please check the doc folder here