You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
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
The text was updated successfully, but these errors were encountered: