@azure/arm-operationalinsights 9.0.1-alpha.20241216.1 → 9.0.1-alpha.20241219.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Operational Insights Client
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/operationalinsights/arm-operationalinsights) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-operationalinsights) |
|
|
9
|
-
[API reference documentation](https://
|
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-operationalinsights) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
|
@@ -46,7 +46,7 @@ npm install @azure/identity
|
|
|
46
46
|
You will also need to **register a new AAD application and grant access to Azure OperationalInsightsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
47
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
48
|
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
|
49
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
50
|
|
|
51
51
|
```javascript
|
|
52
52
|
const { OperationalInsightsManagementClient } = require("@azure/arm-operationalinsights");
|
|
@@ -54,7 +54,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|
|
54
54
|
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
|
55
55
|
|
|
56
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
|
-
const client = new OperationalInsightsManagementClient(
|
|
57
|
+
const client = new OperationalInsightsManagementClient(
|
|
58
|
+
new DefaultAzureCredential(),
|
|
59
|
+
subscriptionId,
|
|
60
|
+
);
|
|
58
61
|
|
|
59
62
|
// For client-side applications running in the browser, use this code instead:
|
|
60
63
|
// const credential = new InteractiveBrowserCredential({
|
|
@@ -64,8 +67,8 @@ const client = new OperationalInsightsManagementClient(new DefaultAzureCredentia
|
|
|
64
67
|
// const client = new OperationalInsightsManagementClient(credential, subscriptionId);
|
|
65
68
|
```
|
|
66
69
|
|
|
67
|
-
|
|
68
70
|
### JavaScript Bundle
|
|
71
|
+
|
|
69
72
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
70
73
|
|
|
71
74
|
## Key concepts
|
|
@@ -101,7 +104,7 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
101
104
|
|
|
102
105
|

|
|
103
106
|
|
|
104
|
-
[azure_cli]: https://
|
|
107
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
108
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
109
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
110
|
[azure_portal]: https://portal.azure.com
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for OperationalInsightsManagementClient.",
|
|
6
|
-
"version": "9.0.1-alpha.
|
|
6
|
+
"version": "9.0.1-alpha.20241219.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.0.0"
|
|
9
9
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dotenv": "^16.0.0",
|
|
40
40
|
"mocha": "^11.0.2",
|
|
41
41
|
"ts-node": "^10.0.0",
|
|
42
|
-
"typescript": "~5.
|
|
42
|
+
"typescript": "~5.7.2"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|