Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions cli/azd/pkg/pipeline/pipeline_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,13 @@ func generatePipelineDefinition(path string, props projectProperties) error {
}
builder := strings.Builder{}
err = tmpl.Execute(&builder, struct {
BranchName string
FedCredLogIn bool
InstallDotNetAspire bool
BranchName string
FedCredLogIn bool
InstallDotNetForAspire bool
}{
BranchName: props.BranchName,
FedCredLogIn: props.AuthType == AuthTypeFederated,
InstallDotNetAspire: props.HasAppHost,
BranchName: props.BranchName,
FedCredLogIn: props.AuthType == AuthTypeFederated,
InstallDotNetForAspire: props.HasAppHost,
})
if err != nil {
return fmt.Errorf("executing template: %w", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ steps:
- pwsh: |
azd config set auth.useAzCliAuth "true"
displayName: Configure AZD to Use AZ CLI Authentication.
- task: Bash@3
displayName: Install .NET Aspire workload
- task: UseDotNet@2
inputs:
targetType: 'inline'
script: |
dotnet workload install aspire
version: '8.x'
displayName: Set up .NET 8
- task: UseDotNet@2
inputs:
version: '9.x'
displayName: Set up .NET 9

- task: AzureCLI@2
displayName: Provision Infrastructure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ jobs:
uses: actions/checkout@v4
- name: Install azd
uses: Azure/setup-azd@v2
- name: Install .NET Aspire workload
run: dotnet workload install aspire
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x.x
9.x.x

- name: Log in with Azure (Federated Credentials)
run: |
Expand Down
14 changes: 8 additions & 6 deletions cli/azd/resources/pipeline/.azdo/azure-dev.ymlt
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ steps:
- pwsh: |
azd config set auth.useAzCliAuth "true"
displayName: Configure AZD to Use AZ CLI Authentication.
{{- if .InstallDotNetAspire}}
- task: Bash@3
displayName: Install .NET Aspire workload
{{- if .InstallDotNetForAspire}}
- task: UseDotNet@2
inputs:
targetType: 'inline'
script: |
dotnet workload install aspire
Comment thread
vhvb1989 marked this conversation as resolved.
version: '8.x'
displayName: Set up .NET 8
- task: UseDotNet@2
inputs:
version: '9.x'
displayName: Set up .NET 9
{{ end }}
- task: AzureCLI@2
displayName: Provision Infrastructure
Expand Down
10 changes: 7 additions & 3 deletions cli/azd/resources/pipeline/.github/azure-dev.ymlt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ jobs:
uses: actions/checkout@v4
- name: Install azd
uses: Azure/setup-azd@v2
{{- if .InstallDotNetAspire}}
- name: Install .NET Aspire workload
run: dotnet workload install aspire
{{- if .InstallDotNetForAspire}}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x.x
9.x.x
{{ end }}
{{- if .FedCredLogIn }}
- name: Log in with Azure (Federated Credentials)
Expand Down