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

CPU value validation for container #2342

Open
1 task done
OF-MarkR opened this issue Nov 6, 2024 · 0 comments
Open
1 task done

CPU value validation for container #2342

OF-MarkR opened this issue Nov 6, 2024 · 0 comments

Comments

@OF-MarkR
Copy link

OF-MarkR commented Nov 6, 2024

Resource Type

Microsoft.App/containerApps

Api Version

2024-03-01

Issue Type

Property(s) missing validation for enum values

Other Notes

Hi,

In VSCode the CPU value is not validated correct.

It gives the message:
_The property "cpu" expected a value of type "int | null" but the provided value is of type "'0.25'". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.bicep[BCP036]

Bicep Repro

resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
name: 'my-containerapp'
location: 'westeurope'
properties: {
managedEnvironmentId: EnvContainerApp.id
configuration: {
ingress: {
external: true
targetPort: 80
}
}
template: {
containers: [
{
name: 'my-container'
image: 'mcr.microsoft.com/azuredocs/containerapps-helloworld:latest'
resources: {
cpu: '0.25'
memory: '0.5Gi'
}
}
]
}
}
}

Confirm

  • I have read the troubleshooting guide and looked for duplicates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant