Skip to content

Commit 4daec7b

Browse files
committed
Configurations: 'specification/security/resource-manager/Microsoft.Security/Security/tspconfig.yaml', API Version: 2026-04-01-preview, SDK Release Type: beta, and CommitSHA: '41784cfad64229e05cb37b1532a686a0cc3a60a9' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6275780 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
1 parent e198231 commit 4daec7b

1,323 files changed

Lines changed: 57404 additions & 89698 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@
928928
# PRLabel: %Mgmt
929929
/sdk/springappdiscovery/arm-springappdiscovery/ @qiaozha @MaryGao @JialinHuang803
930930

931-
# PRLabel: %Mgmt
931+
# PRLabel: %Mgmt %mgmt-review-needed
932932
/sdk/security/arm-security/ @qiaozha @MaryGao @JialinHuang803
933933

934934
# PRLabel: %Mgmt

pnpm-lock.yaml

Lines changed: 20 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/security/arm-security/CHANGELOG.md

Lines changed: 978 additions & 11 deletions
Large diffs are not rendered by default.

sdk/security/arm-security/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/security/arm-security/README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure SecurityCenter client.
44

5-
API spec for Microsoft.Security (Azure Security Center) resource provider
5+
API spec for Microsoft.Security (Azure Security Center) alerts resource provider
66

7-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security) |
8-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-security) |
9-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview) |
10-
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-security)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-security)
1112

1213
## Getting started
1314

@@ -35,7 +36,7 @@ npm install @azure/arm-security
3536
To create a client object to access the Azure SecurityCenter API, you will need the `endpoint` of your Azure SecurityCenter resource and a `credential`. The Azure SecurityCenter client can use Azure Active Directory credentials to authenticate.
3637
You can find the endpoint for your Azure SecurityCenter resource in the [Azure Portal][azure_portal].
3738

38-
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).
39+
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/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3940

4041
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
4142

@@ -44,7 +45,6 @@ npm install @azure/identity
4445
```
4546

4647
You will also need to **register a new AAD application and grant access to Azure SecurityCenter** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
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`.
4848

4949
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).
5050

@@ -64,16 +64,16 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6464
import { InteractiveBrowserCredential } from "@azure/identity";
6565
import { SecurityCenter } from "@azure/arm-security";
6666

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6867
const credential = new InteractiveBrowserCredential({
6968
tenantId: "<YOUR_TENANT_ID>",
7069
clientId: "<YOUR_CLIENT_ID>",
7170
});
71+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
7272
const client = new SecurityCenter(credential, subscriptionId);
7373
```
7474

75-
### JavaScript Bundle
7675

76+
### JavaScript Bundle
7777
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).
7878

7979
## Key concepts
@@ -96,9 +96,6 @@ setLogLevel("info");
9696

9797
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).
9898

99-
## Next steps
100-
101-
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
10299

103100
## Contributing
104101

@@ -108,10 +105,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108105

109106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110107

111-
112-
113-
[azure_cli]: https://learn.microsoft.com/cli/azure
114-
[azure_sub]: https://azure.microsoft.com/free/
115108
[azure_sub]: https://azure.microsoft.com/free/
116109
[azure_portal]: https://portal.azure.com
117110
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/security/arm-security/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"extends": "../../../api-extractor-base.json"
3-
}
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+
]);

0 commit comments

Comments
 (0)