Describe the issue:
azd deploy fails for ContainerBuild samples with the following error:

Repro Steps:
- Run
git clone https://github.com/dotnet/aspire-samples.git.
- Run
azd auth login.
- Run
cd samples/ContainerBuild.
- Run
azd init.
- Run
azd up.
Environment:
- Samples: ContainerBuild.
- Azd version: azd version 1.16.1-daily.4919861 (commit f2582c2c9a504b3958d8b4d3958a6c1ba4a1ec81).
- Branch: Main.
Expected behavior:
azd deploy can be successfully run for samples ContainerBuild
@rajeshkamal5050 for notification.