azure-sdk-for-node/README.md

190 строки
16 KiB
Markdown
Исходник Обычный вид История

# Azure SDK for Node.js
2013-10-16 21:04:18 +04:00
2014-04-08 17:28:05 +04:00
[![NPM version](https://badge.fury.io/js/azure.png)](http://badge.fury.io/js/azure) [![Build Status](https://travis-ci.org/Azure/azure-sdk-for-node.png?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-node)
2012-02-24 07:16:26 +04:00
This project provides a Node.js package that makes it easy to consume and manage
Microsoft Azure Services.
2017-11-17 20:34:47 +03:00
It supports sdks for:
- old ASM services (packages with the naming convention of `azure-asm-*`)
- new ARM services (packages with the naming convention of `azure-arm-*`)
- data plane of some Azure services (packages with the naming convention of `azure-<servicename>`).
2014-01-10 22:17:35 +04:00
## Usage
2014-01-10 22:17:35 +04:00
_This module includes all of the individual Azure Node.js modules in a single
place. If your application only needs access to specific management modules, see
[the list of individual modules](https://github.com/Azure/azure-sdk-for-node#install-individual-modules)
below._
2012-02-24 07:19:37 +04:00
```shell
$ npm install azure
```
2012-02-24 07:16:26 +04:00
This will allow you access to some helper methods as well as all of the
individual modules. For example, by installing the `azure` module, you can
directly require and use the `ms-rest-azure` common module. This organization
2017-11-17 20:34:47 +03:00
method allows for submodules (and peer dependent modules) to always be in sync
with each other.
2012-02-24 07:16:26 +04:00
2017-11-17 20:34:47 +03:00
**Note**: We haven't provided fine-grained modules for every supported Microsoft
Azure service yet. This will come soon. If there is a module that you find is
missing, [open an issue](https://github.com/Azure/azure-sdk-for-node/issues)
so that we may prioritize it in the backlog.
2017-10-12 00:10:15 +03:00
## Documentation
2017-11-17 20:34:47 +03:00
Documentation of the supported sdks can be found at two places:
- https://azure.github.io/azure-sdk-for-node - This website primarily provides sdk documentation for
- ASM based services (azure-**asm**-*)
- some old data plane sdks like `azure-sb`, `azure-scheduler`, `azure-storage-legacy`, `azure-monitoring`, etc.
- runtime sdks like `ms-rest`, `ms-rest-azure`, `azure-common`
- https://aka.ms/azure-node-sdk - This website primarily provides sdk documentation for
- ARM based services (azure-**arm**-*)
- newer data plane sdks like `azure-batch`, `azure-graph`, `azure-monitor`, etc.
## Authenticating
2017-11-17 20:34:47 +03:00
There are three ways to authenticate against Azure while using the management plane (azure-**arm**-*) sdks and the `azure-graph` sdk, use
[this guide](./Documentation/Authentication.md) to determine which method to use.
## AzureNodeEssentials VSCode extension
2017-04-02 04:12:48 +03:00
The [AzureNodeEssentials](https://marketplace.visualstudio.com/items?itemName=azuresdkteam.azurenodeessentials) extension helps you easily interact with Azure.
2017-04-02 04:38:35 +03:00
It helps you:
2017-04-02 04:12:48 +03:00
- create a project scaffolding
- install correct dependencies
- ready to use snippets for authentication and deploying templates to azure
Please feel free to provide feedback for the extension by opening github issues over [here](https://github.com/Azure/azure-node-essentials).
## Install individual modules
| **Azure Service (Data plane)** | **Install Command** |
| ----------------------------------------------------------------------------- | --------------------------- |
| [Gallery](http://azure.microsoft.com/en-us/marketplace/) | `npm install azure-gallery` |
2016-03-08 01:16:25 +03:00
| [Graph](https://azure.microsoft.com/en-us/services/active-directory/) | `npm install azure-graph` |
| [Key Vault](http://azure.microsoft.com/en-us/services/key-vault/) | `npm install azure-keyvault` |
| [Monitoring](https://msdn.microsoft.com/library/azure/dn306639.aspx) | `npm install azure-monitoring` |
| [Scheduler](http://azure.microsoft.com/en-us/services/scheduler/) | `npm install azure-scheduler` |
2016-03-08 01:16:25 +03:00
| [Service Fabric](https://azure.microsoft.com/en-us/services/service-fabric/) | `npm install azure-servicefabric` |
| [Service Bus](http://azure.microsoft.com/en-us/services/service-bus/) | `npm install azure-sb` |
| [Storage](http://azure.microsoft.com/en-us/services/storage/) | `npm install azure-storage` |
2017-09-30 04:03:15 +03:00
| [Monitor](https://docs.microsoft.com/en-us/rest/api/monitor/) | `npm install azure-monitor` |
2016-03-21 21:57:12 +03:00
| [Batch](https://azure.microsoft.com/en-us/services/batch/) | `npm install azure-batch` |
2017-04-04 00:51:55 +03:00
| **Azure Resource Management (ARM) (Control plane)** |
| [Advisor](https://docs.microsoft.com/en-us/rest/api/advisor/) | `npm install azure-arm-advisor` |
2017-09-30 04:03:15 +03:00
| [Api Management](https://docs.microsoft.com/en-us/rest/api/apimanagement/) | `npm install azure-arm-apimanagement` |
| [App Insights](https://docs.microsoft.com/en-us/rest/api/application-insights/) | `npm install azure-arm-appinsights` |
| [Automation](https://docs.microsoft.com/en-us/azure/automation/) | `npm install azure-arm-automation` |
| [Authorization](https://azure.microsoft.com/en-us/documentation/articles/role-based-access-control-configure/) | `npm install azure-arm-authorization` |
| [Batch](https://azure.microsoft.com/en-us/services/batch/) | `npm install azure-arm-batch` |
| [BatchAI](https://docs.microsoft.com/en-us/azure/batch-ai/) | `npm install azure-arm-batchai` |
| [Billing](https://docs.microsoft.com/en-us/azure/billing/billing-usage-rate-card-overview) | `npm install azure-arm-billing` |
2016-03-08 01:16:25 +03:00
| [CDN](https://azure.microsoft.com/en-us/services/cdn/) | `npm install azure-arm-cdn`|
| [CognitiveServices](https://azure.microsoft.com/en-us/services/cognitive-services/) | `npm install azure-arm-cognitiveservices` |
2017-09-30 04:03:15 +03:00
| [ContainerInstance](https://docs.microsoft.com/en-us/rest/api/container-instances/) | `npm install azure-arm-containerinstance` |
| [CosmosDB](https://docs.microsoft.com/en-us/rest/api/documentdbresourceprovider/) | `npm install azure-arm-cosmosdb` |
| [Commerce/Usage](https://azure.microsoft.com/en-us/documentation/articles/billing-usage-rate-card-overview/) | `npm install azure-arm-commerce`|
| [Container Registry](https://azure.microsoft.com/en-us/services/container-registry/) | `npm install azure-arm-containerregistry`|
| [CustomerInsights](https://docs.microsoft.com/en-us/dynamics365/customer-insights/ref/progref) | `npm install azure-arm-customerinsights` |
| [Compute](http://azure.microsoft.com/en-us/services/virtual-machines/) | `npm install azure-arm-compute`|
2017-09-30 04:03:15 +03:00
| [Datafactory](https://azure.microsoft.com/en-us/services/datafactory/) | `npm install azure-arm-datafactory` |
| [Datalake Analytics](https://azure.microsoft.com/en-us/services/data-lake-analytics/) | `npm install azure-arm-datalake-analytics` |
| [Datalake Storage](https://azure.microsoft.com/en-us/services/data-lake-store/) | `npm install azure-arm-datalake-storage` |
| [DevTest Labs](https://azure.microsoft.com/en-us/services/devtest-lab/) | `npm install azure-arm-devtestlabs` |
| [DNS](http://azure.microsoft.com/en-us/services/dns/) | `npm install azure-arm-dns` |
2017-09-30 04:03:15 +03:00
| [DomainServices](https://docs.microsoft.com/en-us/azure/active-directory-domain-services/) | `npm install azure-arm-domainservices` |
| [EventGrid](https://azure.microsoft.com/en-us/services/eventgrid/) | `npm install azure-arm-eventgrid` |
| [EventHubs](https://azure.microsoft.com/en-us/services/event-hubs/) | `npm install azure-arm-eventhub` |
| [HDInsight](http://azure.microsoft.com/en-us/services/hdinsight/) | `npm install azure-arm-hdinsight` |
| [HDInsightJobs](https://msdn.microsoft.com/en-us/library/azure/mt613023.aspx) | `npm install azure-arm-hdinsight-jobs` |
| [Insights](https://msdn.microsoft.com/en-us/library/azure/dn931943.aspx) | `npm install azure-arm-insights` |
| [IotHub](https://azure.microsoft.com/en-us/documentation/services/iot-hub/) | `npm install azure-arm-iothub` |
| [Key Vault](http://azure.microsoft.com/en-us/services/key-vault/) | `npm install azure-arm-keyvault` |
| [Logic Apps](https://azure.microsoft.com/en-us/services/logic-apps/) | `npm install azure-arm-logic` |
| [Machine Learning](https://azure.microsoft.com/en-us/services/machine-learning/) | `npm install azure-arm-machinelearning` |
2017-09-30 04:03:15 +03:00
| [Machine Learning Compute](https://azure.microsoft.com/en-us/services/machine-learning/) | `npm install azure-arm-machinelearningcompute` |
| [Media Services](https://azure.microsoft.com/en-us/services/media-services/) | `npm install azure-arm-mediaservices` |
2017-09-30 04:03:15 +03:00
| [Mobile Engagement](https://docs.microsoft.com/en-us/azure/mobile-engagement/) | `npm install azure-arm-mobileengagement` |
| [Monitor Management](https://docs.microsoft.com/en-us/rest/api/monitor/) | `npm install azure-arm-monitor` |
| [Notification Hubs](https://azure.microsoft.com/en-us/documentation/services/notification-hubs/) | `npm install azure-arm-notificationhubs` |
2017-09-30 04:03:15 +03:00
| [Operations Management](https://docs.microsoft.com/en-us/azure/operations-management-suite/) | `npm install azure-arm-operations` |
| [Operational Insights](https://azure.microsoft.com/en-us/resources/videos/azure-operational-insights-overview/) | `npm install azure-arm-operationalinsights` |
| [PowerBi Embedded](https://azure.microsoft.com/en-us/services/power-bi-embedded/) | `npm install azure-arm-powerbiembedded` |
| [RecoveryServices](https://azure.microsoft.com/en-us/services/site-recovery/) | `npm install azure-arm-recoveryservices` |
| [RecoveryServices Backup](https://azure.microsoft.com/en-us/services/site-recovery/) | `npm install azure-arm-recoveryservicesbackup` |
2017-09-30 04:03:15 +03:00
| [RecoveryServices SiteRecovery](https://docs.microsoft.com/en-us/rest/api/site-recovery/) | `npm install azure-arm-recoveryservices-siterecovery` |
2016-03-08 01:16:25 +03:00
| [Redis Cache](https://azure.microsoft.com/en-us/services/cache/) | `npm install azure-arm-rediscache` |
| [Relay](https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-what-is-it) | `npm install azure-arm-relay` |
| [Resource Health](https://docs.microsoft.com/en-us/rest/api/resourcehealth/) | `npm install azure-arm-resourcehealth ` |
| [Resource Manager](https://azure.microsoft.com/en-us/documentation/articles/resource-group-overview/) | `npm install azure-arm-resource` |
| [Scheduler](https://azure.microsoft.com/en-us/documentation/articles/resource-group-overview/) | `npm install azure-arm-scheduler` |
| [Search](https://azure.microsoft.com/en-us/services/search/) | `npm install azure-arm-search` |
| [ServerManagement](https://azure.microsoft.com/en-us/documentation/articles/resource-group-overview/) | `npm install azure-arm-servermanagement` |
| [Servicebus](https://msdn.microsoft.com/en-us/library/mt639375.aspx) | `npm install azure-arm-sb` |
| [Service Fabric](https://azure.microsoft.com/en-us/services/service-fabric/) | `npm install azure-arm-servicefabric` |
| [Storage](http://azure.microsoft.com/en-us/services/storage/) | `npm install azure-arm-storage` |
| [Storage Import-Export](https://docs.microsoft.com/en-us/azure/storage/storage-import-export-service) | `npm install azure-arm-storageimportexport` |
2017-09-30 04:03:15 +03:00
| [Storsimple8000series](https://docs.microsoft.com/en-us/azure/storsimple/storsimple-overview) | `npm install azure-arm-storsimple8000series` |
| [Stream Analytics](https://docs.microsoft.com/en-us/rest/api/streamanalytics/) | `npm install azure-arm-streamanalytics` |
| [Sql](https://azure.microsoft.com/en-us/services/sql-database/) | `npm install azure-arm-sql` |
| [Traffic Manager](http://azure.microsoft.com/en-us/services/traffic-manager/) | `npm install azure-arm-trafficManager`|
2016-03-08 01:16:25 +03:00
| [Virtual Networks](http://azure.microsoft.com/en-us/services/virtual-network/) | `npm install azure-arm-network` |
2017-09-30 04:03:15 +03:00
| [VisualStudio](https://docs.microsoft.com/en-us/rest/api/) | `npm install azure-arm-visualstudio` |
| [WebApps (WebSites)](http://azure.microsoft.com/en-us/services/app-service/web/) | `npm install azure-arm-website` |
2017-04-04 00:51:55 +03:00
| **Azure Service Management (ASM) (Control plane)** |
| [Compute](http://azure.microsoft.com/en-us/services/virtual-machines/) | `npm install azure-asm-compute` |
| [HDInsight](http://azure.microsoft.com/en-us/services/hdinsight/) | `npm install azure-asm-hdinsight` |
| [Service Bus](http://azure.microsoft.com/en-us/services/service-bus/) | `npm install azure-asm-sb` |
| [Service Manager](https://msdn.microsoft.com/en-us/library/azure/ee460799.aspx) | `npm install azure-asm-mgmt` |
| [Store](http://azure.microsoft.com/en-us/marketplace/) | `npm install azure-asm-store` |
| [Scheduler](http://azure.microsoft.com/en-us/services/scheduler/) | `npm install azure-asm-scheduler` |
| [SQL Database](http://azure.microsoft.com/en-us/services/sql-database/) | `npm install azure-asm-sql` |
| [Storage](http://azure.microsoft.com/en-us/services/storage/) | `npm install azure-asm-storage` |
| [Subscriptions](https://msdn.microsoft.com/en-us/library/azure/gg715315.aspx) | `npm install azure-asm-subscription`|
2016-03-08 01:16:25 +03:00
| [Traffic Manager](http://azure.microsoft.com/en-us/services/traffic-manager/) | `npm install azure-asm-trafficManager` |
| [Virtual Networks](http://azure.microsoft.com/en-us/services/virtual-network/) | `npm install azure-asm-network` |
| [WebSites](http://azure.microsoft.com/en-us/services/app-service/web/) | `npm install azure-asm-website` |
| **Base Libraries** | |
| Common Functionality (for ASM & ARM clients) | `npm install azure-common` |
2016-03-08 01:16:25 +03:00
| Common Functionality for ARM clients generated from Autorest (Generic) | `npm install ms-rest` |
| Common Functionality for ARM clients generated from Autorest (Azure) | `npm install ms-rest-azure` |
## Need Help?
2017-10-12 00:10:15 +03:00
* [Read the docs](https://aka.ms/azure-node-sdk)
* [Open an issue in GitHub](http://github.com/azure/azure-sdk-for-node)
* [Microsoft Azure Forums on MSDN and Stack Overflow](http://go.microsoft.com/fwlink/?LinkId=234489)
2011-12-10 03:47:08 +04:00
## Related Projects
2012-11-20 19:36:24 +04:00
* [Azure CLI](http://github.com/azure/azure-xplat-cli)
2012-11-20 19:36:24 +04:00
## License
This project is licensed under MIT and Apache-2.0.
- "MIT" license is usually used for the client libraries generated using [Autorest](https://github.com/Azure/Autorest) that are targeting ARM (V2 version of Azure REST API). The license can be found in "LICENSE.MIT.txt" file in this repository.
- "Apache-2.0" license is usually used for the client libraries generated using an internal code generator that are targeting ASM (V1 version of Azure REST API). The license can be found in "LICENSE.Apache.txt" file in this repository.
## Contribute
2012-11-20 19:36:24 +04:00
2016-02-15 09:44:14 +03:00
* If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/).
### Getting Started Developing
Want to get started hacking on the code, super! Follow the following instructions to get up and running. These
instructions expect you have Git and a supported version of Node installed.
1. Fork it
2. Git Clone your fork (`git clone {your repo}`)
3. Move into sdk directory (`cd azure-sdk-for-node`)
4. Install all dependencies (`npm install`)
5. Run the tests (`npm test`). You should see all tests passing.
### Contributing Code to the Project
You found something you'd like to change, great! Please submit a pull request and we'll do our best to work with you to
get your code included into the project.
1. Commit your changes (`git commit -am 'Add some feature'`)
2. Push to the branch (`git push origin my-new-feature`)
3. Create new Pull Request