diff --git a/avm/res/container-instance/container-group/README.md b/avm/res/container-instance/container-group/README.md index e73e13b51e..98aef1d4d7 100644 --- a/avm/res/container-instance/container-group/README.md +++ b/avm/res/container-instance/container-group/README.md @@ -27,9 +27,10 @@ The following section provides usage examples for the module, which were used to - [Using only defaults](#example-1-using-only-defaults) - [Using CMK ](#example-2-using-cmk) -- [Using large parameter set](#example-3-using-large-parameter-set) -- [Using private network](#example-4-using-private-network) -- [WAF-aligned](#example-5-waf-aligned) +- [Using only defaults and low memory containers](#example-3-using-only-defaults-and-low-memory-containers) +- [Using large parameter set](#example-4-using-large-parameter-set) +- [Using private network](#example-5-using-private-network) +- [WAF-aligned](#example-6-waf-aligned) ### Example 1: _Using only defaults_ @@ -59,7 +60,7 @@ module containerGroup 'br/public:avm/res/container-instance/container-group:

-### Example 3: _Using large parameter set_ +### Example 3: _Using only defaults and low memory containers_ + +This instance deploys the module with the minimum set of required parameters and with low memory. + + +

+ +via Bicep module + +```bicep +module containerGroup 'br/public:avm/res/container-instance/container-group:' = { + name: 'containerGroupDeployment' + params: { + // Required parameters + containers: [ + { + name: 'az-aci-x-001' + properties: { + image: 'mcr.microsoft.com/azuredocs/aci-helloworld' + ports: [ + { + port: 443 + protocol: 'Tcp' + } + ] + resources: { + requests: { + cpu: 2 + memoryInGB: '0.5' + } + } + } + } + ] + ipAddressPorts: [ + { + port: 443 + protocol: 'Tcp' + } + ] + name: 'ciclow001' + // Non-required parameters + location: '' + } +} +``` + +
+

+ +

+ +via JSON parameters file + +```json +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + // Required parameters + "containers": { + "value": [ + { + "name": "az-aci-x-001", + "properties": { + "image": "mcr.microsoft.com/azuredocs/aci-helloworld", + "ports": [ + { + "port": 443, + "protocol": "Tcp" + } + ], + "resources": { + "requests": { + "cpu": 2, + "memoryInGB": "0.5" + } + } + } + } + ] + }, + "ipAddressPorts": { + "value": [ + { + "port": 443, + "protocol": "Tcp" + } + ] + }, + "name": { + "value": "ciclow001" + }, + // Non-required parameters + "location": { + "value": "" + } + } +} +``` + +
+

+ +

+ +via Bicep parameters file + +```bicep-params +using 'br/public:avm/res/container-instance/container-group:' + +// Required parameters +param containers = [ + { + name: 'az-aci-x-001' + properties: { + image: 'mcr.microsoft.com/azuredocs/aci-helloworld' + ports: [ + { + port: 443 + protocol: 'Tcp' + } + ] + resources: { + requests: { + cpu: 2 + memoryInGB: '0.5' + } + } + } + } +] +param ipAddressPorts = [ + { + port: 443 + protocol: 'Tcp' + } +] +param name = 'ciclow001' +// Non-required parameters +param location = '' +``` + +
+

+ +### Example 4: _Using large parameter set_ This instance deploys the module with most of its features enabled. @@ -505,9 +652,13 @@ module containerGroup 'br/public:avm/res/container-instance/container-group:

-### Example 4: _Using private network_ +### Example 5: _Using private network_ This instance deploys the module within a virtual network. @@ -812,7 +971,7 @@ module containerGroup 'br/public:avm/res/container-instance/container-group:

-### Example 5: _WAF-aligned_ +### Example 6: _WAF-aligned_ This instance deploys the module in alignment with the best-practices of the Azure Well-Architected Framework. @@ -1084,7 +1243,7 @@ module containerGroup 'br/public:avm/res/container-instance/container-group: