@azure/arm-batch 8.0.1-alpha.20230717.1 → 9.0.0-alpha.20230725.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 +25 -7
- package/LICENSE +1 -1
- package/dist/index.js +114 -102
- 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 +11 -4
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +11 -4
- package/dist-esm/samples-dev/applicationDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +11 -4
- package/dist-esm/samples-dev/applicationGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +11 -4
- package/dist-esm/samples-dev/applicationListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageGetSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +11 -4
- package/dist-esm/samples-dev/applicationPackageListSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +11 -4
- package/dist-esm/samples-dev/applicationUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountCreateSample.js +27 -20
- package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +15 -8
- package/dist-esm/samples-dev/batchAccountGetSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +13 -6
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountListSample.js +10 -3
- package/dist-esm/samples-dev/batchAccountListSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +11 -4
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +11 -4
- package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +11 -4
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +19 -12
- package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateDeleteSample.js +11 -4
- package/dist-esm/samples-dev/certificateDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +15 -8
- package/dist-esm/samples-dev/certificateGetSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +15 -8
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateUpdateSample.js +11 -4
- package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +13 -6
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationGetQuotasSample.js +10 -3
- package/dist-esm/samples-dev/locationGetQuotasSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +10 -3
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +10 -3
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +90 -42
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +11 -4
- package/dist-esm/samples-dev/poolDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +11 -4
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js.map +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +34 -8
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +15 -8
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/poolStopResizeSample.js +11 -4
- package/dist-esm/samples-dev/poolStopResizeSample.js.map +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +23 -16
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js.map +1 -1
- package/dist-esm/src/batchManagementClient.js +2 -2
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +22 -44
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +13 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/applicationOperations.js +0 -1
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js +0 -1
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +5 -5
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +22 -18
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts +2 -2
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +11 -13
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.js +0 -10
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +0 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/poolOperations.d.ts +2 -2
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +11 -13
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +31 -24
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js +0 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/batch_examples.js +2 -1
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +6 -5
- package/review/arm-batch.api.md +20 -23
- package/src/batchManagementClient.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +31 -60
- package/src/models/mappers.ts +13 -2
- package/src/models/parameters.ts +1 -1
- package/src/operations/applicationOperations.ts +0 -1
- package/src/operations/applicationPackageOperations.ts +0 -1
- package/src/operations/batchAccountOperations.ts +32 -29
- package/src/operations/certificateOperations.ts +16 -18
- package/src/operations/location.ts +0 -10
- package/src/operations/operations.ts +0 -1
- package/src/operations/poolOperations.ts +16 -18
- package/src/operations/privateEndpointConnectionOperations.ts +34 -25
- package/src/operations/privateLinkResourceOperations.ts +0 -1
- package/src/operationsInterfaces/batchAccountOperations.ts +5 -5
- package/src/operationsInterfaces/certificateOperations.ts +2 -2
- package/src/operationsInterfaces/poolOperations.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +5 -5
- package/src/pagingHelper.ts +4 -4
- package/types/arm-batch.d.ts +37 -57
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateGetSample.js","sourceRoot":"","sources":["../../samples-dev/certificateGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"certificateGetSample.js","sourceRoot":"","sources":["../../samples-dev/certificateGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;QACjB,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
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.
|
|
15
17
|
*
|
|
16
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.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateList.json
|
|
18
20
|
*/
|
|
19
21
|
function listCertificates() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
24
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
25
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
24
26
|
const accountName = "sampleacct";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
26
28
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -48,18 +50,17 @@ function listCertificates() {
|
|
|
48
50
|
console.log(resArray);
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
listCertificates().catch(console.error);
|
|
52
53
|
/**
|
|
53
54
|
* 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.
|
|
54
55
|
*
|
|
55
56
|
* @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.
|
|
56
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
57
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateListWithFilter.json
|
|
57
58
|
*/
|
|
58
59
|
function listCertificatesFilterAndSelect() {
|
|
59
60
|
var _a, e_2, _b, _c;
|
|
60
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
const subscriptionId = "subid";
|
|
62
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
62
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
63
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
63
64
|
const accountName = "sampleacct";
|
|
64
65
|
const select = "properties/format,properties/provisioningState";
|
|
65
66
|
const filter = "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'";
|
|
@@ -93,5 +94,11 @@ function listCertificatesFilterAndSelect() {
|
|
|
93
94
|
console.log(resArray);
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
function main() {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
listCertificates();
|
|
100
|
+
listCertificatesFilterAndSelect();
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
main().catch(console.error);
|
|
97
104
|
//# sourceMappingURL=certificateListByBatchAccountSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateListByBatchAccountSample.js","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"certificateListByBatchAccountSample.js","sourceRoot":"","sources":["../../samples-dev/certificateListByBatchAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;;QAC7B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED;;;;;GAKG;AACH,SAAe,+BAA+B;;;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,MAAM,GAAG,gDAAgD,CAAC;QAChE,MAAM,MAAM,GACV,wGAAwG,CAAC;QAC3G,MAAM,OAAO,GAAgD;YAC3D,MAAM;YACN,MAAM;SACP,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,kBAAkB,CACpE,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAA,IAAA;gBAJsB,cAItB;gBAJsB,WAItB;;oBAJU,IAAI,IAAI,KAAA,CAAA;oBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;QACnB,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
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.
|
|
15
17
|
*
|
|
16
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.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/CertificateUpdate.json
|
|
18
20
|
*/
|
|
19
21
|
function updateCertificate() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
23
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
23
25
|
const accountName = "sampleacct";
|
|
24
26
|
const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e";
|
|
25
27
|
const parameters = {
|
|
@@ -32,5 +34,10 @@ function updateCertificate() {
|
|
|
32
34
|
console.log(result);
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
|
-
|
|
37
|
+
function main() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
updateCertificate();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
main().catch(console.error);
|
|
36
43
|
//# sourceMappingURL=certificateUpdateSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificateUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/certificateUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"certificateUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/certificateUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,eAAe,GAAG,+CAA+C,CAAC;QACxE,MAAM,UAAU,GAAwC;YACtD,IAAI,EAAE,gCAAgC;YACtC,QAAQ,EAAE,mBAAmB;SAC9B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CACtD,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
|
|
15
17
|
*
|
|
16
18
|
* @summary Checks whether the Batch account name is available in the specified region.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationCheckNameAvailability_AlreadyExists.json
|
|
18
20
|
*/
|
|
19
21
|
function locationCheckNameAvailabilityAlreadyExists() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
23
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
22
24
|
const locationName = "japaneast";
|
|
23
25
|
const parameters = {
|
|
24
26
|
name: "existingaccountname",
|
|
@@ -30,16 +32,15 @@ function locationCheckNameAvailabilityAlreadyExists() {
|
|
|
30
32
|
console.log(result);
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
locationCheckNameAvailabilityAlreadyExists().catch(console.error);
|
|
34
35
|
/**
|
|
35
36
|
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
|
|
36
37
|
*
|
|
37
38
|
* @summary Checks whether the Batch account name is available in the specified region.
|
|
38
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
39
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationCheckNameAvailability_Available.json
|
|
39
40
|
*/
|
|
40
41
|
function locationCheckNameAvailabilityAvailable() {
|
|
41
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const subscriptionId = "subid";
|
|
43
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
43
44
|
const locationName = "japaneast";
|
|
44
45
|
const parameters = {
|
|
45
46
|
name: "newaccountname",
|
|
@@ -51,5 +52,11 @@ function locationCheckNameAvailabilityAvailable() {
|
|
|
51
52
|
console.log(result);
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
function main() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
locationCheckNameAvailabilityAlreadyExists();
|
|
58
|
+
locationCheckNameAvailabilityAvailable();
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
main().catch(console.error);
|
|
55
62
|
//# sourceMappingURL=locationCheckNameAvailabilitySample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/locationCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"locationCheckNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/locationCheckNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAoC;YAClD,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,+BAA+B;SACtC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAoC;YAClD,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,+BAA+B;SACtC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CACxD,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;QAC7C,sCAAsC,EAAE,CAAC;IAC3C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets the Batch service quotas for the specified subscription at the given location.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationGetQuotas.json
|
|
18
20
|
*/
|
|
19
21
|
function locationGetQuotas() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
23
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
22
24
|
const locationName = "japaneast";
|
|
23
25
|
const credential = new DefaultAzureCredential();
|
|
24
26
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -26,5 +28,10 @@ function locationGetQuotas() {
|
|
|
26
28
|
console.log(result);
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
|
-
|
|
31
|
+
function main() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
locationGetQuotas();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
main().catch(console.error);
|
|
30
37
|
//# sourceMappingURL=locationGetQuotasSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationGetQuotasSample.js","sourceRoot":"","sources":["../../samples-dev/locationGetQuotasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"locationGetQuotasSample.js","sourceRoot":"","sources":["../../samples-dev/locationGetQuotasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC7D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationListCloudServiceSkus.json
|
|
18
20
|
*/
|
|
19
21
|
function locationListCloudServiceSkus() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
24
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
23
25
|
const locationName = "japaneast";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -47,5 +49,10 @@ function locationListCloudServiceSkus() {
|
|
|
47
49
|
console.log(resArray);
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
|
-
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
locationListCloudServiceSkus();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
51
58
|
//# sourceMappingURL=locationListSupportedCloudServiceSkusSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationListSupportedCloudServiceSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedCloudServiceSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"locationListSupportedCloudServiceSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedCloudServiceSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;;QACzC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAClE,YAAY,CACb,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/LocationListVirtualMachineSkus.json
|
|
18
20
|
*/
|
|
19
21
|
function locationListVirtualMachineSkus() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
24
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
23
25
|
const locationName = "japaneast";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
@@ -47,5 +49,10 @@ function locationListVirtualMachineSkus() {
|
|
|
47
49
|
console.log(resArray);
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
|
-
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
locationListVirtualMachineSkus();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
51
58
|
//# sourceMappingURL=locationListSupportedVirtualMachineSkusSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locationListSupportedVirtualMachineSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedVirtualMachineSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"locationListSupportedVirtualMachineSkusSample.js","sourceRoot":"","sources":["../../samples-dev/locationListSupportedVirtualMachineSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,+BAA+B,CACpE,YAAY,CACb,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists available operations for the Microsoft.Batch provider
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/OperationsList.json
|
|
18
20
|
*/
|
|
19
21
|
function operationsList() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "
|
|
24
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
23
26
|
const credential = new DefaultAzureCredential();
|
|
24
27
|
const client = new BatchManagementClient(credential, subscriptionId);
|
|
25
28
|
const resArray = new Array();
|
|
@@ -46,5 +49,10 @@ function operationsList() {
|
|
|
46
49
|
console.log(resArray);
|
|
47
50
|
});
|
|
48
51
|
}
|
|
49
|
-
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
operationsList();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
50
58
|
//# sourceMappingURL=operationsListSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;YACpC,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { BatchManagementClient } from "@azure/arm-batch";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
15
17
|
*
|
|
16
18
|
* @summary Creates a new pool inside the specified account.
|
|
17
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
19
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_SharedImageGallery.json
|
|
18
20
|
*/
|
|
19
21
|
function createPoolCustomImage() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
23
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
24
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
23
25
|
const accountName = "sampleacct";
|
|
24
26
|
const poolName = "testpool";
|
|
25
27
|
const parameters = {
|
|
@@ -39,17 +41,16 @@ function createPoolCustomImage() {
|
|
|
39
41
|
console.log(result);
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
|
-
createPoolCustomImage().catch(console.error);
|
|
43
44
|
/**
|
|
44
45
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
45
46
|
*
|
|
46
47
|
* @summary Creates a new pool inside the specified account.
|
|
47
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
48
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_CloudServiceConfiguration.json
|
|
48
49
|
*/
|
|
49
50
|
function createPoolFullCloudServiceConfiguration() {
|
|
50
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const subscriptionId = "subid";
|
|
52
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
52
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
53
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
53
54
|
const accountName = "sampleacct";
|
|
54
55
|
const poolName = "testpool";
|
|
55
56
|
const parameters = {
|
|
@@ -134,17 +135,16 @@ function createPoolFullCloudServiceConfiguration() {
|
|
|
134
135
|
console.log(result);
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
|
-
createPoolFullCloudServiceConfiguration().catch(console.error);
|
|
138
138
|
/**
|
|
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/
|
|
142
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_VirtualMachineConfiguration.json
|
|
143
143
|
*/
|
|
144
144
|
function createPoolFullVirtualMachineConfiguration() {
|
|
145
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
const subscriptionId = "subid";
|
|
147
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
146
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
147
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
148
148
|
const accountName = "sampleacct";
|
|
149
149
|
const poolName = "testpool";
|
|
150
150
|
const parameters = {
|
|
@@ -219,17 +219,16 @@ function createPoolFullVirtualMachineConfiguration() {
|
|
|
219
219
|
console.log(result);
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
createPoolFullVirtualMachineConfiguration().catch(console.error);
|
|
223
222
|
/**
|
|
224
223
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
225
224
|
*
|
|
226
225
|
* @summary Creates a new pool inside the specified account.
|
|
227
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
226
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
|
|
228
227
|
*/
|
|
229
228
|
function createPoolMinimalCloudServiceConfiguration() {
|
|
230
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
const subscriptionId = "subid";
|
|
232
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
230
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
231
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
233
232
|
const accountName = "sampleacct";
|
|
234
233
|
const poolName = "testpool";
|
|
235
234
|
const parameters = {
|
|
@@ -243,17 +242,16 @@ function createPoolMinimalCloudServiceConfiguration() {
|
|
|
243
242
|
console.log(result);
|
|
244
243
|
});
|
|
245
244
|
}
|
|
246
|
-
createPoolMinimalCloudServiceConfiguration().catch(console.error);
|
|
247
245
|
/**
|
|
248
246
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
249
247
|
*
|
|
250
248
|
* @summary Creates a new pool inside the specified account.
|
|
251
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
249
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
|
|
252
250
|
*/
|
|
253
251
|
function createPoolMinimalVirtualMachineConfiguration() {
|
|
254
252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
-
const subscriptionId = "subid";
|
|
256
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
253
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
254
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
257
255
|
const accountName = "sampleacct";
|
|
258
256
|
const poolName = "testpool";
|
|
259
257
|
const parameters = {
|
|
@@ -282,17 +280,16 @@ function createPoolMinimalVirtualMachineConfiguration() {
|
|
|
282
280
|
console.log(result);
|
|
283
281
|
});
|
|
284
282
|
}
|
|
285
|
-
createPoolMinimalVirtualMachineConfiguration().catch(console.error);
|
|
286
283
|
/**
|
|
287
284
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
288
285
|
*
|
|
289
286
|
* @summary Creates a new pool inside the specified account.
|
|
290
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
287
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_NoPublicIPAddresses.json
|
|
291
288
|
*/
|
|
292
289
|
function createPoolNoPublicIP() {
|
|
293
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
-
const subscriptionId = "subid";
|
|
295
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
291
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
292
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
296
293
|
const accountName = "sampleacct";
|
|
297
294
|
const poolName = "testpool";
|
|
298
295
|
const parameters = {
|
|
@@ -316,17 +313,16 @@ function createPoolNoPublicIP() {
|
|
|
316
313
|
console.log(result);
|
|
317
314
|
});
|
|
318
315
|
}
|
|
319
|
-
createPoolNoPublicIP().catch(console.error);
|
|
320
316
|
/**
|
|
321
317
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
322
318
|
*
|
|
323
319
|
* @summary Creates a new pool inside the specified account.
|
|
324
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
320
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_PublicIPs.json
|
|
325
321
|
*/
|
|
326
322
|
function createPoolPublicIPs() {
|
|
327
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
-
const subscriptionId = "subid";
|
|
329
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
324
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
325
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
330
326
|
const accountName = "sampleacct";
|
|
331
327
|
const poolName = "testpool";
|
|
332
328
|
const parameters = {
|
|
@@ -355,17 +351,16 @@ function createPoolPublicIPs() {
|
|
|
355
351
|
console.log(result);
|
|
356
352
|
});
|
|
357
353
|
}
|
|
358
|
-
createPoolPublicIPs().catch(console.error);
|
|
359
354
|
/**
|
|
360
355
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
361
356
|
*
|
|
362
357
|
* @summary Creates a new pool inside the specified account.
|
|
363
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
358
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_UserAssignedIdentities.json
|
|
364
359
|
*/
|
|
365
360
|
function createPoolUserAssignedIdentities() {
|
|
366
361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
-
const subscriptionId = "subid";
|
|
368
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
362
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
363
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
369
364
|
const accountName = "sampleacct";
|
|
370
365
|
const poolName = "testpool";
|
|
371
366
|
const parameters = {
|
|
@@ -401,17 +396,16 @@ function createPoolUserAssignedIdentities() {
|
|
|
401
396
|
console.log(result);
|
|
402
397
|
});
|
|
403
398
|
}
|
|
404
|
-
createPoolUserAssignedIdentities().catch(console.error);
|
|
405
399
|
/**
|
|
406
400
|
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
407
401
|
*
|
|
408
402
|
* @summary Creates a new pool inside the specified account.
|
|
409
|
-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/
|
|
403
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
|
|
410
404
|
*/
|
|
411
405
|
function createPoolVirtualMachineConfigurationExtensions() {
|
|
412
406
|
return __awaiter(this, void 0, void 0, function* () {
|
|
413
|
-
const subscriptionId = "subid";
|
|
414
|
-
const resourceGroupName = "default-azurebatch-japaneast";
|
|
407
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
408
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
415
409
|
const accountName = "sampleacct";
|
|
416
410
|
const poolName = "testpool";
|
|
417
411
|
const parameters = {
|
|
@@ -426,14 +420,15 @@ function createPoolVirtualMachineConfigurationExtensions() {
|
|
|
426
420
|
extensions: [
|
|
427
421
|
{
|
|
428
422
|
name: "batchextension1",
|
|
429
|
-
type: "
|
|
423
|
+
type: "KeyVaultForLinux",
|
|
430
424
|
autoUpgradeMinorVersion: true,
|
|
431
|
-
|
|
432
|
-
|
|
425
|
+
enableAutomaticUpgrade: true,
|
|
426
|
+
publisher: "Microsoft.Azure.KeyVault",
|
|
427
|
+
settings: {
|
|
428
|
+
authenticationSettingsKey: "authenticationSettingsValue",
|
|
429
|
+
secretsManagementSettingsKey: "secretsManagementSettingsValue"
|
|
433
430
|
},
|
|
434
|
-
|
|
435
|
-
settings: { settingsKey: "settingsValue" },
|
|
436
|
-
typeHandlerVersion: "1.0"
|
|
431
|
+
typeHandlerVersion: "2.0"
|
|
437
432
|
}
|
|
438
433
|
]
|
|
439
434
|
}
|
|
@@ -453,5 +448,58 @@ function createPoolVirtualMachineConfigurationExtensions() {
|
|
|
453
448
|
console.log(result);
|
|
454
449
|
});
|
|
455
450
|
}
|
|
456
|
-
|
|
451
|
+
/**
|
|
452
|
+
* This sample demonstrates how to Creates a new pool inside the specified account.
|
|
453
|
+
*
|
|
454
|
+
* @summary Creates a new pool inside the specified account.
|
|
455
|
+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/PoolCreate_AcceleratedNetworking.json
|
|
456
|
+
*/
|
|
457
|
+
function createPoolAcceleratedNetworking() {
|
|
458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
459
|
+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
|
|
460
|
+
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
|
|
461
|
+
const accountName = "sampleacct";
|
|
462
|
+
const poolName = "testpool";
|
|
463
|
+
const parameters = {
|
|
464
|
+
deploymentConfiguration: {
|
|
465
|
+
virtualMachineConfiguration: {
|
|
466
|
+
imageReference: {
|
|
467
|
+
offer: "WindowsServer",
|
|
468
|
+
publisher: "MicrosoftWindowsServer",
|
|
469
|
+
sku: "2016-datacenter-smalldisk",
|
|
470
|
+
version: "latest"
|
|
471
|
+
},
|
|
472
|
+
nodeAgentSkuId: "batch.node.windows amd64"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
networkConfiguration: {
|
|
476
|
+
enableAcceleratedNetworking: true,
|
|
477
|
+
subnetId: "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123"
|
|
478
|
+
},
|
|
479
|
+
scaleSettings: {
|
|
480
|
+
fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }
|
|
481
|
+
},
|
|
482
|
+
vmSize: "STANDARD_D1_V2"
|
|
483
|
+
};
|
|
484
|
+
const credential = new DefaultAzureCredential();
|
|
485
|
+
const client = new BatchManagementClient(credential, subscriptionId);
|
|
486
|
+
const result = yield client.poolOperations.create(resourceGroupName, accountName, poolName, parameters);
|
|
487
|
+
console.log(result);
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
function main() {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
createPoolCustomImage();
|
|
493
|
+
createPoolFullCloudServiceConfiguration();
|
|
494
|
+
createPoolFullVirtualMachineConfiguration();
|
|
495
|
+
createPoolMinimalCloudServiceConfiguration();
|
|
496
|
+
createPoolMinimalVirtualMachineConfiguration();
|
|
497
|
+
createPoolNoPublicIP();
|
|
498
|
+
createPoolPublicIPs();
|
|
499
|
+
createPoolUserAssignedIdentities();
|
|
500
|
+
createPoolVirtualMachineConfigurationExtensions();
|
|
501
|
+
createPoolAcceleratedNetworking();
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
main().catch(console.error);
|
|
457
505
|
//# sourceMappingURL=poolCreateSample.js.map
|