azure-dev-cli_0.8.0-beta.1
azure-sdk
released this
10 Apr 20:57
·
1078 commits
to main
since this release
0.8.0-beta.1 (2023-04-10)
Features Added
- [#1715] Adding feature alpha toggle:
- Moving terraform provider as alpha feature. Use
azd config set alpha.terraform on
to have it enabled.
- Moving terraform provider as alpha feature. Use
- [#1833] Deploy from existing package using
--from-package
flag.
Breaking Changes
- [#1715] Using
terraform
as provisioning provider will fail and require user to enable terraform runningazd config set alpha.terraform on
. - [#1801] Restructuring specific command flags.
azd up
no longer runsazd init
. As a result, the following flags have been removed fromazd up
:--template
/-t
--location
/-l
--branch
/-b
--subscription
- Use of
--service
and--no-progress
inazd up
is being deprecated. azd deploy
now accepts a positional argument. Useazd deploy <web>
instead ofazd deploy --service <web>
- Deprecate
--no-progress
flag as it currently does nothing. A warning message is shown when used. - Hide
--output
flag in the usage printout to correctly reflect the current it's current alpha-preview status. The output contract for structured schema such as JSON has yet been finalized.
- [#1804] Adjust command aliases.
azd login
andazd logout
are now available asazd auth login
andazd auth logout
respectively.azd login
andazd logout
are still available for use, but will be removed in a future release.azd infra create
andazd infra delete
, which have always been aliases forazd provision
andazd down
, are now deprecated. The commands are still available for use, but will be removed in a future release.
- [#1824] Add working directory sensitivity for
restore
anddeploy
.azd deploy
will now deploy the current service, when the current working directory is set to a service directory.azd deploy
will deploy all services, when the current working directory is set to the project directory containingazure.yaml
- In other directories,
azd deploy
will not attempt a deployment and instead error out with suggestions.azd deploy --all
can be used to deploy all services, orazd deploy <service>
to deploy a given service always.
- [#1752] Ask fewer questions during
init
.azd init
will now only prompt for the environment name. Azure subscription and location values are prompted only when infrastructure provisioning is needed, when runningazd provision
, and consequently when runningazd up
.
Bugs Fixed
- [#1734] Fix setting
AZURE_PRINCIPAL_ID
on multi-tenant directory. - [#1738] Fix generating auth token on multi-tenant directory.
- [#1762] Allow local files to be kept when running
init
. - [#1764] Enhance zip-deploy during build for:
- Python: Do not include virtual environments for python.
- Node: Update node modules detection to exclude it from build.
- [#1857] Adds
package
command hooks to azd schema. - [#1878] Ensure default generated docker repo/tags are all lowercase.
- [#1875] Fixes panic for
postpackage
hook errors.
Other Changes
azd up
no longer runs azd init
The behavior of azd up -t <template>
can be reproduced with:
cd <empty dir>
azd init -t <template>
azd up
azd deploy
no longer deploys all services when ran in any directory
The new behavior is as follows:
azd deploy
will now deploy the current service, when the current working directory is set to a service directory.azd deploy
will deploy all services, when the current working directory is set to the project directory containingazure.yaml
.- In other directories,
azd deploy
will not attempt a deployment and error out with suggestions.azd deploy --all
can be used to deploy all services, orazd deploy <service>
to deploy a given service always.
azd up
ordering
azd up
now packages artifacts prior to running azd provision
and azd deploy
. This should not affect most users, with the exception of users that may be taking advantage of azd
's environment values in packaging staticwebapp
services. If azd up
no longer works as expected, and you are currently taking advantage of azd
's provided environment values to package your application, a predeploy
hook may be used to generate configuration files from azd
environment values. See the working example in our ToDo templates that leverage staticwebapp
, example here. Note that script hooks
automatically have azd
environment values loaded in the shell environment.