a28e8f0795
***NO_CI*** - apply the transformation - update samples' README |
||
---|---|---|
.. | ||
review | ||
src | ||
test/public | ||
.nycrc | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
api-extractor.json | ||
eslint.config.mjs | ||
karma.conf.js | ||
package.json | ||
tests.yml | ||
tsconfig.json | ||
tsdoc.json |
README.md
Azure Event Grid Namespaces client library for JavaScript
Azure Event Grid system events are published by Azure services to system topics. The models in this package map to events sent by various Azure services.
Key links:
Getting started
Currently supported environments
- LTS versions of Node.js
- Latest versions of Safari, Chrome, Edge, and Firefox.
See our support policy for more details.
Prerequisites
- An Azure subscription.
- An existing Event Grid Topic or Domain. If you need to create the resource, you can use the Azure Portal or Azure CLI.
If you use the Azure CLI, replace <your-resource-group-name>
and <your-resource-name>
with your own unique names:
Create an Event Grid Topic
az eventgrid topic create --location <location> --resource-group <your-resource-group-name> --name <your-resource-name>
Create an Event Grid Domain
az eventgrid domain create --location <location> --resource-group <your-resource-group-name> --name <your-resource-name>
Install the @azure/eventgrid-system-events
package
Install the Azure Event Grid System Events client library for JavaScript with npm
:
npm install @azure/eventgrid-system-events
Key concepts
This package provides a list of System Events that could be used to publish events to EventGrid.
Troubleshooting
Logging
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the AZURE_LOG_LEVEL
environment variable to info
. Alternatively, logging can be enabled at runtime by calling setLogLevel
in the @azure/logger
:
const { setLogLevel } = require("@azure/logger");
setLogLevel("info");
For more detailed instructions on how to enable the logs, you can look at the @azure/logger package docs.
Contributing
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.