macOS
brew install aztfexportlocal Homebrew formula metadata
安装
brew install aztfexportlocal Homebrew formula metadata
nix profile install nixpkgs#aztfexportnixpkgs package indexes · pkgs/by-name/az/aztfexport/package.nix · 来源: api.github.com
scoop install main/aztfexportScoop official bucket manifest trees · bucket/aztfexport.json · 来源: api.github.com
winget install --id Microsoft.Azure.AztfExport -eWindows Package Manager source index · Microsoft.Azure.AztfExport · 来源: cdn.winget.microsoft.com
概览
Bring your existing Azure resources under the management of Terraform
历史
Azure Export for Terraform, packaged as `aztfexport`, is Microsoft's CLI for bringing existing Azure resources under Terraform management. It addresses the awkward middle state many cloud teams reach: infrastructure exists in Azure, Terraform is the desired control plane, and manually writing imports plus HCL for every resource is error-prone work.
The Azure/aztfexport repository was created in August 2021, with v0.0.1 published the same month. The official README states the goal directly: export supported Azure resources into Terraform state and generate corresponding Terraform configuration so that `terraform plan` shows no diff against remote state.
The tool's implementation history is closely tied to the Terraform Azure ecosystem. The README says it supports both the Terraform AzureRM provider and Azure AzAPI provider, uses `aztft` to identify Terraform resource types from Azure resource IDs, runs `terraform import` under the hood, and then uses `tfadd` to generate Terraform HCL from state.
The release stream moved quickly through early 0.x releases in 2021 and 2022, reached v0.12.0 in May 2023, and continued through v0.19.0 in January 2026. Microsoft Learn now hosts scenario-oriented Azure Export for Terraform documentation alongside the GitHub README.
The official README documents several install paths: GitHub releases, `go install`, WinGet, Homebrew for Linux/macOS, Microsoft package repositories for dnf and apt, and AUR. The batch input also lists Homebrew, Nix, Scoop, and WinGet, which reflects its audience across Terraform-heavy local development, Windows admin desktops, and Linux automation environments.
Users run `aztfexport` against Azure resources or resource groups to produce Terraform state and configuration, with Terraform itself required on PATH. The generated HCL is explicitly scoped: it is meant to be consistent with remote state and suitable for management, not guaranteed to be a complete reproducible design for the infrastructure.
The tool creates `~/.aztfexport/config.json` for settings managed by `aztfexport config`, including an installation id and telemetry opt-out setting.
Aztfexport is important to package nerds because it packages a messy import workflow into a repeatable CLI while still depending on a real Terraform binary. That makes versioning and distribution matter: the user is coordinating the Azure CLI/auth environment, Terraform, provider behavior, and this exporter.
It is also a good example of a cloud-vendor tool that grew around community-adjacent components. Microsoft owns the CLI, but the README openly names `aztft` and `tfadd` as the engines behind provider-type detection and HCL generation.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.aztfexport/config.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
aztfexport | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Azure/aztfexport
安装元数据
| 软件包键 | brew:aztfexport |
|---|---|
| 版本 | 0.19.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/aztfexport |
| 主页 | https://azure.github.io/aztfexport/ |
| 仓库 | https://github.com/Azure/aztfexport |
| 上游文档 | https://github.com/Azure/aztfexport |
| 许可证 | MPL-2.0 |
| 源码归档 | https://github.com/Azure/aztfexport.git |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | aztfexport |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
aztfexport
nix profile install nixpkgs#aztfexportmain/aztfexport
scoop install main/aztfexportMicrosoft.Azure.AztfExport
winget install --id Microsoft.Azure.AztfExport -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.