Describe the issue:
azd up fails for CustomResources samples with the following error:

Repro Steps:
- Run
git clone https://github.com/dotnet/aspire-samples.git.
- Run
azd auth login.
- Run
cd samples/CustomResources.
- Run
azd init.
- Run
azd up.
Environment:
- Samples: CustomResources.
- Azd version: azd version 1.19.0-beta.1-daily.5273554 (commit a9a799fcecb24305bdf57298453574e3b0ac9622).
- Branch: Main.
Expected behavior:
azd up can be successfully run for samples CustomResources
@rajeshkamal5050 for notification.