Socket
Socket
Sign inDemoInstall

@azure/ms-rest-azure-env

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/ms-rest-azure-env

Isomorphic library that provides Azure endpoints for different Azure Environments/Clouds.


Version published
Maintainers
6
Created

What is @azure/ms-rest-azure-env?

@azure/ms-rest-azure-env is a Node.js package that provides a set of Azure environments and their associated metadata. This package is useful for developers who need to interact with different Azure environments (such as Azure public cloud, Azure China cloud, etc.) in a consistent manner.

What are @azure/ms-rest-azure-env's main functionalities?

Get Azure Environment Metadata

This feature allows you to retrieve metadata for a specific Azure environment. The code sample demonstrates how to get metadata for the Azure public cloud environment.

const msRestAzureEnv = require('@azure/ms-rest-azure-env');
const azureEnvironment = msRestAzureEnv.AzureEnvironment.Azure;
console.log(azureEnvironment);

List All Azure Environments

This feature allows you to list all available Azure environments. The code sample demonstrates how to retrieve and print all the environments provided by the package.

const msRestAzureEnv = require('@azure/ms-rest-azure-env');
const environments = msRestAzureEnv.Environment;
console.log(environments);

Custom Azure Environment

This feature allows you to define a custom Azure environment with specific endpoints. The code sample demonstrates how to create and print a custom Azure environment.

const msRestAzureEnv = require('@azure/ms-rest-azure-env');
const customEnvironment = {
  name: 'MyCustomAzureEnv',
  portalUrl: 'https://portal.mycustomazure.com',
  managementEndpointUrl: 'https://management.mycustomazure.com',
  resourceManagerEndpointUrl: 'https://management.mycustomazure.com',
  activeDirectoryEndpointUrl: 'https://login.mycustomazure.com',
  activeDirectoryResourceId: 'https://management.mycustomazure.com'
};
console.log(customEnvironment);

Other packages similar to @azure/ms-rest-azure-env

Keywords

FAQs

Package last updated on 11 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc