Azure / Azure/Azure-Spring-Apps
Container deployment fails with Invalid memory quantity '1'
- Dominant language
- No language data
- Stars
- 9
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Container deployment with Bicep fails with Invalid memory quantity '1'
I have the Bicep below
```sh
// https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-09-01-preview/spring/apps/deployments?pivots=deployment-language-bicep
resource shellcfgtestappdeployment 'Microsoft.AppPlatform/Spring/apps/deployments@2022-09-01-preview' = {
name: 'default'
parent: shellcfgtestapp
sku: {
name: azureSpringAppsSkuName
}
properties: {
active: true
deploymentSettings: {
containerProbeSettings: {
disableProbe: true
}
resourceRequests: {
cpu: any(1)
memory: any(1)
}
}
source: {
version: '1.0.0'
type: 'Container' // Jar, Container or Source https://learn.microsoft.com/en-us/azure/templates/microsoft.appplatform/2022-09-01-preview/spring/apps/deployments?pivots=deployment-language-bicep#usersourceinfo
customContainer: {
/*
args: [
'string'
]*/
command: [
'curl https://asa-petcliasa.svc.azuremicroservices.io/config/'
'curl https://github.com/ezYakaEagle442/spring-petclinic-microservices-config/blob/main/application.yml'
'curl https://github.com/ezYakaEagle442/spring-petclinic-microservices-config/Config'
]
containerImage: 'bash' // This should be in the form of {repository}:{tag} without the server name of the registry
/*imageRegistryCredential: {
password: 'string'
username: 'string'
}*/
languageFramework: 'string'
server: 'https://index.docker.io/v1' // The name of the registry that contains the container image
}
}
}
}
```
It fails with :
```console
ERROR: ***"status":"Failed","error":***"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[***"code":"BadRequest","message":"***\r\n \"error\": ***\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Invalid memory quantity '1'\",\r\n \"target\": \"value\",\r\n \"details\": null\r\n ***\r\n***"***]***
Error: Process completed with exit code 1.
```
**To Reproduce**
Steps to reproduce the behavior:
1. Run [https://github.com/ezYakaEagle442/azure-spring-apps-petclinic-mic-srv/blob/azure/.github/workflows/apply-cfg-test-deployments.yml](https://github.com/ezYakaEagle442/azure-spring-apps-petclinic-mic-srv/blob/azure/.github/workflows/apply-cfg-test-deployments.yml)
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
N/A
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.