Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

error executing step command 'provision': failed to set secrets #581

Description

@Manu-H

After running
azd up
and setting die CustomDomain / DefultRedirectUrl deployment starts.

(✓) Done: Resource group: rg-XXXXXXX (3.69s) (✓) Done: Container Registry: XXXXXXX (12.79s) (✓) Done: Log Analytics workspace: law-XXXXXXX (20.373s) (✓) Done: Container Apps Environment: cae-XXXXXXX (1m51.743s) (✓) Done: Storage account: funcstorageaXXXXXXX (25.56s) (✓) Done: Storage account: XXXXXXX (1m19.647s)
and then fails with
ERROR: error executing step command 'provision': failed to set secrets: failed running .NET CLI secret set: exit code: 1, stdout: , stderr: Exit code: 1 Could not load the MSBuild project 'C:\XXXX\src\AppHost\Cloud5mins.ShortenerTools.AppHost.csproj'.
I adapted C:\src\azure.yaml as told in #577
Deploying to West Europe.
Docker is running, all dependencies installed.

Any idea?

Best
M

Activity

  1. lucianodgs commented on Sep 5, 2025

    @lucianodgs

    I hame same problem

    (✓) Done: Resource group: rg-azUrlShortener-prod (2.565s)
    (✓) Done: Container Registry: acrqhzo4gg6zveis (8.024s)
    (✓) Done: Log Analytics workspace: law-qhzo4gg6zveis (23.807s)
    (✓) Done: Container Apps Environment: cae-qhzo4gg6zveis (2m8.218s)
    (✓) Done: Storage account: funcstoragea17caqhzo4gg6 (22.799s)
    (✓) Done: Storage account: urldataqhzo4gg6zveis (25.154s)

    ERROR: error executing step command 'provision': failed to set secrets: failed running .NET CLI secret set: exit code: 1, stdout: , stderr: Exit code: 1
    Could not load the MSBuild project 'E:\Git\AzUrlShortener\src\AppHost\Cloud5mins.ShortenerTools.AppHost.csproj'.

  2. lucianodgs commented on Sep 5, 2025

    @lucianodgs

    Problem
    When trying to provision or build the project Cloud5mins.ShortenerTools.AppHost.csproj, the build failed with the error:

    error MSB4236: The SDK 'Aspire.AppHost.Sdk/9.3.0' specified could not be found.

    This happened because the .NET Aspire SDK was not installed and the environment only had the Visual Studio Offline Packages feed, without access to nuget.org.

    Solution

    1. Add the official NuGet.org feed

    dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org

    1. Update workload manifests

    dotnet workload update

    1. Install the Aspire workload

    dotnet workload install aspire

    Result
    After enabling the nuget.org feed and installing the Aspire workload, the project built successfully and the provisioning step executed without errors.

  3. fboucher commented on Jul 15, 2026

    @fboucher
    Contributor

    Chad Voelker (@ch-rob) please close this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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