Azure / Azure/bicep-types-az

Azure Containee groups: MemoryInGb should support decimal values

Open
#1,369 3 comments 2 reactions 0 assignees View on GitHub
Container Instances inaccuracy Service Attention
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

### Resource Type

Microsoft.ContainerInstance/containerGroups

### Api Version

2022-09-01

### Issue Type

Inaccurate property type(s)

### Other Notes

`properties.containers. properties.resources.requests.memoryInGB` schema should - I believe - support `string` type as requested memory can also be a decimal. i.e. `1.5Gb`

### Bicep Repro

```
resource apiContainerGroup 'Microsoft.ContainerInstance/containerGroups@2022-09-01' = {
...
properties: {
containers: [
{
...
properties: {
...
resources: {
requests: {
memoryInGB: '1.5'
}
}
}
}
]
...
}
}
```

### Confirm

- [X] I have searched this repository and have not found similar issue reports.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the definition for Microsoft.ContainerInstance/containerGroups@2022-09-01 and inspect the type of properties.containers.properties.resources.requests.memoryInGB. Confirm how the schema represents values such as '1.5', then verify that decimal memory requests are accepted without invalidating existing integer values.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.