@danny270793/azureservicesclient
v1.0.8
Published
Library to interact con azure services
Downloads
6
Readme
Azure Services Client
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
LICENSE
Version
Last update 11/08/2024