@azure-rest/arm-compute 1.0.0-alpha.20250109.2 → 1.0.0-alpha.20250113.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 +4 -3
- package/package.json +2 -2
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/compute/arm-compute-rest)
|
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/arm-compute)
|
|
11
|
-
- [API reference documentation](https://
|
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/arm-compute?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)
|
|
@@ -56,6 +56,7 @@ const client = ComputeManagementClient(credential);
|
|
|
56
56
|
## Examples
|
|
57
57
|
|
|
58
58
|
The following section shows you how to initialize and authenticate your client, then list all of your Virtual Machines within a resource group.
|
|
59
|
+
|
|
59
60
|
### List all virtual machines within a resource group
|
|
60
61
|
|
|
61
62
|
```typescript
|
|
@@ -79,7 +80,7 @@ async function virtualMachinesListMaximumSetGen() {
|
|
|
79
80
|
.path(
|
|
80
81
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines",
|
|
81
82
|
subscriptionId,
|
|
82
|
-
resourceGroupName
|
|
83
|
+
resourceGroupName,
|
|
83
84
|
)
|
|
84
85
|
.get(options);
|
|
85
86
|
const pageData = paginate(client, initialResponse);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/arm-compute",
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.20250113.1",
|
|
6
6
|
"description": "",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"azure"
|
|
102
102
|
],
|
|
103
103
|
"disableDocsMs": true,
|
|
104
|
-
"apiRefLink": "https://
|
|
104
|
+
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure-rest/arm-compute?view=azure-node-preview"
|
|
105
105
|
},
|
|
106
106
|
"type": "module",
|
|
107
107
|
"tshy": {
|