Skip to content

Commit 6960ca5

Browse files
azure-sdkwcas-ms
andauthored
[AutoPR @azure-arm-managedops]-generated-from-SDK Generation - JS-5788708 (#37142)
Configurations: 'specification/managedoperations/ManagedOps.Management/tspconfig.yaml', API Version: 2025-07-28-preview, SDK Release Type: beta, and CommitSHA: '83408dfe4894a9b5a5d3989023647bce792efc5f' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5788708 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. **Release plan link:** [https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=6712851c-60ef-f011-8407-000d3a5b0bfe](https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=6712851c-60ef-f011-8407-000d3a5b0bfe) **Submitted by**: wcashman@microsoft.com ## Release Plan Details - Release Plan: https://aka.ms/sdk-release-planner?release-plan-id=6712851c-60ef-f011-8407-000d3a5b0bfe Spec pull request: Azure/azure-rest-api-specs#39501 Spec API version: 2025-07-28-preview --------- Co-authored-by: Will Cashman <wcashman@microsoft.com>
1 parent ba89354 commit 6960ca5

File tree

77 files changed

+4226
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4226
-0
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,9 @@ sdk/compute/arm-computerecommender/ @qiaozha @MaryGao @JialinHuang803
16241624
# PRLabel: %Mgmt
16251625
sdk/computelimit/arm-computelimit/ @qiaozha @MaryGao @JialinHuang803
16261626

1627+
# PRLabel: %Mgmt
1628+
sdk/managedops/arm-managedops/ @qiaozha @MaryGao @JialinHuang803
1629+
16271630
###########
16281631
# Config
16291632
###########

eng/ignore-links.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ https://learn.microsoft.com/javascript/api/@azure/arm-computelimit?view=azure-no
5454
https://learn.microsoft.com/javascript/api/@azure/arm-certificateregistration?view=azure-node-preview
5555
https://learn.microsoft.com/javascript/api/@azure/arm-domainregistration?view=azure-node-preview
5656
https://learn.microsoft.com/javascript/api/@azure/arm-dell-storage
57+
https://learn.microsoft.com/javascript/api/@azure/arm-managedops?view=azure-node-preview
58+
https://www.npmjs.com/package/@azure/arm-managedops

pnpm-lock.yaml

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (2026-01-23)
4+
5+
### Features Added
6+
7+
Initial release of the @azure/arm-managedops package
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Azure ManagedOps client library for JavaScript
2+
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ManagedOps client.
4+
5+
Managed Operations API.
6+
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedops/arm-managedops)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-managedops)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-managedops?view=azure-node-preview)
12+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedops/arm-managedops/samples)
13+
14+
## Getting started
15+
16+
### Currently supported environments
17+
18+
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
19+
- Latest versions of Safari, Chrome, Edge and Firefox.
20+
21+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
22+
23+
### Prerequisites
24+
25+
- An [Azure subscription][azure_sub].
26+
27+
### Install the `@azure/arm-managedops` package
28+
29+
Install the Azure ManagedOps client library for JavaScript with `npm`:
30+
31+
```bash
32+
npm install @azure/arm-managedops
33+
```
34+
35+
### Create and authenticate a `ManagedOpsClient`
36+
37+
To create a client object to access the Azure ManagedOps API, you will need the `endpoint` of your Azure ManagedOps resource and a `credential`. The Azure ManagedOps client can use Azure Active Directory credentials to authenticate.
38+
You can find the endpoint for your Azure ManagedOps resource in the [Azure Portal][azure_portal].
39+
40+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
41+
42+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
43+
44+
```bash
45+
npm install @azure/identity
46+
```
47+
48+
You will also need to **register a new AAD application and grant access to Azure ManagedOps** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
49+
50+
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).
51+
52+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
53+
54+
```ts snippet:ReadmeSampleCreateClient_Node
55+
import { ManagedOpsClient } from "@azure/arm-managedops";
56+
import { DefaultAzureCredential } from "@azure/identity";
57+
58+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
59+
const client = new ManagedOpsClient(new DefaultAzureCredential(), subscriptionId);
60+
```
61+
62+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
63+
64+
```ts snippet:ReadmeSampleCreateClient_Browser
65+
import { InteractiveBrowserCredential } from "@azure/identity";
66+
import { ManagedOpsClient } from "@azure/arm-managedops";
67+
68+
const credential = new InteractiveBrowserCredential({
69+
tenantId: "<YOUR_TENANT_ID>",
70+
clientId: "<YOUR_CLIENT_ID>",
71+
});
72+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
73+
const client = new ManagedOpsClient(credential, subscriptionId);
74+
```
75+
76+
77+
### JavaScript Bundle
78+
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).
79+
80+
## Key concepts
81+
82+
### ManagedOpsClient
83+
84+
`ManagedOpsClient` is the primary interface for developers using the Azure ManagedOps client library. Explore the methods on this client object to understand the different features of the Azure ManagedOps service that you can access.
85+
86+
## Troubleshooting
87+
88+
### Logging
89+
90+
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`:
91+
92+
```ts snippet:SetLogLevel
93+
import { setLogLevel } from "@azure/logger";
94+
95+
setLogLevel("info");
96+
```
97+
98+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
99+
100+
## Next steps
101+
102+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managedops/arm-managedops/samples) directory for detailed examples on how to use this library.
103+
104+
## Contributing
105+
106+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
107+
108+
## Related projects
109+
110+
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
111+
112+
[azure_sub]: https://azure.microsoft.com/free/
113+
[azure_portal]: https://portal.azure.com
114+
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
115+
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": "../../../api-extractor-base.json" }
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default azsdkEslint.config([
4+
{
5+
rules: {
6+
"@azure/azure-sdk/ts-modules-only-named": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9+
"@azure/azure-sdk/ts-package-json-files-required": "off",
10+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
]);
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"apiVersion": "2025-07-28-preview",
3+
"emitterVersion": "0.48.0",
4+
"crossLanguageDefinitions": {
5+
"CrossLanguagePackageId": "Microsoft.ManagedOps",
6+
"CrossLanguageDefinitionId": {
7+
"@azure/arm-managedops!OperationListResult:interface": "Azure.ResourceManager.CommonTypes.OperationListResult",
8+
"@azure/arm-managedops!Operation:interface": "Azure.ResourceManager.CommonTypes.Operation",
9+
"@azure/arm-managedops!OperationDisplay:interface": "Azure.ResourceManager.CommonTypes.OperationDisplay",
10+
"@azure/arm-managedops!ErrorResponse:interface": "Azure.ResourceManager.CommonTypes.ErrorResponse",
11+
"@azure/arm-managedops!ErrorDetail:interface": "Azure.ResourceManager.CommonTypes.ErrorDetail",
12+
"@azure/arm-managedops!ErrorAdditionalInfo:interface": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
13+
"@azure/arm-managedops!ManagedOp:interface": "Microsoft.ManagedOps.ManagedOp",
14+
"@azure/arm-managedops!ManagedOpsProperties:interface": "Microsoft.ManagedOps.ManagedOpsProperties",
15+
"@azure/arm-managedops!Sku:interface": "Microsoft.ManagedOps.Sku",
16+
"@azure/arm-managedops!DesiredConfiguration:interface": "Microsoft.ManagedOps.DesiredConfiguration",
17+
"@azure/arm-managedops!ChangeTrackingConfiguration:interface": "Microsoft.ManagedOps.ChangeTrackingConfiguration",
18+
"@azure/arm-managedops!AzureMonitorConfiguration:interface": "Microsoft.ManagedOps.AzureMonitorConfiguration",
19+
"@azure/arm-managedops!ServiceInformation:interface": "Microsoft.ManagedOps.ServiceInformation",
20+
"@azure/arm-managedops!ChangeTrackingInformation:interface": "Microsoft.ManagedOps.ChangeTrackingInformation",
21+
"@azure/arm-managedops!AzureMonitorInformation:interface": "Microsoft.ManagedOps.AzureMonitorInformation",
22+
"@azure/arm-managedops!UpdateManagerInformation:interface": "Microsoft.ManagedOps.UpdateManagerInformation",
23+
"@azure/arm-managedops!GuestConfigurationInformation:interface": "Microsoft.ManagedOps.GuestConfigurationInformation",
24+
"@azure/arm-managedops!DefenderForServersInformation:interface": "Microsoft.ManagedOps.DefenderForServersInformation",
25+
"@azure/arm-managedops!DefenderCspmInformation:interface": "Microsoft.ManagedOps.DefenderCspmInformation",
26+
"@azure/arm-managedops!PolicyAssignmentProperties:interface": "Microsoft.ManagedOps.PolicyAssignmentProperties",
27+
"@azure/arm-managedops!ProxyResource:interface": "Azure.ResourceManager.CommonTypes.ProxyResource",
28+
"@azure/arm-managedops!Resource:interface": "Azure.ResourceManager.CommonTypes.Resource",
29+
"@azure/arm-managedops!SystemData:interface": "Azure.ResourceManager.CommonTypes.SystemData",
30+
"@azure/arm-managedops!ArmOperationStatusResourceProvisioningState:interface": "Azure.ResourceManager.ArmOperationStatus",
31+
"@azure/arm-managedops!ManagedOpListResult:interface": "Azure.ResourceManager.ResourceListResult",
32+
"@azure/arm-managedops!ManagedOpUpdate:interface": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
33+
"@azure/arm-managedops!ManagedOpUpdateProperties:interface": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
34+
"@azure/arm-managedops!KnownOrigin:enum": "Azure.ResourceManager.CommonTypes.Origin",
35+
"@azure/arm-managedops!KnownActionType:enum": "Azure.ResourceManager.CommonTypes.ActionType",
36+
"@azure/arm-managedops!KnownProvisioningState:enum": "Microsoft.ManagedOps.ProvisioningState",
37+
"@azure/arm-managedops!KnownDesiredConfigurationDefenderForServers:enum": "Microsoft.ManagedOps.DesiredConfiguration.defenderForServers.anonymous",
38+
"@azure/arm-managedops!KnownChangeTrackingInformationEnablementStatus:enum": "Microsoft.ManagedOps.ChangeTrackingInformation.enablementStatus.anonymous",
39+
"@azure/arm-managedops!KnowncreatedByType:enum": "Azure.ResourceManager.CommonTypes.createdByType",
40+
"@azure/arm-managedops!KnownResourceProvisioningState:enum": "Azure.ResourceManager.ResourceProvisioningState",
41+
"@azure/arm-managedops!KnownVersions:enum": "Microsoft.ManagedOps.Versions",
42+
"@azure/arm-managedops!ManagedOpsOperations#delete:member": "Microsoft.ManagedOps.ManagedOps.delete",
43+
"@azure/arm-managedops!ManagedOpsOperations#update:member": "Microsoft.ManagedOps.ManagedOps.update",
44+
"@azure/arm-managedops!ManagedOpsOperations#list:member": "Microsoft.ManagedOps.ManagedOps.list",
45+
"@azure/arm-managedops!ManagedOpsOperations#createOrUpdate:member": "Microsoft.ManagedOps.ManagedOps.createOrUpdate",
46+
"@azure/arm-managedops!ManagedOpsOperations#get:member": "Microsoft.ManagedOps.ManagedOps.get",
47+
"@azure/arm-managedops!OperationsOperations#list:member": "Azure.ResourceManager.Operations.list"
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)