@azure-rest/arm-servicefabric 1.0.0-alpha.20241212.1 → 1.0.0-alpha.20241217.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Key links:
|
|
|
8
8
|
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric-rest)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/arm-servicefabric)
|
|
11
|
-
- [API reference documentation](https://
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/arm-servicefabric?view=azure-node-preview)
|
|
12
12
|
- [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
13
13
|
|
|
14
14
|
## Getting started
|
|
@@ -35,7 +35,7 @@ To use an [Azure Active Directory (AAD) token credential](https://github.com/Azu
|
|
|
35
35
|
provide an instance of the desired credential type obtained from the
|
|
36
36
|
[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.
|
|
37
37
|
|
|
38
|
-
To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
|
|
38
|
+
To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
|
|
39
39
|
|
|
40
40
|
After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.
|
|
41
41
|
As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)
|
|
@@ -44,7 +44,6 @@ can be used to authenticate the client.
|
|
|
44
44
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
|
|
45
45
|
AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
|
|
46
46
|
|
|
47
|
-
|
|
48
47
|
## Examples
|
|
49
48
|
|
|
50
49
|
The following section shows you how to initialize and authenticate your client, then list all of your Clusters.
|
|
@@ -62,7 +61,7 @@ async function listClusters() {
|
|
|
62
61
|
const result = await client
|
|
63
62
|
.path(
|
|
64
63
|
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters",
|
|
65
|
-
subscriptionId
|
|
64
|
+
subscriptionId,
|
|
66
65
|
)
|
|
67
66
|
.get();
|
|
68
67
|
console.log(result);
|
|
@@ -71,7 +70,6 @@ async function listClusters() {
|
|
|
71
70
|
listClusters().catch(console.error);
|
|
72
71
|
```
|
|
73
72
|
|
|
74
|
-
|
|
75
73
|
## Troubleshooting
|
|
76
74
|
|
|
77
75
|
### Logging
|