-
Notifications
You must be signed in to change notification settings - Fork 562
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
PublishAsAzureContainerApp with Resources results in broken bicep #8000
Comments
cc @tg-msft |
Those are known warnings we need to fix, but they don't cause deployment errors. This is different to what @Fabian-Schmidt is running into |
I got the following workaround for the issue: container.Resources.Cpu = Azure.Provisioning.Expressions.BicepFunction.ParseJson("0.25").Compile();
container.Resources.Memory = "0.5Gi"; This results in the following working bicep: resources: {
cpu: json('0.25')
memory: '0.5Gi'
} A bit bizarre to write it like this. Hopefully this can be fixed so I can remove this hack. |
Yes this is clearly a bug in the Azure.Provisioning libraries. |
is this somehow related to #7685 ? |
I don't know how they are related. |
Is there an existing issue for this?
Describe the bug
When publishing an Azure Container App and configuring the resources results in not working bicep template.
The AppHost C# Code is:
Please note the
Cpu
field is of typeBicepValue<double>
.The resulting bicep template:
During
azd up
process the following is thrown:Expected Behavior
The bicep template is working and the container is deployed with the configured cpu and memory settings.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
Anything else?
The text was updated successfully, but these errors were encountered: