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
# Azure PostgreSQLManagement client library for JavaScript - Version 5.0.0
11
+
# Azure PostgreSQLManagementFlexibleServer client library for JavaScript - Version 6.0.0
14
12
15
13
16
-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PostgreSQLManagement client.
14
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PostgreSQLManagementFlexibleServer client.
17
15
18
16
The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.
@@ -29,41 +27,52 @@ The Microsoft Azure management API provides create, read, update, and delete fun
29
27
-[LTS versions of Node.js](https://nodejs.org/about/releases/)
30
28
- Latest versions of Safari, Chrome, Edge and Firefox.
31
29
30
+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-postgresql-flexible_6.0.0/SUPPORT.md) for more details.
31
+
32
32
### Prerequisites
33
33
34
34
- An [Azure subscription][azure_sub].
35
35
36
36
### Install the `@azure/arm-postgresql-flexible` package
37
37
38
-
Install the Azure PostgreSQLManagement client library for JavaScript with `npm`:
38
+
Install the Azure PostgreSQLManagementFlexibleServer client library for JavaScript with `npm`:
39
39
40
40
```bash
41
41
npm install @azure/arm-postgresql-flexible
42
42
```
43
43
44
-
### Create and authenticate a `PostgreSQLManagementClient`
44
+
### Create and authenticate a `PostgreSQLManagementFlexibleServerClient`
45
45
46
-
To create a client object to access the Azure PostgreSQLManagement API, you will need the `endpoint` of your Azure PostgreSQLManagement resource and a `credential`. The Azure PostgreSQLManagement client can use Azure Active Directory credentials to authenticate.
47
-
You can find the endpoint for your Azure PostgreSQLManagement resource in the [Azure Portal][azure_portal].
46
+
To create a client object to access the Azure PostgreSQLManagementFlexibleServer API, you will need the `endpoint` of your Azure PostgreSQLManagementFlexibleServer resource and a `credential`. The Azure PostgreSQLManagementFlexibleServer client can use Azure Active Directory credentials to authenticate.
47
+
You can find the endpoint for your Azure PostgreSQLManagementFlexibleServer resource in the [Azure Portal][azure_portal].
48
48
49
-
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/@azure/arm-postgresql-flexible_5.0.0/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
49
+
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/@azure/arm-postgresql-flexible_6.0.0/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
50
50
51
51
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
52
52
53
53
```bash
54
54
npm install @azure/identity
55
55
```
56
56
57
-
You will also need to **register a new AAD application and grant access to Azure PostgreSQLManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
57
+
You will also need to **register a new AAD application and grant access to Azure PostgreSQLManagementFlexibleServer** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
58
58
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`.
59
59
60
-
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).
60
+
For more information about how to create an Azure AD Application check out [this guide](/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:
71
+
// const credential = new InteractiveBrowserCredential({
72
+
// tenantId: "<YOUR_TENANT_ID>",
73
+
// clientId: "<YOUR_CLIENT_ID>"
74
+
// });
75
+
// const client = new PostgreSQLManagementFlexibleServerClient(credential, subscriptionId);
67
76
```
68
77
69
78
@@ -72,9 +81,9 @@ To use this client library in the browser, first you need to use a bundler. For
72
81
73
82
## Key concepts
74
83
75
-
### PostgreSQLManagementClient
84
+
### PostgreSQLManagementFlexibleServerClient
76
85
77
-
`PostgreSQLManagementClient` is the primary interface for developers using the Azure PostgreSQLManagement client library. Explore the methods on this client object to understand the different features of the Azure PostgreSQLManagement service that you can access.
86
+
`PostgreSQLManagementFlexibleServerClient` is the primary interface for developers using the Azure PostgreSQLManagementFlexibleServer client library. Explore the methods on this client object to understand the different features of the Azure PostgreSQLManagementFlexibleServer service that you can access.
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/@azure/arm-postgresql-flexible_5.0.0/sdk/core/logger).
99
+
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/@azure/arm-postgresql-flexible_6.0.0/sdk/core/logger).
91
100
92
101
## Next steps
93
102
94
103
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.
95
104
96
105
## Contributing
97
106
98
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-postgresql-flexible_5.0.0/CONTRIBUTING.md) to learn more about how to build and test the code.
107
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/@azure/arm-postgresql-flexible_6.0.0/CONTRIBUTING.md) to learn more about how to build and test the code.
99
108
100
109
## Related projects
101
110
102
111
-[Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
0 commit comments