New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Remote environments #2765
Conversation
@gkulin Is this on your radar for the release next week re. docs? |
74eae82
to
cc63758
Compare
Adds the following new components to support remote environments: What's New environment.Manager The listing, retrieval and saving of environments utilizing environment.DataStore contructs environment.LocalFileDataStore The existing local file implementation of environment state environment.StorageBlobDataStore Default implementation of storing environment state in azure blob storage config.FileConfigManager Updated to consume file paths for config storage Updated ConfigManager updated to use io.Reader and io.Writer respectively
#2699) Integrates new remote environment components into azd commands & components.
7402a16
to
1d5800e
Compare
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSIContainer
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - We did more careful reviews as the individual changes went into the feature branch, but I gave this a quick once over and it all looks good still.
Includes all aspects of remote environment feature initially targeting Azure Blob Storage.
azd
commands #2699Integrates new remote environment components into
azd
commands & components.How does remote state work?
When remote state is enabled environment state is automatically persisted to the configured remote store. Any
azd
command that writes toazd
environment orazd
environment configuration is automatically persisted.Supported Remote state backends
Azure Blob Storage
azd
writes.env
andconfig.json
files to an Azure storage blob containerConfiguration
blob.core.windows.net
Configuring remote state
Remote state for
azd
can either be configured globally in azd'sconfig.json
or per project within theazure.yaml
. If remote state is not configured, environment values and configuration are still stored locally.Schema
Remote state is configured within the
state.remote
element ofazd
configurationazure.yaml
azd config.json
azd
commandsazd env list
Lists all local and remote environments available
azd env select
When selecting an environment that does not exist locally, the remote state is copied to a new local environment.