This release is a pre-release and may not be stable for production use.
Microsoft Azure SDK for Python
This is the Microsoft Azure Terraform Management Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.10+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-terraform
pip install azure-identity
Authentication
By default, Microsoft Entra token authentication depends on correct configuration of the following environment variables.
AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.
In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.terraform import TerraformMgmtClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = TerraformMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Terraform Management on docs.microsoft.com
- Azure Python Mgmt SDK Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
1.0.0b2 (2026-08-27)
Features Added
- Client
TerraformMgmtClientadded parametercloud_settingin method__init__ - Model
BaseExportModeladded propertyexclude_azure_resource - Model
BaseExportModeladded propertyexclude_terraform_resource - Model
BaseExportModeladded propertyinclude_extensions - Model
BaseExportModeladded propertyinclude_managed_resource - Model
BaseExportModeladded propertyinclude_role_assignment - Model
ExportQueryadded propertyauthorization_scope_filter - Model
ExportQueryadded propertyexclude_azure_resource - Model
ExportQueryadded propertyexclude_terraform_resource - Model
ExportQueryadded propertyinclude_extensions - Model
ExportQueryadded propertyinclude_managed_resource - Model
ExportQueryadded propertyinclude_resource_group - Model
ExportQueryadded propertyinclude_role_assignment - Model
ExportQueryadded propertytable - Model
ExportResourceadded propertyexclude_azure_resource - Model
ExportResourceadded propertyexclude_terraform_resource - Model
ExportResourceadded propertyinclude_extensions - Model
ExportResourceadded propertyinclude_managed_resource - Model
ExportResourceadded propertyinclude_resource_group - Model
ExportResourceadded propertyinclude_role_assignment - Model
ExportResourceadded propertyrecursive - Model
ExportResourceGroupadded propertyexclude_azure_resource - Model
ExportResourceGroupadded propertyexclude_terraform_resource - Model
ExportResourceGroupadded propertyinclude_extensions - Model
ExportResourceGroupadded propertyinclude_managed_resource - Model
ExportResourceGroupadded propertyinclude_role_assignment - Model
ExportResultadded propertyimport_property - Model
TerraformOperationStatusadded propertyid - Added enum
AuthorizationScopeFilter - Added enum
AzureExtensionResourceType
1.0.0b1 (2024-11-21)
Other Changes
- Initial version
Metadata
Release files for azure-mgmt-terraform 1.0.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| azure_mgmt_terraform-1.0.0b2.tar.gz | 61.6 kB | Without provenance | Details for azure_mgmt_terraform-1.0.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azure_mgmt_terraform-1.0.0b2-py3-none-any.whl | Python 3 | none | any | Details for azure_mgmt_terraform-1.0.0b2-py3-none-any.whl |
Total release size: 129.8 kB
Release files / azure_mgmt_terraform-1.0.0b2.tar.gz
| Download URL | azure_mgmt_terraform-1.0.0b2.tar.gz |
|---|---|
| Size | 61.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4d12792269875c7dff703d3613ee606a16bb50eba2a6ef39f602d10eb1c2acc
|
|
BLAKE2b-256 checksum How to use checksums |
3fec09b48472db2fa0bc75bc0dfa333dd8f848532364e937b53db04b9a58e3de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / azure_mgmt_terraform-1.0.0b2-py3-none-any.whl
| Download URL | azure_mgmt_terraform-1.0.0b2-py3-none-any.whl |
|---|---|
| Size | 68.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9d4eae316c367cb729d8f8311d431312efc6801b2d10529ec22c94cc3c2d7c7
|
|
BLAKE2b-256 checksum How to use checksums |
a92f6f8a60a3dba6332e557ed01f1c74777c710ea2ce74af4a1556ef8668bcf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Security for azure-mgmt-terraform 1.0.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.