@azure/arm-batch 9.0.1-alpha.20231114.1 → 9.1.0-alpha.20231218.2
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/CHANGELOG.md +18 -11
- package/dist/index.js +139 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountCreateSample.js +5 -5
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +3 -3
- package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +2 -2
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +2 -2
- package/dist-esm/samples-dev/certificateUpdateSample.js +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +169 -10
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +60 -3
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.js +2 -2
- package/dist-esm/src/models/index.d.ts +45 -5
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +132 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/package.json +8 -6
- package/review/arm-batch.api.md +34 -1
- package/src/batchManagementClient.ts +2 -2
- package/src/models/index.ts +50 -5
- package/src/models/mappers.ts +137 -1
- package/src/models/parameters.ts +1 -1
- package/types/arm-batch.d.ts +49 -5
- package/types/tsdoc-metadata.json +1 -1
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all of the application packages in the specified application.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all of the application packages in the specified application.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationPackageList() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Updates settings for the specified application.
|
|
17
17
|
*
|
|
18
18
|
* @summary Updates settings for the specified application.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function applicationUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
17
17
|
*
|
|
18
18
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountCreateByos() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -44,7 +44,7 @@ function batchAccountCreateByos() {
|
|
|
44
44
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
45
45
|
*
|
|
46
46
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
47
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
47
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json
|
|
48
48
|
*/
|
|
49
49
|
function batchAccountCreateDefault() {
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -67,7 +67,7 @@ function batchAccountCreateDefault() {
|
|
|
67
67
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
68
68
|
*
|
|
69
69
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
70
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
70
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
|
|
71
71
|
*/
|
|
72
72
|
function batchAccountCreateSystemAssignedIdentity() {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -91,7 +91,7 @@ function batchAccountCreateSystemAssignedIdentity() {
|
|
|
91
91
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
92
92
|
*
|
|
93
93
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
94
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
94
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json
|
|
95
95
|
*/
|
|
96
96
|
function batchAccountCreateUserAssignedIdentity() {
|
|
97
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -120,7 +120,7 @@ function batchAccountCreateUserAssignedIdentity() {
|
|
|
120
120
|
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
121
121
|
*
|
|
122
122
|
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
|
|
123
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
123
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json
|
|
124
124
|
*/
|
|
125
125
|
function privateBatchAccountCreate() {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes the specified Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes the specified Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the given detector for a given Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the given detector for a given Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json
|
|
20
20
|
*/
|
|
21
21
|
function getDetector() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
|
|
17
17
|
*
|
|
18
18
|
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountGetKeys() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the specified Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the specified Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountGet() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,7 +33,7 @@ function batchAccountGet() {
|
|
|
33
33
|
* This sample demonstrates how to Gets information about the specified Batch account.
|
|
34
34
|
*
|
|
35
35
|
* @summary Gets information about the specified Batch account.
|
|
36
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
36
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json
|
|
37
37
|
*/
|
|
38
38
|
function privateBatchAccountGet() {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the Batch accounts associated with the specified resource group.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountListByResourceGroup() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the detectors available for a given Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the detectors available for a given Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json
|
|
20
20
|
*/
|
|
21
21
|
function listDetectors() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
|
|
20
20
|
*/
|
|
21
21
|
function listOutboundNetworkDependencies() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets information about the Batch accounts associated with the subscription.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountList() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
|
|
17
17
|
*
|
|
18
18
|
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountRegenerateKey() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
|
|
17
17
|
*
|
|
18
18
|
* @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountSynchronizeAutoStorageKeys() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Updates the properties of an existing Batch account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Updates the properties of an existing Batch account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function batchAccountUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024.
|
|
|
20
20
|
* @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
|
|
21
21
|
|
|
22
22
|
Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
23
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
23
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json
|
|
24
24
|
*/
|
|
25
25
|
function certificateCancelDeletion() {
|
|
26
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json
|
|
20
20
|
*/
|
|
21
21
|
function createCertificateFull() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -41,7 +41,7 @@ function createCertificateFull() {
|
|
|
41
41
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
42
42
|
*
|
|
43
43
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
44
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
44
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json
|
|
45
45
|
*/
|
|
46
46
|
function createCertificateMinimalCer() {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,7 +63,7 @@ function createCertificateMinimalCer() {
|
|
|
63
63
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
64
64
|
*
|
|
65
65
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
66
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
66
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json
|
|
67
67
|
*/
|
|
68
68
|
function createCertificateMinimalPfx() {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function certificateDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json
|
|
20
20
|
*/
|
|
21
21
|
function getCertificate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -34,7 +34,7 @@ function getCertificate() {
|
|
|
34
34
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
35
35
|
*
|
|
36
36
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
37
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
37
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json
|
|
38
38
|
*/
|
|
39
39
|
function getCertificateWithDeletionError() {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json
|
|
20
20
|
*/
|
|
21
21
|
function listCertificates() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -49,7 +49,7 @@ function listCertificates() {
|
|
|
49
49
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
50
50
|
*
|
|
51
51
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
52
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
52
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json
|
|
53
53
|
*/
|
|
54
54
|
function listCertificatesFilterAndSelect() {
|
|
55
55
|
var _a, e_2, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
17
17
|
*
|
|
18
18
|
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function updateCertificate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
|
|
17
17
|
*
|
|
18
18
|
* @summary Checks whether the Batch account name is available in the specified region.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json
|
|
20
20
|
*/
|
|
21
21
|
function locationCheckNameAvailabilityAlreadyExists() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -36,7 +36,7 @@ function locationCheckNameAvailabilityAlreadyExists() {
|
|
|
36
36
|
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
|
|
37
37
|
*
|
|
38
38
|
* @summary Checks whether the Batch account name is available in the specified region.
|
|
39
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
39
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json
|
|
40
40
|
*/
|
|
41
41
|
function locationCheckNameAvailabilityAvailable() {
|
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the Batch service quotas for the specified subscription at the given location.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json
|
|
20
20
|
*/
|
|
21
21
|
function locationGetQuotas() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json
|
|
20
20
|
*/
|
|
21
21
|
function locationListCloudServiceSkus() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json
|
|
20
20
|
*/
|
|
21
21
|
function locationListVirtualMachineSkus() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists available operations for the Microsoft.Batch provider
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json
|
|
20
20
|
*/
|
|
21
21
|
function operationsList() {
|
|
22
22
|
var _a, e_1, _b, _c;
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Creates a new pool inside the specified account.
|
|
19
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json
|
|
20
20
|
*/
|
|
21
21
|
function createPoolCustomImage() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -45,7 +45,7 @@ function createPoolCustomImage() {
|
|
|
45
45
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
46
46
|
*
|
|
47
47
|
* @summary Creates a new pool inside the specified account.
|
|
48
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
48
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json
|
|
49
49
|
*/
|
|
50
50
|
function createPoolFullCloudServiceConfiguration() {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -139,7 +139,7 @@ function createPoolFullCloudServiceConfiguration() {
|
|
|
139
139
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
140
140
|
*
|
|
141
141
|
* @summary Creates a new pool inside the specified account.
|
|
142
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
142
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json
|
|
143
143
|
*/
|
|
144
144
|
function createPoolFullVirtualMachineConfiguration() {
|
|
145
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -223,7 +223,7 @@ function createPoolFullVirtualMachineConfiguration() {
|
|
|
223
223
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
224
224
|
*
|
|
225
225
|
* @summary Creates a new pool inside the specified account.
|
|
226
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
226
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
|
|
227
227
|
*/
|
|
228
228
|
function createPoolMinimalCloudServiceConfiguration() {
|
|
229
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -246,7 +246,7 @@ function createPoolMinimalCloudServiceConfiguration() {
|
|
|
246
246
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
247
247
|
*
|
|
248
248
|
* @summary Creates a new pool inside the specified account.
|
|
249
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
249
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
|
|
250
250
|
*/
|
|
251
251
|
function createPoolMinimalVirtualMachineConfiguration() {
|
|
252
252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -284,7 +284,7 @@ function createPoolMinimalVirtualMachineConfiguration() {
|
|
|
284
284
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
285
285
|
*
|
|
286
286
|
* @summary Creates a new pool inside the specified account.
|
|
287
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
287
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json
|
|
288
288
|
*/
|
|
289
289
|
function createPoolNoPublicIP() {
|
|
290
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -317,7 +317,7 @@ function createPoolNoPublicIP() {
|
|
|
317
317
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
318
318
|
*
|
|
319
319
|
* @summary Creates a new pool inside the specified account.
|
|
320
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
320
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json
|
|
321
321
|
*/
|
|
322
322
|
function createPoolPublicIPs() {
|
|
323
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -355,7 +355,83 @@ function createPoolPublicIPs() {
|
|
|
355
355
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
356
356
|
*
|
|
357
357
|
* @summary Creates a new pool inside the specified account.
|
|
358
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
358
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json
|
|
359
|
+
*/
|
|
360
|
+
function createPoolResourceTags() {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
363
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
364
|
+
const accountName = "sampleacct";
|
|
365
|
+
const poolName = "testpool";
|
|
366
|
+
const parameters = {
|
|
367
|
+
deploymentConfiguration: {
|
|
368
|
+
virtualMachineConfiguration: {
|
|
369
|
+
imageReference: {
|
|
370
|
+
offer: "UbuntuServer",
|
|
371
|
+
publisher: "Canonical",
|
|
372
|
+
sku: "18_04-lts-gen2",
|
|
373
|
+
version: "latest"
|
|
374
|
+
},
|
|
375
|
+
nodeAgentSkuId: "batch.node.ubuntu 18.04"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" },
|
|
379
|
+
scaleSettings: {
|
|
380
|
+
fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }
|
|
381
|
+
},
|
|
382
|
+
vmSize: "Standard_d4s_v3"
|
|
383
|
+
};
|
|
384
|
+
const credential = new DefaultAzureCredential();
|
|
385
|
+
const client = new BatchManagementClient(credential, subscriptionId);
|
|
386
|
+
const result = yield client.poolOperations.create(resourceGroupName, accountName, poolName, parameters);
|
|
387
|
+
console.log(result);
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
392
|
+
*
|
|
393
|
+
* @summary Creates a new pool inside the specified account.
|
|
394
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json
|
|
395
|
+
*/
|
|
396
|
+
function createPoolSecurityProfile() {
|
|
397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
399
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
400
|
+
const accountName = "sampleacct";
|
|
401
|
+
const poolName = "testpool";
|
|
402
|
+
const parameters = {
|
|
403
|
+
deploymentConfiguration: {
|
|
404
|
+
virtualMachineConfiguration: {
|
|
405
|
+
imageReference: {
|
|
406
|
+
offer: "UbuntuServer",
|
|
407
|
+
publisher: "Canonical",
|
|
408
|
+
sku: "18_04-lts-gen2",
|
|
409
|
+
version: "latest"
|
|
410
|
+
},
|
|
411
|
+
nodeAgentSkuId: "batch.node.ubuntu 18.04",
|
|
412
|
+
securityProfile: {
|
|
413
|
+
encryptionAtHost: true,
|
|
414
|
+
securityType: "trustedLaunch",
|
|
415
|
+
uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
scaleSettings: {
|
|
420
|
+
fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }
|
|
421
|
+
},
|
|
422
|
+
vmSize: "Standard_d4s_v3"
|
|
423
|
+
};
|
|
424
|
+
const credential = new DefaultAzureCredential();
|
|
425
|
+
const client = new BatchManagementClient(credential, subscriptionId);
|
|
426
|
+
const result = yield client.poolOperations.create(resourceGroupName, accountName, poolName, parameters);
|
|
427
|
+
console.log(result);
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
432
|
+
*
|
|
433
|
+
* @summary Creates a new pool inside the specified account.
|
|
434
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json
|
|
359
435
|
*/
|
|
360
436
|
function createPoolUserAssignedIdentities() {
|
|
361
437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -400,7 +476,7 @@ function createPoolUserAssignedIdentities() {
|
|
|
400
476
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
401
477
|
*
|
|
402
478
|
* @summary Creates a new pool inside the specified account.
|
|
403
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
479
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
|
|
404
480
|
*/
|
|
405
481
|
function createPoolVirtualMachineConfigurationExtensions() {
|
|
406
482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -452,7 +528,86 @@ function createPoolVirtualMachineConfigurationExtensions() {
|
|
|
452
528
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
453
529
|
*
|
|
454
530
|
* @summary Creates a new pool inside the specified account.
|
|
455
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-
|
|
531
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
|
|
532
|
+
*/
|
|
533
|
+
function createPoolVirtualMachineConfigurationOSDisk() {
|
|
534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
536
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
537
|
+
const accountName = "sampleacct";
|
|
538
|
+
const poolName = "testpool";
|
|
539
|
+
const parameters = {
|
|
540
|
+
deploymentConfiguration: {
|
|
541
|
+
virtualMachineConfiguration: {
|
|
542
|
+
imageReference: {
|
|
543
|
+
offer: "windowsserver",
|
|
544
|
+
publisher: "microsoftwindowsserver",
|
|
545
|
+
sku: "2022-datacenter-smalldisk"
|
|
546
|
+
},
|
|
547
|
+
nodeAgentSkuId: "batch.node.windows amd64",
|
|
548
|
+
osDisk: {
|
|
549
|
+
caching: "ReadWrite",
|
|
550
|
+
diskSizeGB: 100,
|
|
551
|
+
managedDisk: { storageAccountType: "StandardSSD_LRS" },
|
|
552
|
+
writeAcceleratorEnabled: false
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
scaleSettings: {
|
|
557
|
+
fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }
|
|
558
|
+
},
|
|
559
|
+
vmSize: "Standard_d2s_v3"
|
|
560
|
+
};
|
|
561
|
+
const credential = new DefaultAzureCredential();
|
|
562
|
+
const client = new BatchManagementClient(credential, subscriptionId);
|
|
563
|
+
const result = yield client.poolOperations.create(resourceGroupName, accountName, poolName, parameters);
|
|
564
|
+
console.log(result);
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
569
|
+
*
|
|
570
|
+
* @summary Creates a new pool inside the specified account.
|
|
571
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
|
|
572
|
+
*/
|
|
573
|
+
function createPoolVirtualMachineConfigurationServiceArtifactReference() {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
576
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
577
|
+
const accountName = "sampleacct";
|
|
578
|
+
const poolName = "testpool";
|
|
579
|
+
const parameters = {
|
|
580
|
+
deploymentConfiguration: {
|
|
581
|
+
virtualMachineConfiguration: {
|
|
582
|
+
imageReference: {
|
|
583
|
+
offer: "WindowsServer",
|
|
584
|
+
publisher: "MicrosoftWindowsServer",
|
|
585
|
+
sku: "2019-datacenter-smalldisk",
|
|
586
|
+
version: "latest"
|
|
587
|
+
},
|
|
588
|
+
nodeAgentSkuId: "batch.node.windows amd64",
|
|
589
|
+
serviceArtifactReference: {
|
|
590
|
+
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile"
|
|
591
|
+
},
|
|
592
|
+
windowsConfiguration: { enableAutomaticUpdates: false }
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
scaleSettings: {
|
|
596
|
+
fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }
|
|
597
|
+
},
|
|
598
|
+
vmSize: "Standard_d4s_v3"
|
|
599
|
+
};
|
|
600
|
+
const credential = new DefaultAzureCredential();
|
|
601
|
+
const client = new BatchManagementClient(credential, subscriptionId);
|
|
602
|
+
const result = yield client.poolOperations.create(resourceGroupName, accountName, poolName, parameters);
|
|
603
|
+
console.log(result);
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
608
|
+
*
|
|
609
|
+
* @summary Creates a new pool inside the specified account.
|
|
610
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json
|
|
456
611
|
*/
|
|
457
612
|
function createPoolAcceleratedNetworking() {
|
|
458
613
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -496,8 +651,12 @@ function main() {
|
|
|
496
651
|
createPoolMinimalVirtualMachineConfiguration();
|
|
497
652
|
createPoolNoPublicIP();
|
|
498
653
|
createPoolPublicIPs();
|
|
654
|
+
createPoolResourceTags();
|
|
655
|
+
createPoolSecurityProfile();
|
|
499
656
|
createPoolUserAssignedIdentities();
|
|
500
657
|
createPoolVirtualMachineConfigurationExtensions();
|
|
658
|
+
createPoolVirtualMachineConfigurationOSDisk();
|
|
659
|
+
createPoolVirtualMachineConfigurationServiceArtifactReference();
|
|
501
660
|
createPoolAcceleratedNetworking();
|
|
502
661
|
});
|
|
503
662
|
}
|