Skip to content

Repository files navigation

Azure Services Client

Github pipeline status NPM Type Definitions

install size NPM Unpacked Size GitHub repo size GitHub code size in bytes npm bundle size (scoped)

GitHub commit activity NPM Downloads GitHub Downloads (all assets, all releases)

Library to access to azure resources information

Instalation

Install package from public registry

npm install @danny270793/azureservicesclient

Examples

List resource groups on a supscription scoped by client id and client secret

import { Azure } from '@danny270793/azureservicesclient'
import { ResourceGroup } from '@danny270793/azureservicesclient/build/responses'

const azureSubscriptionId: string = process.env.AZURE_SUBSCRIPTION_ID
const azureTenantId: string = process.env.AZURE_TENANT_ID
const azureClientId: string = process.env.AZURE_CLIENT_ID
const azureClientSecret: string = process.env.AZURE_CLIENT_SECRET

const azure: Azure = new Azure(
    azureSubscriptionId,
    azureTenantId,
    azureClientId,
    azureClientSecret,
)

const resourceGroups: ResourceGroup[] = await azure.getResourceGroups()
console.log(resourceGroups)

Follow me

YouTube GitHub LinkedIn

LICENSE

GitHub License

Version

GitHub Tag GitHub Release GitHub package.json version NPM Version

Last update 11/08/2024

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages