Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated container-group-profile commands and added container group properties for reuse scenario #26604

Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fd752c2
Generated container-group-profile commands and added container group …
drishtipeshwani09 Oct 31, 2024
c2bc5cc
fix container instance
kaushik-ms Nov 5, 2024
fff4948
revert test change
kaushik-ms Nov 5, 2024
63b8434
try
kaushik-ms Nov 5, 2024
72e6d4c
fixes
kaushik-ms Nov 5, 2024
51982b6
test change
kaushik-ms Nov 5, 2024
87697cb
fine
kaushik-ms Nov 5, 2024
864ef3e
new object
kaushik-ms Nov 5, 2024
d9ba657
test fixes
kaushik-ms Nov 5, 2024
20bfa77
final
kaushik-ms Nov 5, 2024
599a42b
fix
kaushik-ms Nov 6, 2024
c90f77a
changes
kaushik-ms Nov 6, 2024
69f3ccd
fix
kaushik-ms Nov 6, 2024
0d7946d
Updated examples for container group profiles
drishtipeshwani09 Nov 6, 2024
42efc62
Reverted AssemblyInfo.cs
drishtipeshwani09 Nov 6, 2024
228610f
Modified the docs
drishtipeshwani09 Nov 6, 2024
0c83e5d
Modified the get cg profile doc
drishtipeshwani09 Nov 6, 2024
6abdbc4
changes
kaushik-ms Nov 6, 2024
7e9c915
Merge branch 'feature_containerinstance/new_cmdlets_20240501preview_2…
kaushik-ms Nov 6, 2024
c9e9c6f
example change
kaushik-ms Nov 6, 2024
9f51f7b
readme change
kaushik-ms Nov 6, 2024
4c79d24
Revert changes for no default object
drishtipeshwani09 Nov 6, 2024
871458e
Revert "example change"
drishtipeshwani09 Nov 6, 2024
ba51eec
Modified the parameters for default container object
drishtipeshwani09 Nov 6, 2024
eeeed49
Converting requestcpu and requestmemory as double
drishtipeshwani09 Nov 6, 2024
7c7691e
Enforcing non-nullable values for request cpu and memory
drishtipeshwani09 Nov 6, 2024
11da32c
Supressing the breaking change mentioned in the pipeline as double ->…
drishtipeshwani09 Nov 6, 2024
d8b3ca2
Reverted the changes for container instance object
drishtipeshwani09 Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
final
  • Loading branch information
