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
The package of @azure/arm-authorization is using our next generation design principles since version 9.0.0-beta.2, which contains breaking changes.
4
6
5
-
### Features Added
7
+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
7
-
### Breaking Changes
9
+
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
9
-
### Bugs Fixed
10
-
11
-
### Other Changes
12
-
13
-
## 9.0.0-beta.1 (2021-10-09)
14
-
15
-
This is the first preview for the new version of the `@azure/arm-authorization` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
16
-
17
-
While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
18
-
19
-
Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
20
-
21
-
**Noteworthy changes and features**
22
-
- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
23
-
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
24
-
- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
25
-
- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
26
-
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
Copy file name to clipboardExpand all lines: sdk/authorization/arm-authorization/README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure AuthorizationManagement client.
4
4
5
-
Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role assignments. A role assignment grants access to Azure Active Directory users.
5
+
Access reviews service provides the workflow for running access reviews on different kind of resources.
To create a client object to access the Azure AuthorizationManagement API, you will need the `endpoint` of your Azure AuthorizationManagement resource and a `credential`. The Azure AuthorizationManagement client can use Azure Active Directory credentials to authenticate.
34
36
You can find the endpoint for your Azure AuthorizationManagement resource in the [Azure Portal][azure_portal].
35
37
36
-
#### Using an Azure Active Directory Credential
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).
37
39
38
-
You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
40
+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
39
41
40
42
```bash
41
43
npm install @azure/identity
@@ -45,13 +47,27 @@ You will also need to **register a new AAD application and grant access to Azure
45
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`.
46
48
47
49
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
// For client-side applications running in the browser, use this code instead:
60
+
// const credential = new InteractiveBrowserCredential({
61
+
// tenantId: "<YOUR_TENANT_ID>",
62
+
// clientId: "<YOUR_CLIENT_ID>"
63
+
// });
64
+
// const client = new AuthorizationManagementClient(credential, subscriptionId);
53
65
```
54
66
67
+
68
+
### JavaScript Bundle
69
+
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).
0 commit comments