You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,27 +28,26 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
26
28
27
29
### Install the `@azure/arm-managementgroups` package
28
30
29
-
Install the Azure ManagementGroupsApi client library for JavaScript with `npm`:
31
+
Install the Azure ManagementGroupsAPI client library for JavaScript with `npm`:
30
32
31
33
```bash
32
34
npm install @azure/arm-managementgroups
33
35
```
34
36
35
37
### Create and authenticate a `ManagementGroupsAPI`
36
38
37
-
To create a client object to access the Azure ManagementGroupsApi API, you will need the `endpoint` of your Azure ManagementGroupsApi resource and a `credential`. The Azure ManagementGroupsApi client can use Azure Active Directory credentials to authenticate.
38
-
You can find the endpoint for your Azure ManagementGroupsApi resource in the [Azure Portal][azure_portal].
39
+
To create a client object to access the Azure ManagementGroupsAPI API, you will need the `endpoint` of your Azure ManagementGroupsAPI resource and a `credential`. The Azure ManagementGroupsAPI client can use Azure Active Directory credentials to authenticate.
40
+
You can find the endpoint for your Azure ManagementGroupsAPI resource in the [Azure Portal][azure_portal].
39
41
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).
42
+
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).
41
43
42
44
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
43
45
44
46
```bash
45
47
npm install @azure/identity
46
48
```
47
49
48
-
You will also need to **register a new AAD application and grant access to Azure ManagementGroupsApi** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
49
-
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`.
50
+
You will also need to **register a new AAD application and grant access to Azure ManagementGroupsAPI** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
50
51
51
52
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).
52
53
@@ -56,7 +57,7 @@ Using Node.js and Node-like environments, you can use the `DefaultAzureCredentia
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).
78
79
79
80
## Key concepts
80
81
81
82
### ManagementGroupsAPI
82
83
83
-
`ManagementGroupsAPI` is the primary interface for developers using the Azure ManagementGroupsApi client library. Explore the methods on this client object to understand the different features of the Azure ManagementGroupsApi service that you can access.
84
+
`ManagementGroupsAPI` is the primary interface for developers using the Azure ManagementGroupsAPI client library. Explore the methods on this client object to understand the different features of the Azure ManagementGroupsAPI service that you can access.
84
85
85
86
## Troubleshooting
86
87
@@ -98,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
98
99
99
100
## Next steps
100
101
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.
102
+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managementgroups/arm-managementgroups/samples) directory for detailed examples on how to use this library.
102
103
103
104
## Contributing
104
105
@@ -108,8 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108
109
109
110
-[Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
0 commit comments