kaushik-ms committed Nov 5, 2024
commit 20bfa7702230ca279e3bbb2d1e100c4ae1572876
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview+1": {
"New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$PUT+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview+1": {
"Request": {
"Method": "PUT",
"RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview",
"RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview",
"Content": "{\n \"location\": \"eastus\",\n \"properties\": {\n \"containerGroupProfile\": {\n \"id\": \"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\n \"revision\": 1\n },\n \"standbyPoolProfile\": {\n \"id\": \"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.StandbyPool/standbyContainerGroupPools/testpool\"\n },\n \"containers\": [\n {\n \"properties\": {\n \"configMap\": {\n \"keyValuePairs\": {\n \"key1\": \"value1\"\n }\n }\n },\n \"name\": \"testcg\"\n }\n ]\n }\n}",
"isContentBase64": false,
"Headers": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":true,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"testcg\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{\"key1\":\"value1\"}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-11-05T20:30:17.473Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:17Z\",\"lastTimestamp\":\"2024-11-05T20:30:17Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:07Z\",\"lastTimestamp\":\"2024-11-05T20:30:07Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:00Z\",\"lastTimestamp\":\"2024-11-05T20:30:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.0,\"cpu\":1.0}}}}],\"initContainers\":[],\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"20.241.155.210\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"containerGroupProfile\":{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\"revision\":1}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"name\":\"pool-reused-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}",
"Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":true,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"testcg\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{\"key1\":\"value1\"}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-11-05T20:30:17.473Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:17Z\",\"lastTimestamp\":\"2024-11-05T20:30:17Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:07Z\",\"lastTimestamp\":\"2024-11-05T20:30:07Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:00Z\",\"lastTimestamp\":\"2024-11-05T20:30:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.0,\"cpu\":1.0}}}}],\"initContainers\":[],\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"20.241.155.210\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"containerGroupProfile\":{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\"revision\":1}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"name\":\"pool-reused-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}",
"isContentBase64": false
}
},
Expand Down Expand Up @@ -79,14 +79,14 @@
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"status\":\"Succeeded\",\"startTime\":\"2024-11-05T20:54:16.0463398Z\"}",
"Content": "{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"status\":\"Succeeded\",\"startTime\":\"2024-11-05T20:54:16.0463398Z\"}",
"isContentBase64": false
}
},
"New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview+3": {
"New-AzContainerGroupReuseFromStandbyPool+[NoContext]+Reuses a container group from a standby pool+$GET+https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview+3": {
"Request": {
"Method": "GET",
"RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview",
"RequestUri": "https://management.azure.com/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup?api-version=2024-05-01-preview",
"Content": null,
"isContentBase64": false,
"Headers": {
Expand Down Expand Up @@ -122,7 +122,7 @@
"Content-Type": [ "application/json; charset=utf-8" ],
"Expires": [ "-1" ]
},
"Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":true,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"testcg\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{\"key1\":\"value1\"}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-11-05T20:30:17.473Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:00Z\",\"lastTimestamp\":\"2024-11-05T20:30:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:07Z\",\"lastTimestamp\":\"2024-11-05T20:30:07Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:17Z\",\"lastTimestamp\":\"2024-11-05T20:30:17Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.0,\"cpu\":1.0}}}}],\"initContainers\":[],\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"20.241.155.210\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"containerGroupProfile\":{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\"revision\":1}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg2qsb7/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"name\":\"pool-reused-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}",
"Content": "{\"properties\":{\"sku\":\"Standard\",\"isCreatedFromStandbyPool\":true,\"provisioningState\":\"Succeeded\",\"provisioningTimeoutInSeconds\":1800,\"isCustomProvisioningTimeout\":false,\"containers\":[{\"name\":\"testcg\",\"properties\":{\"image\":\"mcr.microsoft.com/azuredocs/aci-helloworld:latest\",\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"environmentVariables\":[],\"configMap\":{\"keyValuePairs\":{\"key1\":\"value1\"}},\"instanceView\":{\"restartCount\":0,\"currentState\":{\"state\":\"Running\",\"startTime\":\"2024-11-05T20:30:17.473Z\",\"detailStatus\":\"\"},\"events\":[{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:00Z\",\"lastTimestamp\":\"2024-11-05T20:30:00Z\",\"name\":\"Pulling\",\"message\":\"pulling image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:07Z\",\"lastTimestamp\":\"2024-11-05T20:30:07Z\",\"name\":\"Pulled\",\"message\":\"Successfully pulled image \\\"mcr.microsoft.com/azuredocs/aci-helloworld@sha256:b9cec4d6b50c6bf25e3f7f93bdc1628e5dca972cf132d38ed8f5bc955bb179c3\\\"\",\"type\":\"Normal\"},{\"count\":1,\"firstTimestamp\":\"2024-11-05T20:30:17Z\",\"lastTimestamp\":\"2024-11-05T20:30:17Z\",\"name\":\"Started\",\"message\":\"Started container\",\"type\":\"Normal\"}]},\"resources\":{\"requests\":{\"memoryInGB\":1.0,\"cpu\":1.0}}}}],\"initContainers\":[],\"ipAddress\":{\"ports\":[{\"protocol\":\"TCP\",\"port\":80}],\"ip\":\"20.241.155.210\",\"type\":\"Public\"},\"osType\":\"Linux\",\"instanceView\":{\"events\":[],\"state\":\"Running\"},\"containerGroupProfile\":{\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/azcliresources/providers/Microsoft.ContainerInstance/containerGroupProfiles/testcg\",\"revision\":1}},\"id\":\"/subscriptions/da28f5e5-aa45-46fe-90c8-053ca49ab4b5/resourceGroups/test-rg9iwau/providers/Microsoft.ContainerInstance/containerGroups/pool-reused-containergroup\",\"name\":\"pool-reused-containergroup\",\"type\":\"Microsoft.ContainerInstance/containerGroups\",\"location\":\"eastus\"}",
"isContentBase64": false
}
}
Expand Down
Loading