@azure/arm-containerinstance 9.1.1-alpha.20241024.1 → 9.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1855 -966
- 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/containerGroupProfileGetByRevisionNumberSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js +40 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js +55 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js +260 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js +58 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js +53 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js +42 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +88 -51
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.js +9 -6
- package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsStartSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsStopSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +5 -4
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containersAttachSample.js +3 -2
- package/dist-esm/samples-dev/containersAttachSample.js.map +1 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +5 -4
- package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +1 -1
- package/dist-esm/samples-dev/containersListLogsSample.js +4 -3
- package/dist-esm/samples-dev/containersListLogsSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +3 -2
- package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +3 -2
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListUsageSample.js +3 -2
- package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +3 -2
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.d.ts +4 -3
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.js +13 -11
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +145 -3
- 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 +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +898 -640
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -47
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/containerGroupProfileOperations.d.ts +55 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.js +191 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.js.map +1 -0
- package/dist-esm/src/operations/containerGroupProfiles.d.ts +95 -0
- package/dist-esm/src/operations/containerGroupProfiles.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroupProfiles.js +401 -0
- package/dist-esm/src/operations/containerGroupProfiles.js.map +1 -0
- package/dist-esm/src/operations/containerGroups.d.ts +15 -15
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/containerGroups.js +97 -97
- package/dist-esm/src/operations/containerGroups.js.map +1 -1
- package/dist-esm/src/operations/containers.d.ts +3 -3
- package/dist-esm/src/operations/containers.js +20 -20
- package/dist-esm/src/operations/containers.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts +8 -8
- package/dist-esm/src/operations/location.js +36 -36
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.js +11 -11
- package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +13 -13
- package/dist-esm/src/operationsInterfaces/containers.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/location.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/test/containerinstance_examples.d.ts.map +1 -1
- package/dist-esm/test/containerinstance_examples.js +1 -4
- package/dist-esm/test/containerinstance_examples.js.map +1 -1
- package/package.json +30 -31
- package/review/arm-containerinstance.api.md +155 -3
- package/src/containerInstanceManagementClient.ts +29 -20
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +194 -17
- package/src/models/mappers.ts +974 -702
- package/src/models/parameters.ts +94 -48
- package/src/operations/containerGroupProfileOperations.ts +255 -0
- package/src/operations/containerGroupProfiles.ts +485 -0
- package/src/operations/containerGroups.ts +188 -201
- package/src/operations/containers.ts +30 -33
- package/src/operations/index.ts +2 -0
- package/src/operations/location.ts +63 -66
- package/src/operations/operations.ts +16 -16
- package/src/operations/subnetServiceAssociationLink.ts +24 -25
- package/src/operationsInterfaces/containerGroupProfileOperations.ts +50 -0
- package/src/operationsInterfaces/containerGroupProfiles.ts +99 -0
- package/src/operationsInterfaces/containerGroups.ts +28 -28
- package/src/operationsInterfaces/containers.ts +7 -7
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/location.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/subnetServiceAssociationLink.ts +4 -4
- package/src/pagingHelper.ts +1 -1
- package/types/arm-containerinstance.d.ts +275 -26
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance";
|
|
11
|
+
import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,16 +16,17 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
17
17
|
*
|
|
18
18
|
* @summary Create or update container groups with specified configurations.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupCreateConfidential.json
|
|
20
20
|
*/
|
|
21
21
|
function confidentialContainerGroup() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const containerGroup = {
|
|
27
28
|
confidentialComputeProperties: {
|
|
28
|
-
ccePolicy: "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
|
|
29
|
+
ccePolicy: "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19",
|
|
29
30
|
},
|
|
30
31
|
containers: [
|
|
31
32
|
{
|
|
@@ -37,15 +38,15 @@ function confidentialContainerGroup() {
|
|
|
37
38
|
resources: { requests: { cpu: 1, memoryInGB: 1.5 } },
|
|
38
39
|
securityContext: {
|
|
39
40
|
capabilities: { add: ["CAP_NET_ADMIN"] },
|
|
40
|
-
privileged: false
|
|
41
|
-
}
|
|
42
|
-
}
|
|
41
|
+
privileged: false,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
43
44
|
],
|
|
44
45
|
imageRegistryCredentials: [],
|
|
45
46
|
ipAddress: { type: "Public", ports: [{ port: 8000, protocol: "TCP" }] },
|
|
46
47
|
location: "westeurope",
|
|
47
48
|
osType: "Linux",
|
|
48
|
-
sku: "Confidential"
|
|
49
|
+
sku: "Confidential",
|
|
49
50
|
};
|
|
50
51
|
const credential = new DefaultAzureCredential();
|
|
51
52
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -57,11 +58,43 @@ function confidentialContainerGroup() {
|
|
|
57
58
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
58
59
|
*
|
|
59
60
|
* @summary Create or update container groups with specified configurations.
|
|
60
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
61
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupCreateOrUpdateStandbyPool.json
|
|
62
|
+
*/
|
|
63
|
+
function containerGroupCreateOrUpdateWithStandbyPool() {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
66
|
+
"00000000-0000-0000-0000-000000000000";
|
|
67
|
+
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
68
|
+
const containerGroupName = "demo1";
|
|
69
|
+
const containerGroup = {
|
|
70
|
+
containerGroupProfile: {
|
|
71
|
+
id: "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroupProfiles/democgp",
|
|
72
|
+
revision: 1,
|
|
73
|
+
},
|
|
74
|
+
containers: [
|
|
75
|
+
{ name: "demo1", configMap: { keyValuePairs: { newkey: "value" } } },
|
|
76
|
+
],
|
|
77
|
+
location: "west us",
|
|
78
|
+
standbyPoolProfile: {
|
|
79
|
+
id: "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.StandbyPool/standbyContainerGroupPools/demopool",
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
const credential = new DefaultAzureCredential();
|
|
83
|
+
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
84
|
+
const result = yield client.containerGroups.beginCreateOrUpdateAndWait(resourceGroupName, containerGroupName, containerGroup);
|
|
85
|
+
console.log(result);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
90
|
+
*
|
|
91
|
+
* @summary Create or update container groups with specified configurations.
|
|
92
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupExtensions.json
|
|
61
93
|
*/
|
|
62
94
|
function containerGroupCreateWithExtensions() {
|
|
63
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
96
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
97
|
+
"00000000-0000-0000-0000-000000000000";
|
|
65
98
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
66
99
|
const containerGroupName = "demo1";
|
|
67
100
|
const containerGroup = {
|
|
@@ -72,8 +105,8 @@ function containerGroupCreateWithExtensions() {
|
|
|
72
105
|
environmentVariables: [],
|
|
73
106
|
image: "nginx",
|
|
74
107
|
ports: [{ port: 80 }],
|
|
75
|
-
resources: { requests: { cpu: 1, memoryInGB: 1.5 } }
|
|
76
|
-
}
|
|
108
|
+
resources: { requests: { cpu: 1, memoryInGB: 1.5 } },
|
|
109
|
+
},
|
|
77
110
|
],
|
|
78
111
|
imageRegistryCredentials: [],
|
|
79
112
|
ipAddress: { type: "Private", ports: [{ port: 80, protocol: "TCP" }] },
|
|
@@ -81,8 +114,8 @@ function containerGroupCreateWithExtensions() {
|
|
|
81
114
|
osType: "Linux",
|
|
82
115
|
subnetIds: [
|
|
83
116
|
{
|
|
84
|
-
id: "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-rg-vnet/subnets/test-subnet"
|
|
85
|
-
}
|
|
117
|
+
id: "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-rg-vnet/subnets/test-subnet",
|
|
118
|
+
},
|
|
86
119
|
],
|
|
87
120
|
extensions: [
|
|
88
121
|
{
|
|
@@ -90,14 +123,14 @@ function containerGroupCreateWithExtensions() {
|
|
|
90
123
|
extensionType: "kube-proxy",
|
|
91
124
|
protectedSettings: { kubeConfig: "<kubeconfig encoded string>" },
|
|
92
125
|
settings: { clusterCidr: "10.240.0.0/16", kubeVersion: "v1.9.10" },
|
|
93
|
-
version: "1.0"
|
|
126
|
+
version: "1.0",
|
|
94
127
|
},
|
|
95
128
|
{
|
|
96
129
|
name: "vk-realtime-metrics",
|
|
97
130
|
extensionType: "realtime-metrics",
|
|
98
|
-
version: "1.0"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
131
|
+
version: "1.0",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
101
134
|
};
|
|
102
135
|
const credential = new DefaultAzureCredential();
|
|
103
136
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -109,11 +142,12 @@ function containerGroupCreateWithExtensions() {
|
|
|
109
142
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
110
143
|
*
|
|
111
144
|
* @summary Create or update container groups with specified configurations.
|
|
112
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
145
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupEncryptionProperties.json
|
|
113
146
|
*/
|
|
114
147
|
function containerGroupWithEncryptionProperties() {
|
|
115
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
149
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
150
|
+
"00000000-0000-0000-0000-000000000000";
|
|
117
151
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
118
152
|
const containerGroupName = "demo1";
|
|
119
153
|
const containerGroup = {
|
|
@@ -124,25 +158,25 @@ function containerGroupWithEncryptionProperties() {
|
|
|
124
158
|
environmentVariables: [],
|
|
125
159
|
image: "nginx",
|
|
126
160
|
ports: [{ port: 80 }],
|
|
127
|
-
resources: { requests: { cpu: 1, memoryInGB: 1.5 } }
|
|
128
|
-
}
|
|
161
|
+
resources: { requests: { cpu: 1, memoryInGB: 1.5 } },
|
|
162
|
+
},
|
|
129
163
|
],
|
|
130
164
|
encryptionProperties: {
|
|
131
165
|
identity: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity",
|
|
132
166
|
keyName: "test-key",
|
|
133
167
|
keyVersion: "<key version>",
|
|
134
|
-
vaultBaseUrl: "https://testkeyvault.vault.azure.net"
|
|
168
|
+
vaultBaseUrl: "https://testkeyvault.vault.azure.net",
|
|
135
169
|
},
|
|
136
170
|
identity: {
|
|
137
171
|
type: "UserAssigned",
|
|
138
172
|
userAssignedIdentities: {
|
|
139
|
-
"/subscriptions/00000000000000000000000000000000/resourcegroups/testRg/providers/MicrosoftManagedIdentity/userAssignedIdentities/containerGroupIdentity": {}
|
|
140
|
-
}
|
|
173
|
+
"/subscriptions/00000000000000000000000000000000/resourcegroups/testRg/providers/MicrosoftManagedIdentity/userAssignedIdentities/containerGroupIdentity": {},
|
|
174
|
+
},
|
|
141
175
|
},
|
|
142
176
|
imageRegistryCredentials: [],
|
|
143
177
|
ipAddress: { type: "Public", ports: [{ port: 80, protocol: "TCP" }] },
|
|
144
178
|
location: "eastus2",
|
|
145
|
-
osType: "Linux"
|
|
179
|
+
osType: "Linux",
|
|
146
180
|
};
|
|
147
181
|
const credential = new DefaultAzureCredential();
|
|
148
182
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -154,11 +188,12 @@ function containerGroupWithEncryptionProperties() {
|
|
|
154
188
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
155
189
|
*
|
|
156
190
|
* @summary Create or update container groups with specified configurations.
|
|
157
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
191
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsCreateOrUpdate.json
|
|
158
192
|
*/
|
|
159
193
|
function containerGroupsCreateOrUpdate() {
|
|
160
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
195
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
196
|
+
"00000000-0000-0000-0000-000000000000";
|
|
162
197
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
163
198
|
const containerGroupName = "demo1";
|
|
164
199
|
const containerGroup = {
|
|
@@ -170,14 +205,14 @@ function containerGroupsCreateOrUpdate() {
|
|
|
170
205
|
image: "nginx",
|
|
171
206
|
ports: [{ port: 80 }],
|
|
172
207
|
resources: {
|
|
173
|
-
requests: { cpu: 1, gpu: { count: 1, sku: "K80" }, memoryInGB: 1.5 }
|
|
208
|
+
requests: { cpu: 1, gpu: { count: 1, sku: "K80" }, memoryInGB: 1.5 },
|
|
174
209
|
},
|
|
175
210
|
volumeMounts: [
|
|
176
211
|
{ name: "volume1", mountPath: "/mnt/volume1", readOnly: false },
|
|
177
212
|
{ name: "volume2", mountPath: "/mnt/volume2", readOnly: false },
|
|
178
|
-
{ name: "volume3", mountPath: "/mnt/volume3", readOnly: true }
|
|
179
|
-
]
|
|
180
|
-
}
|
|
213
|
+
{ name: "volume3", mountPath: "/mnt/volume3", readOnly: true },
|
|
214
|
+
],
|
|
215
|
+
},
|
|
181
216
|
],
|
|
182
217
|
diagnostics: {
|
|
183
218
|
logAnalytics: {
|
|
@@ -185,33 +220,33 @@ function containerGroupsCreateOrUpdate() {
|
|
|
185
220
|
metadata: { testKey: "test-metadata-value" },
|
|
186
221
|
workspaceId: "workspaceid",
|
|
187
222
|
workspaceKey: "workspaceKey",
|
|
188
|
-
workspaceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace"
|
|
189
|
-
}
|
|
223
|
+
workspaceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/microsoft.operationalinsights/workspaces/workspace",
|
|
224
|
+
},
|
|
190
225
|
},
|
|
191
226
|
dnsConfig: {
|
|
192
227
|
nameServers: ["1.1.1.1"],
|
|
193
228
|
options: "ndots:2",
|
|
194
|
-
searchDomains: "cluster.local svc.cluster.local"
|
|
229
|
+
searchDomains: "cluster.local svc.cluster.local",
|
|
195
230
|
},
|
|
196
231
|
identity: {
|
|
197
232
|
type: "SystemAssigned, UserAssigned",
|
|
198
233
|
userAssignedIdentities: {
|
|
199
|
-
"/subscriptions/00000000000000000000000000000000/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/identityName": {}
|
|
200
|
-
}
|
|
234
|
+
"/subscriptions/00000000000000000000000000000000/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/identityName": {},
|
|
235
|
+
},
|
|
201
236
|
},
|
|
202
237
|
imageRegistryCredentials: [],
|
|
203
238
|
ipAddress: {
|
|
204
239
|
type: "Public",
|
|
205
240
|
autoGeneratedDomainNameLabelScope: "Unsecure",
|
|
206
241
|
dnsNameLabel: "dnsnamelabel1",
|
|
207
|
-
ports: [{ port: 80, protocol: "TCP" }]
|
|
242
|
+
ports: [{ port: 80, protocol: "TCP" }],
|
|
208
243
|
},
|
|
209
244
|
location: "west us",
|
|
210
245
|
osType: "Linux",
|
|
211
246
|
subnetIds: [
|
|
212
247
|
{
|
|
213
|
-
id: "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]"
|
|
214
|
-
}
|
|
248
|
+
id: "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]",
|
|
249
|
+
},
|
|
215
250
|
],
|
|
216
251
|
volumes: [
|
|
217
252
|
{
|
|
@@ -219,18 +254,18 @@ function containerGroupsCreateOrUpdate() {
|
|
|
219
254
|
azureFile: {
|
|
220
255
|
shareName: "shareName",
|
|
221
256
|
storageAccountKey: "accountKey",
|
|
222
|
-
storageAccountName: "accountName"
|
|
223
|
-
}
|
|
257
|
+
storageAccountName: "accountName",
|
|
258
|
+
},
|
|
224
259
|
},
|
|
225
260
|
{ name: "volume2", emptyDir: {} },
|
|
226
261
|
{
|
|
227
262
|
name: "volume3",
|
|
228
263
|
secret: {
|
|
229
264
|
secretKey1: "SecretValue1InBase64",
|
|
230
|
-
secretKey2: "SecretValue2InBase64"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
]
|
|
265
|
+
secretKey2: "SecretValue2InBase64",
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
],
|
|
234
269
|
};
|
|
235
270
|
const credential = new DefaultAzureCredential();
|
|
236
271
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -242,11 +277,12 @@ function containerGroupsCreateOrUpdate() {
|
|
|
242
277
|
* This sample demonstrates how to Create or update container groups with specified configurations.
|
|
243
278
|
*
|
|
244
279
|
* @summary Create or update container groups with specified configurations.
|
|
245
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
280
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsCreatePriority.json
|
|
246
281
|
*/
|
|
247
282
|
function containerGroupsCreateWithPriority() {
|
|
248
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
284
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
285
|
+
"00000000-0000-0000-0000-000000000000";
|
|
250
286
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
251
287
|
const containerGroupName = "demo1";
|
|
252
288
|
const containerGroup = {
|
|
@@ -255,14 +291,14 @@ function containerGroupsCreateWithPriority() {
|
|
|
255
291
|
name: "test-container-001",
|
|
256
292
|
command: ["/bin/sh", "-c", "sleep 10"],
|
|
257
293
|
image: "alpine:latest",
|
|
258
|
-
resources: { requests: { cpu: 1, memoryInGB: 1 } }
|
|
259
|
-
}
|
|
294
|
+
resources: { requests: { cpu: 1, memoryInGB: 1 } },
|
|
295
|
+
},
|
|
260
296
|
],
|
|
261
297
|
location: "eastus",
|
|
262
298
|
osType: "Linux",
|
|
263
299
|
priority: "Spot",
|
|
264
300
|
restartPolicy: "Never",
|
|
265
|
-
sku: "Standard"
|
|
301
|
+
sku: "Standard",
|
|
266
302
|
};
|
|
267
303
|
const credential = new DefaultAzureCredential();
|
|
268
304
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -273,6 +309,7 @@ function containerGroupsCreateWithPriority() {
|
|
|
273
309
|
function main() {
|
|
274
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
311
|
confidentialContainerGroup();
|
|
312
|
+
containerGroupCreateOrUpdateWithStandbyPool();
|
|
276
313
|
containerGroupCreateWithExtensions();
|
|
277
314
|
containerGroupWithEncryptionProperties();
|
|
278
315
|
containerGroupsCreateOrUpdate();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,
|
|
1
|
+
{"version":3,"file":"containerGroupsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,kBAAkB,GAAG,O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,EAAE,IAAI,EAAE,UAAU,CAAC;oBACtC,KAAK,EAAE,eAAe;oBACtB,SAAS,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE;iBACnD;aACF;YACD,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,OAAO;YACf,QAAQ,EAAE,MAAM;YAChB,aAAa,EAAE,OAAO;YACtB,GAAG,EAAE,UAAU;SAChB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,0BAA0B,CACpE,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0BAA0B,EAAE,CAAC;QAC7B,2CAA2C,EAAE,CAAC;QAC9C,kCAAkC,EAAE,CAAC;QACrC,sCAAsC,EAAE,CAAC;QACzC,6BAA6B,EAAE,CAAC;QAChC,iCAAiC,EAAE,CAAC;IACtC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,11 +16,12 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsDelete.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsDelete() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,kBAAkB,GAAG,OAAO,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,11 +16,12 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsGetPriority.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsGetWithPriority() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -33,11 +34,12 @@ function containerGroupsGetWithPriority() {
|
|
|
33
34
|
* This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
34
35
|
*
|
|
35
36
|
* @summary Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
36
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
37
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsGet_Failed.json
|
|
37
38
|
*/
|
|
38
39
|
function containerGroupsGetFailed() {
|
|
39
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
41
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
42
|
+
"00000000-0000-0000-0000-000000000000";
|
|
41
43
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
42
44
|
const containerGroupName = "demo1";
|
|
43
45
|
const credential = new DefaultAzureCredential();
|
|
@@ -50,11 +52,12 @@ function containerGroupsGetFailed() {
|
|
|
50
52
|
* This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
51
53
|
*
|
|
52
54
|
* @summary Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
53
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
55
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsGet_Succeeded.json
|
|
54
56
|
*/
|
|
55
57
|
function containerGroupsGetSucceeded() {
|
|
56
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
59
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
60
|
+
"00000000-0000-0000-0000-000000000000";
|
|
58
61
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
59
62
|
const containerGroupName = "demo1";
|
|
60
63
|
const credential = new DefaultAzureCredential();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsGetSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,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,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsGetSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC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CAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,kBAAkB,GAAG,OAAO,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;QACjC,wBAAwB,EAAE,CAAC;QAC3B,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,12 +16,13 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsListByResourceGroup.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsListByResourceGroup() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
var _a, e_1, _b, _c;
|
|
24
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
25
26
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
26
27
|
const credential = new DefaultAzureCredential();
|
|
27
28
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA,sDAAE,CAAC;gBAFmB,cAEtB;gBAFsB,WAEtB;gBAFU,IAAI,IAAI,KAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;IACvC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,12 +16,13 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
17
17
|
*
|
|
18
18
|
* @summary Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsList.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsList() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
var _a, e_1, _b, _c;
|
|
24
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
25
26
|
const credential = new DefaultAzureCredential();
|
|
26
27
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
27
28
|
const resArray = new Array();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsListSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsListSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAAhC,cAA6B;gBAA7B,WAA6B;gBAAzC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,11 +16,12 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
|
|
17
17
|
*
|
|
18
18
|
* @summary Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsRestart.json
|
|
20
20
|
*/
|
|
21
21
|
function containerRestart() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsRestartSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsRestartSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,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,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsRestartSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsRestartSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,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,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,kBAAkB,GAAG,OAAO,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC7D,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,11 +16,12 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Starts all containers in a container group. Compute resources will be allocated and billing will start.
|
|
17
17
|
*
|
|
18
18
|
* @summary Starts all containers in a container group. Compute resources will be allocated and billing will start.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsStart.json
|
|
20
20
|
*/
|
|
21
21
|
function containerStart() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsStartSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsStartSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,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,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsStartSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsStartSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,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,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,kBAAkB,GAAG,OAAO,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,iBAAiB,CAC3D,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,11 +16,12 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
|
|
17
17
|
*
|
|
18
18
|
* @summary Stops all containers in a container group. Compute resources will be deallocated and billing will stop.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsStop.json
|
|
20
20
|
*/
|
|
21
21
|
function containerStop() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demo";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsStopSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsStopSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,
|
|
1
|
+
{"version":3,"file":"containerGroupsStopSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsStopSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,MAAM,CAAC;QAC5D,MAAM,kBAAkB,GAAG,OAAO,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,IAAI,CAC9C,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance";
|
|
11
|
+
import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,15 +16,16 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Updates container group tags with specified values.
|
|
17
17
|
*
|
|
18
18
|
* @summary Updates container group tags with specified values.
|
|
19
|
-
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/
|
|
19
|
+
* x-ms-original-file: specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/examples/ContainerGroupsUpdate.json
|
|
20
20
|
*/
|
|
21
21
|
function containerGroupsUpdate() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
23
|
+
const subscriptionId = process.env["CONTAINERINSTANCE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
24
25
|
const resourceGroupName = process.env["CONTAINERINSTANCE_RESOURCE_GROUP"] || "demoResource";
|
|
25
26
|
const containerGroupName = "demo1";
|
|
26
27
|
const resource = {
|
|
27
|
-
tags: { tag1key: "tag1Value", tag2key: "tag2Value" }
|
|
28
|
+
tags: { tag1key: "tag1Value", tag2key: "tag2Value" },
|
|
28
29
|
};
|
|
29
30
|
const credential = new DefaultAzureCredential();
|
|
30
31
|
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroupsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,
|
|
1
|
+
{"version":3,"file":"containerGroupsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/containerGroupsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,cAAc,CAAC;QACpE,MAAM,kBAAkB,GAAG,OAAO,CAAC;QACnC,MAAM,QAAQ,GAAa;YACzB,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE;SACrD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|