Skip to content

Commit

Permalink
Update changelog for 1.2.0 Aug - release (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhvb1989 committed Aug 9, 2023
1 parent 5a0265f commit 99ea757
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
17 changes: 10 additions & 7 deletions cli/azd/CHANGELOG.md
@@ -1,21 +1,24 @@
# Release History

## 1.1.1 (Unreleased)
## 1.2.0 (2023-08-09)

### Features Added

- [[2550]](https://github.com/Azure/azure-dev/pull/2550) Add `--preview` to `azd provision` to get the changes
- [[2521]](https://github.com/Azure/azure-dev/pull/2521) Support `--principal-id` param for azd pipeline config to reuse existing service principal
- [[2455]](https://github.com/Azure/azure-dev/pull/2455) Adds optional support for text templates in AKS k8s manifests
- [[2550]](https://github.com/Azure/azure-dev/pull/2550) Add `--preview` to `azd provision` to get the changes.
- [[2521]](https://github.com/Azure/azure-dev/pull/2521) Support `--principal-id` param for azd pipeline config to reuse existing service principal.
- [[2455]](https://github.com/Azure/azure-dev/pull/2455) Adds optional support for text templates in AKS k8s manifests.
-

### Bugs Fixed

- [[2569]](https://github.com/Azure/azure-dev/pull/2569) Fix `azd down` so it works after a failed `azd provision`
- [[2367]](https://github.com/Azure/azure-dev/pull/2367) Don't fail AKS deployment for failed environment substitution
- [[2569]](https://github.com/Azure/azure-dev/pull/2569) Fix `azd down` so it works after a failed `azd provision`.
- [[2367]](https://github.com/Azure/azure-dev/pull/2367) Don't fail AKS deployment for failed environment substitution.
- [[2576]](https://github.com/Azure/azure-dev/pull/2576) Fix `azd auth login` unable to launch browser on WSL.

### Other changes

- [[2572]](https://github.com/Azure/azure-dev/pull/2572) Decrease expiration time of service principal secret from default (24 months) to 180 days
- [[2572]](https://github.com/Azure/azure-dev/pull/2572) Decrease expiration time of service principal secret from default (24 months) to 180 days.
- [[2500]](https://github.com/Azure/azure-dev/pull/2500) Promoted Azure Spring Apps from `alpha` to `beta`.

## 1.1.0 (2023-07-12)

Expand Down
24 changes: 24 additions & 0 deletions cli/azd/pkg/infra/provisioning/bicep/bicep_provider.go
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/azure/azure-dev/cli/azd/pkg/azapi"
"github.com/azure/azure-dev/cli/azd/pkg/azure"
"github.com/azure/azure-dev/cli/azd/pkg/cmdsubst"
"github.com/azure/azure-dev/cli/azd/pkg/convert"
"github.com/azure/azure-dev/cli/azd/pkg/environment"
"github.com/azure/azure-dev/cli/azd/pkg/infra"
. "github.com/azure/azure-dev/cli/azd/pkg/infra/provisioning"
Expand Down Expand Up @@ -465,6 +466,29 @@ func (p *BicepProvider) Preview(ctx context.Context) (*DeployPreviewResult, erro
return nil, err
}

if deployPreviewResult.Error != nil {
deploymentErr := *deployPreviewResult.Error
errDetailsList := make([]string, len(deploymentErr.Details))
for index, errDetail := range deploymentErr.Details {
errDetailsList[index] = fmt.Sprintf(
"code: %s, message: %s",
convert.ToValueWithDefault(errDetail.Code, ""),
convert.ToValueWithDefault(errDetail.Message, ""),
)
}

var errDetails string
if len(errDetailsList) > 0 {
errDetails = fmt.Sprintf(" Details: %s", strings.Join(errDetailsList, "\n"))
}
return nil, fmt.Errorf(
"generating preview: error code: %s, message: %s.%s",
convert.ToValueWithDefault(deploymentErr.Code, ""),
convert.ToValueWithDefault(deploymentErr.Message, ""),
errDetails,
)
}

var changes []*DeploymentPreviewChange
for _, change := range deployPreviewResult.Properties.Changes {
resourceAfter := change.After.(map[string]interface{})
Expand Down
2 changes: 1 addition & 1 deletion cli/version.txt
@@ -1 +1 @@
1.1.1
1.2.0

0 comments on commit 99ea757

Please sign in to comment.