Open weikanglim opened 1 week ago
Composability synth. The synthesized infra directory has a .azure file to serve as a sentinel. If .azure exists in a directory, i.e. ./infra/foo, it means the directory ./infra/foo is "azd managed". This used to achieve the following behavior when running infra synth:
This is an interesting idea, @weikanglim. I like having a sentinel file to help azd
understand if it manages this directory or not. I'm wondering if we'll want to pick a different file name than .azure
(I'm just a little worried that it uses the same name as we use for our bookkeeping folder).
@ellismg We can pick a different name, like .azd
(what I had). I had made it gitignored to start with; I think actually it works better as a checked in source file.
May elevate using
sudo
on some platforms and configurations
bash:
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/uninstall-azd.sh | bash;
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/install-azd.sh | bash -s -- --base-url https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541 --version '' --verbose --skip-verify
pwsh:
Invoke-RestMethod 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/uninstall-azd.ps1' -OutFile uninstall-azd.ps1; ./uninstall-azd.ps1
Invoke-RestMethod 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/install-azd.ps1' -OutFile install-azd.ps1; ./install-azd.ps1 -BaseUrl 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541' -Version '' -SkipVerify -Verbose
PowerShell install
powershell -c "Set-ExecutionPolicy Bypass Process; irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/uninstall-azd.ps1' > uninstall-azd.ps1; ./uninstall-azd.ps1;"
powershell -c "Set-ExecutionPolicy Bypass Process; irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/install-azd.ps1' > install-azd.ps1; ./install-azd.ps1 -BaseUrl 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541' -Version '' -SkipVerify -Verbose;"
MSI install
powershell -c "irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4541/azd-windows-amd64.msi' -OutFile azd-windows-amd64.msi; msiexec /i azd-windows-amd64.msi /qn"
This change allows for composability to work with an existing
infra
directory unmanaged by azd.Infra provisioning. The provisioning engine has been updated to serially provision the root
./infra
, then./infra/azd
if it exists. The following behavioral changes have been applied:Composability synth. The synthesized infra directory has a
.azd
file to serve as a sentinel. If.azd
exists in a directory, i.e../infra/foo
, it means the directory./infra/foo
is "azd managed". This used to achieve the following behavior when runninginfra synth
:./infra/.azd
exists, we overwrite./infra
../infra/azd
.UX
Setup:
Preview:
Provision:
Destroy: TBD