Skip to content

Fail to run azd deploy for samples DatabaseContainers, DatabaseMigrations, VolumeMount #596

Open
@Menghua1

Description

Describe the issue:
Running the azd deploy command fails with the following error message:
Image

Repro Steps:

  1. Clone code.
  2. Run command cd samples/DatabaseContainers.
  3. Run command azd init.
  4. Run command azd up.

Environment:

Expected behavior:
azd deploy command can be executed successfully.

Suggestion:
There are two solutions:

  1. Add the following code to the <ItemGroup> tag in the DatabaseContainers.ApiService.csproj, VolumeMount.BlazorWeb.csproj, DatabaseMigrations.ApiModel.csproj and DatabaseMigrations.ApiService.csproj:
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
  1. Add the following code in the <PropertyGroup> tag in the DatabaseContainers.ApiService.csproj, VolumeMount.BlazorWeb.csproj, DatabaseMigrations.ApiModel.csproj, DatabaseMigrations.ApiService.csproj and DatabaseMigrations.MigrationService.csproj:
<NoWarn>NU1903;NU1902</NoWarn>

@rajeshkamal5050, @vhvb1989 for notification.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions