Announcing Azure Terrafy and AzAPI Terraform Provider Previews

Published Apr 12 2022 09:00 AM 25.3K Views
Senior Member

Overview

 

Infrastructure modernization these days typically involves one or more public clouds which enables the most agility, innovation and future proof for your business. A key component that enables businesses to manage their cloud infrastructure in a repeatable, understandable, and safe way is Infrastructure as Code (IaC) Tooling.

 

On Azure, businesses may choose many flavors of IaC tooling to manage their Azure resources including HashiCorp Terraform, Bicep, ARM templates, Ansible and many more. We encourage you to choose the IaC tool that best suits your needs. Our mission is to ensure that no matter which tool you choose, you have the best experience and integration with Azure.

 

To that end, we’re making it easier for you to use HashiCorp Terraform with Azure in two significan ways:

  • By strengthening some of the challenges that our customers have shared with us around Azure Terraform resource support and coverage.
  • By helping export Azure resources into HCL files so that you can manage your infrastructure declaratively using Terraform with Azure.

 

We are excited to be releasing preview versions of a few new tools that we hope and expect will make your experience with using Terraform on Azure even better than it already is.

 

Scenarios

 

Before we dive into the details of the new tooling, let’s take a look at a few scenarios that may resonate with you.

 

Getting started

 

Even if you are familiar with Terraform and Azure, sometimes it can be a challenge to determine how to author a Terraform configuration that will result in the exact infrastructure that you are looking for.  This typically results in an iterative process where you define a configuration, apply it, then visit the portal to determine if the infrastructure looks like you expected. This is very time consuming, and we are here to help.

 

Existing Infrastructure

 

Your current infrastructure was set up by you or someone who came before you. It may have been around “forever,” so who really knows exactly what the settings are now. You’ve adopted IaC for all new deployments and need to make some minor changes to this existing infrastructure or maybe even duplicate it. This sort of task looks daunting, but we’re here to help.

 

Azure Preview Functionality

 

The Azure team works hard to add features and functionality that will make your jobs easier. This new functionality is ordinarily released in phases, starting with private and then public preview and, finally, it is stable and made generally available. Many customers, like you, use Terraform to manage their infrastructure and are eager to adopt these new features. Terraform does not usually support these features until the final, generally available stage. This can results in clunky IaC workarounds, but we are here to help.

 

Escape Hatch

 

Azure has a vast cornucopia of services and features that are continually expanding and changing. Terraform supports the vast majority of them, but when you need to manage a features or service that is not yet supported, you end up having to fall back on imperfect work arounds, or “escape hatches,” that do not take advantage of all of the goodness you expect from Terraform. This is less than ideal, but we are here to help.

 

Remove Escape Hatch

 

With the aforementioned escape hatches are put in place, you can breathe a sigh of relief and get on with the rest of your work. Then the day comes when the “official” support is added to Terraform, and you want to remove those workarounds. The trick nw is to remove the workarounds without having to destroy your infrastructure and redeploy it. This process is anything but straight forward, but we are here to help.

 

New tools

 

We want your experience using Terraform with Azure to be delightful, and are super excited to share these open-source tools with you. The preview versions of these tools are available to use today. We invite you to download them and get started.

 

Azure Terrafy (aztfy)

Scenarios: Getting Started with Terraform, Migrating Existing Infrastructure

 

With Azure Terrafy, you can quickly and easily turn existing Azure infrastructure into Terraform HCL and will import to Terraform state. After you have completed importing your infrastructure, you can be manage it with your standard IaC processes.

 

Here’s how:

  1. Simply specify the Azure resource group that has the resources that you wish to start managing with Terraform,
    MarkGray_0-1649203950266.png
  2. Verify that the AzureRM resource types and resource names are what you expect,
    MarkGray_1-1649281793525.png
  3. aztfy will do the hard work of creating the HCL, complete with dependencies, and updating the state.
    MarkGray_1-1649204318159.png
  4. Finally, validate that your configuration matches your infrastructure by running.
    MarkGray_2-1649204366822.png
  5. The output confirms what you want to know:
    MarkGray_2-1649281849442.png

 

Learn more about aztfy from the GitHub repo and download the latest binaries for your OS.

 

AzAPI Terraform provider

Scenarios: Azure Preview Functionality, Escape Hatch, Remove Escape hatch

 

The AzAPI provider is a very thin layer on top of the Azure ARM REST APIs. Use this new provider to authenticate to - and manage - Azure resources and functionality using the Azure Resource Manager APIs directly. This provider compliments the Azure Resource Manager provider (AzureRM provider) by enabling the management of Azure resources that are not yet or might never be supported in the AzureRM provider, such as private and public preview services and features.

 

Unlike some of the workarounds that you might currently be using to manage preview features and functionality such as a null resource to call the Azure CLI, this provider and resources are fully compatible with Terraform. This compatibility ensures that you get all the benefits of Terraform that you rely on.

 

To allow you to manage all Azure resources and features with this provider without requiring updates, the provider includes the following generic resources:

Resource Name Description
azapi_resource

Used to fully manage any Azure (control plane) resource (API) with full CRUD. Example use cases:

  • New preview service
  • New feature added to existing service.
  • Existing feature / service not currently covered
azapi_update_resource

Used to manage resources or parts of resources that do not have full CRUD. Example use cases:

  • Update new properties on an existing service.
  • Update pre-created child resource (e.g. DNS SOA record)

 

Examples
  1. Configure a resource that does not currently exist in the AzureRM provider.MarkGray_0-1649279382934.png
  2. Configure a preview property for an existing resource from AzureRM.MarkGray_1-1649279466260.png

 

Finally, to ensure your experience using the AzAPI provider — from authoring your configuration to migrating to the AzureRM provider—is as easy and streamlined as possible, we’ve created the following tools:

  • The Visual Studio Code extension and language server provides a rich authoring experience, complete with intellisense, code completion, hints, syntax validation, quick info and many other key features.
  • The AzureRM provider provides the best and most integrated Terraform experience for managing Azure resources. Although the AzAPI provider may be used while a service or feature is in preview, we expect customers to move to the AzureRM provider once the service is officially released. To streamline this migration from the AzAPI provider to the AzureRM provider, we have created the AzAPI2AzureRM tool to automate the process of converting AzAPI resources to AzureRM resources.

 

Learn more about AzAPI provider and associated tools on Microsoft Docs.

 

Let us hear from you

 

We look forward to hearing your feedback! Feel free to ask a question, report a problem or suggest a feature by opening an issue in our GitHub repo. If someone else has already mentioned the issue you want to report, let us know it is important to you as well by reacting to the issue with a thumbs-up emoji. To help ensure these tools perform well for you and everyone else, consider tracking the status of your issue and working with us directly in the discussions area.

 

We would love your continued feedback on Azure Terraform deployments. If you are interested in deeper conversations with the engineering team, sign up for our Azure Terraform community calls.

18 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-3270937%22%20slang%3D%22en-US%22%3EAnnouncing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3270937%22%20slang%3D%22en-US%22%3E%3CDIV%3E%0A%3CH2%20id%3D%22toc-hId-393643525%22%20id%3D%22toc-hId-416008847%22%20id%3D%22toc-hId-416008847%22%20id%3D%22toc-hId-416008847%22%20id%3D%22toc-hId-416008847%22%20id%3D%22toc-hId-416008847%22%20id%3D%22toc-hId-416008847%22%20id%3D%22toc-hId-416008847%22%3E%3CFONT%20color%3D%22%230000FF%22%3EOverview%3C%2FFONT%3E%3C%2FH2%3E%0A%3C%2FDIV%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EInfrastructure%20modernization%20these%20days%20typically%20involves%20one%20or%20more%20public%20clouds%20which%20enables%20the%20most%20agility%2C%20innovation%20and%20future%20proof%20for%20your%20business.%20A%20key%20component%20that%20enables%20businesses%20to%20manage%20their%20cloud%20infrastructure%20in%20a%20repeatable%2C%20understandable%2C%20and%20safe%20way%20is%20Infrastructure%20as%20Code%20(IaC)%20Tooling.%3C%2FP%3E%0A%3CP%20class%3D%22%22%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%20data-unlink%3D%22true%22%3EOn%20Azure%2C%20businesses%20may%20choose%20many%20flavors%20of%20IaC%20tooling%20to%20manage%20their%20Azure%20resources%20including%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdeveloper%2Fterraform%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EHashiCorp%20Terraform%2C%20%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Fbicep%2Foverview%3Ftabs%3Dbicep%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBicep%2C%20%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Foverview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EARM%20templates%2C%20%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdeveloper%2Fansible%2Foverview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAnsible%3C%2FA%3E%26nbsp%3Band%20many%20more.%20We%20encourage%20you%20to%20choose%20the%20IaC%20tool%20that%20best%20suits%20your%20needs.%20Our%20mission%20is%20to%20ensure%20that%20no%20matter%20which%20tool%20you%20choose%2C%20you%20have%20the%20best%20experience%20and%20integration%20with%20Azure.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3ETo%20that%20end%2C%20we%E2%80%99re%20making%20it%20easier%20for%20you%20to%20use%20HashiCorp%20Terraform%20with%20Azure%20in%20two%20significan%20ways%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3E%3CSPAN%3EBy%20strengthening%20some%20of%20the%20challenges%20that%20our%20customers%20have%20shared%20with%20us%20around%20Azure%20Terraform%20resource%20support%20and%20coverage.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CSPAN%3E%3CSPAN%3EBy%20helping%20export%20Azure%20resources%20into%20HCL%20files%20so%20that%20you%20can%20manage%20your%20infrastructure%20declaratively%20using%20Terraform%20with%20Azure.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EWe%20are%20excited%20to%20be%20releasing%20preview%20versions%20of%20a%20few%20new%20tools%20that%20we%20hope%20and%20expect%20will%20make%20your%20experience%20with%20using%20Terraform%20on%20Azure%20even%20better%20than%20it%20already%20is.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1413810938%22%20id%3D%22toc-hId--1391445616%22%20id%3D%22toc-hId--1391445616%22%20id%3D%22toc-hId--1391445616%22%20id%3D%22toc-hId--1391445616%22%20id%3D%22toc-hId--1391445616%22%20id%3D%22toc-hId--1391445616%22%20id%3D%22toc-hId--1391445616%22%3E%3CFONT%20color%3D%22%230000FF%22%3EScenarios%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EBefore%20we%20dive%20into%20the%20details%20of%20the%20new%20tooling%2C%20let%E2%80%99s%20take%20a%20look%20at%20a%20few%20scenarios%20that%20may%20resonate%20with%20you.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--723249464%22%20id%3D%22toc-hId--700884142%22%20id%3D%22toc-hId--700884142%22%20id%3D%22toc-hId--700884142%22%20id%3D%22toc-hId--700884142%22%20id%3D%22toc-hId--700884142%22%20id%3D%22toc-hId--700884142%22%20id%3D%22toc-hId--700884142%22%3EGetting%20started%3C%2FH3%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EEven%20if%20you%20are%20familiar%20with%20Terraform%20and%20Azure%2C%20sometimes%20it%20can%20be%20a%20challenge%20to%20determine%20how%20to%20author%20a%20Terraform%20configuration%20that%20will%20result%20in%20the%20exact%20infrastructure%20that%20you%20are%20looking%20for.%20%26nbsp%3BThis%20typically%20results%20in%20an%20iterative%20process%20where%20you%20define%20a%20configuration%2C%20apply%20it%2C%20then%20visit%20the%20portal%20to%20determine%20if%20the%20infrastructure%20looks%20like%20you%20expected.%20This%20is%20very%20time%20consuming%2C%20and%20we%20are%20here%20to%20help.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1764263369%22%20id%3D%22toc-hId-1786628691%22%20id%3D%22toc-hId-1786628691%22%20id%3D%22toc-hId-1786628691%22%20id%3D%22toc-hId-1786628691%22%20id%3D%22toc-hId-1786628691%22%20id%3D%22toc-hId-1786628691%22%20id%3D%22toc-hId-1786628691%22%3EExisting%20Infrastructure%3C%2FH3%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EYour%20current%20infrastructure%20was%20set%20up%20by%20you%20or%20someone%20who%20came%20before%20you.%20It%20may%20have%20been%20around%20%E2%80%9Cforever%2C%E2%80%9D%20so%20who%20really%20knows%20exactly%20what%20the%20settings%20are%20now.%20You%E2%80%99ve%20adopted%20IaC%20for%20all%20new%20deployments%20and%20need%20to%20make%20some%20minor%20changes%20to%20this%20existing%20infrastructure%20or%20maybe%20even%20duplicate%20it.%20This%20sort%20of%20task%20looks%20daunting%2C%20but%20we%E2%80%99re%20here%20to%20help.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--43191094%22%20id%3D%22toc-hId--20825772%22%20id%3D%22toc-hId--20825772%22%20id%3D%22toc-hId--20825772%22%20id%3D%22toc-hId--20825772%22%20id%3D%22toc-hId--20825772%22%20id%3D%22toc-hId--20825772%22%20id%3D%22toc-hId--20825772%22%3EAzure%20Preview%20Functionality%3C%2FH3%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EThe%20Azure%20team%20works%20hard%20to%20add%20features%20and%20functionality%20that%20will%20make%20your%20jobs%20easier.%20This%20new%20functionality%20is%20ordinarily%20released%20in%20phases%2C%20starting%20with%20private%20and%20then%20public%20preview%20and%2C%20finally%2C%20it%20is%20stable%20and%20made%20generally%20available.%20Many%20customers%2C%20like%20you%2C%20use%20Terraform%20to%20manage%20their%20infrastructure%20and%20are%20eager%20to%20adopt%20these%20new%20features.%20Terraform%20does%20not%20usually%20support%20these%20features%20until%20the%20final%2C%20generally%20available%20stage.%20This%20can%20results%20in%20clunky%20IaC%20workarounds%2C%20but%20we%20are%20here%20to%20help.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1850645557%22%20id%3D%22toc-hId--1828280235%22%20id%3D%22toc-hId--1828280235%22%20id%3D%22toc-hId--1828280235%22%20id%3D%22toc-hId--1828280235%22%20id%3D%22toc-hId--1828280235%22%20id%3D%22toc-hId--1828280235%22%20id%3D%22toc-hId--1828280235%22%3EEscape%20Hatch%3C%2FH3%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EAzure%20has%20a%20vast%20cornucopia%20of%20services%20and%20features%20that%20are%20continually%20expanding%20and%20changing.%20Terraform%20supports%20the%20vast%20majority%20of%20them%2C%20but%20when%20you%20need%20to%20manage%20a%20features%20or%20service%20that%20is%20not%20yet%20supported%2C%20you%20end%20up%20having%20to%20fall%20back%20on%20imperfect%20work%20arounds%2C%20or%20%E2%80%9Cescape%20hatches%2C%E2%80%9D%20that%20do%20not%20take%20advantage%20of%20all%20of%20the%20goodness%20you%20expect%20from%20Terraform.%20This%20is%20less%20than%20ideal%2C%20but%20we%20are%20here%20to%20help.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-636867276%22%20id%3D%22toc-hId-659232598%22%20id%3D%22toc-hId-659232598%22%20id%3D%22toc-hId-659232598%22%20id%3D%22toc-hId-659232598%22%20id%3D%22toc-hId-659232598%22%20id%3D%22toc-hId-659232598%22%20id%3D%22toc-hId-659232598%22%3ERemove%20Escape%20Hatch%3C%2FH3%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EWith%20the%20aforementioned%20escape%20hatches%20are%20put%20in%20place%2C%20you%20can%20breathe%20a%20sigh%20of%20relief%20and%20get%20on%20with%20the%20rest%20of%20your%20work.%20Then%20the%20day%20comes%20when%20the%20%E2%80%9Cofficial%E2%80%9D%20support%20is%20added%20to%20Terraform%2C%20and%20you%20want%20to%20remove%20those%20workarounds.%20The%20trick%20nw%20is%20to%20remove%20the%20workarounds%20without%20having%20to%20destroy%20your%20infrastructure%20and%20redeploy%20it.%20This%20process%20is%20anything%20but%20straight%20forward%2C%20but%20we%20are%20here%20to%20help.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-626364172%22%20id%3D%22toc-hId-648729494%22%20id%3D%22toc-hId-648729494%22%20id%3D%22toc-hId-648729494%22%20id%3D%22toc-hId-648729494%22%20id%3D%22toc-hId-648729494%22%20id%3D%22toc-hId-648729494%22%20id%3D%22toc-hId-648729494%22%3E%3CFONT%20color%3D%22%230000FF%22%3ENew%20tools%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EWe%20want%20your%20experience%20using%20Terraform%20with%20Azure%20to%20be%20delightful%2C%20and%20are%20super%20excited%20to%20share%20these%20open-source%20tools%20with%20you.%20The%20preview%20versions%20of%20these%20tools%20are%20available%20to%20use%20today.%20We%20invite%20you%20to%20download%20them%20and%20get%20started.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1316925646%22%20id%3D%22toc-hId-1339290968%22%20id%3D%22toc-hId-1339290968%22%20id%3D%22toc-hId-1339290968%22%20id%3D%22toc-hId-1339290968%22%20id%3D%22toc-hId-1339290968%22%20id%3D%22toc-hId-1339290968%22%20id%3D%22toc-hId-1339290968%22%3EAzure%20Terrafy%20(aztfy)%3C%2FH3%3E%0A%3CP%20class%3D%22%22%3E%3CI%3EScenarios%3A%20Getting%20Started%20with%20Terraform%2C%20Migrating%20Existing%20Infrastructure%3C%2FI%3E%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EWith%20Azure%20Terrafy%2C%20you%20can%20quickly%20and%20easily%20turn%20existing%20Azure%20infrastructure%20into%20Terraform%20HCL%20and%20will%20import%20to%20Terraform%20state.%20After%20you%20have%20completed%20importing%20your%20infrastructure%2C%20you%20can%20be%20manage%20it%20with%20your%20standard%20IaC%20processes.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EHere%E2%80%99s%20how%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESimply%20specify%20the%20Azure%20resource%20group%20that%20has%20the%20resources%20that%20you%20wish%20to%20start%20managing%20with%20Terraform%2C%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_0-1649203950266.png%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361648i5DB14E9EB5839282%2Fimage-size%2Fsmall%3Fv%3Dv2%26amp%3Bpx%3D200%22%20role%3D%22button%22%20title%3D%22MarkGray_0-1649203950266.png%22%20alt%3D%22MarkGray_0-1649203950266.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EVerify%20that%20the%20AzureRM%20resource%20types%20and%20resource%20names%20are%20what%20you%20expect%2C%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_1-1649281793525.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361931i58FBD105ADDF9256%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MarkGray_1-1649281793525.png%22%20alt%3D%22MarkGray_1-1649281793525.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3Eaztfy%20will%20do%20the%20hard%20work%20of%20creating%20the%20HCL%2C%20complete%20with%20dependencies%2C%20and%20updating%20the%20state.%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_1-1649204318159.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361651iE4A9F311B67E5866%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MarkGray_1-1649204318159.png%22%20alt%3D%22MarkGray_1-1649204318159.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EFinally%2C%20validate%20that%20your%20configuration%20matches%20your%20infrastructure%20by%20running.%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_2-1649204366822.png%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361652i5388693B6F5F5E1E%2Fimage-size%2Fsmall%3Fv%3Dv2%26amp%3Bpx%3D200%22%20role%3D%22button%22%20title%3D%22MarkGray_2-1649204366822.png%22%20alt%3D%22MarkGray_2-1649204366822.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EThe%20output%20confirms%20what%20you%20want%20to%20know%3A%20%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_2-1649281849442.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361932i3E6FBB74491A010D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MarkGray_2-1649281849442.png%22%20alt%3D%22MarkGray_2-1649281849442.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELearn%20more%20about%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fazure%2Faztfy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eaztfy%3C%2FA%3E%20from%20the%20GitHub%20repo%20and%20download%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Faztfy%2Freleases%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Elatest%20binaries%3C%2FA%3E%20for%20your%20OS.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--490528817%22%20id%3D%22toc-hId--468163495%22%20id%3D%22toc-hId--468163495%22%20id%3D%22toc-hId--468163495%22%20id%3D%22toc-hId--468163495%22%20id%3D%22toc-hId--468163495%22%20id%3D%22toc-hId--468163495%22%20id%3D%22toc-hId--468163495%22%3EAzAPI%20Terraform%20provider%3C%2FH3%3E%0A%3CP%3E%3CEM%3EScenarios%3A%20Azure%20Preview%20Functionality%2C%20Escape%20Hatch%2C%20Remove%20Escape%20hatch%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20AzAPI%20provider%20is%20a%20very%20thin%20layer%20on%20top%20of%20the%20Azure%20ARM%20REST%20APIs.%20Use%20this%20new%20provider%20to%20authenticate%20to%20-%20and%20manage%20-%20Azure%20resources%20and%20functionality%20using%20the%20Azure%20Resource%20Manager%20APIs%20directly.%20This%20provider%20compliments%20the%20Azure%20Resource%20Manager%20provider%20(AzureRM%20provider)%20by%20enabling%20the%20management%20of%20Azure%20resources%20that%20are%20not%20yet%20or%20might%20never%20be%20supported%20in%20the%20AzureRM%20provider%2C%20such%20as%20private%20and%20public%20preview%20services%20and%20features.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnlike%20some%20of%20the%20workarounds%20that%20you%20might%20currently%20be%20using%20to%20manage%20preview%20features%20and%20functionality%20such%20as%20a%20null%20resource%20to%20call%20the%20Azure%20CLI%2C%20this%20provider%20and%20resources%20are%20fully%20compatible%20with%20Terraform.%20This%20compatibility%20ensures%20that%20you%20get%20all%20the%20benefits%20of%20Terraform%20that%20you%20rely%20on.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20allow%20you%20to%20manage%20all%20Azure%20resources%20and%20features%20with%20this%20provider%20without%20requiring%20updates%2C%20the%20provider%20includes%20the%20following%20generic%20resources%3A%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2226.76767676767677%25%22%3EResource%20Name%3C%2FTD%3E%0A%3CTD%20width%3D%2273.23232323232322%25%22%3EDescription%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2226.76767676767677%25%22%3Eazapi_resource%3C%2FTD%3E%0A%3CTD%20width%3D%2273.23232323232322%25%22%3E%3CP%3EUsed%20to%20fully%20manage%20any%20Azure%20(control%20plane)%20resource%20(API)%20with%20full%20CRUD.%20Example%20use%20cases%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ENew%20preview%20service%3C%2FLI%3E%0A%3CLI%3ENew%20feature%20added%20to%20existing%20service.%3C%2FLI%3E%0A%3CLI%3EExisting%20feature%20%2F%20service%20not%20currently%20covered%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2226.76767676767677%25%22%3Eazapi_update_resource%3C%2FTD%3E%0A%3CTD%20width%3D%2273.23232323232322%25%22%3E%3CP%3EUsed%20to%20manage%20resources%20or%20parts%20of%20resources%20that%20do%20not%20have%20full%20CRUD.%20Example%20use%20cases%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUpdate%20new%20properties%20on%20an%20existing%20service.%3C%2FLI%3E%0A%3CLI%3EUpdate%20pre-created%20child%20resource%20(e.g.%20DNS%20SOA%20record)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20id%3D%22toc-hId-1559985975%22%20id%3D%22toc-hId-1582351297%22%20id%3D%22toc-hId-1582351297%22%20id%3D%22toc-hId-1582351297%22%20id%3D%22toc-hId-1582351297%22%20id%3D%22toc-hId-1582351297%22%20id%3D%22toc-hId-1582351297%22%20id%3D%22toc-hId-1582351297%22%3EExamples%3C%2FH5%3E%0A%3COL%3E%0A%3CLI%3EConfigure%20a%20resource%20that%20does%20not%20currently%20exist%20in%20the%20AzureRM%20provider.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_0-1649279382934.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361918i1A317DFA5B2E37B8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MarkGray_0-1649279382934.png%22%20alt%3D%22MarkGray_0-1649279382934.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EConfigure%20a%20preview%20property%20for%20an%20existing%20resource%20from%20AzureRM.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MarkGray_1-1649279466260.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361919iBAC0A6D6E499BD40%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MarkGray_1-1649279466260.png%22%20alt%3D%22MarkGray_1-1649279466260.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinally%2C%20to%20ensure%20your%20experience%20using%20the%20AzAPI%20provider%20%E2%80%94%20from%20authoring%20your%20configuration%20to%20migrating%20to%20the%20AzureRM%20provider%E2%80%94is%20as%20easy%20and%20streamlined%20as%20possible%2C%20we%E2%80%99ve%20created%20the%20following%20tools%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20Visual%20Studio%20Code%20extension%20and%20language%20server%20provides%20a%20rich%20authoring%20experience%2C%20complete%20with%20intellisense%2C%20code%20completion%2C%20hints%2C%20syntax%20validation%2C%20quick%20info%20and%20many%20other%20key%20features.%3C%2FLI%3E%0A%3CLI%3EThe%20AzureRM%20provider%20provides%20the%20best%20and%20most%20integrated%20Terraform%20experience%20for%20managing%20Azure%20resources.%20Although%20the%20AzAPI%20provider%20may%20be%20used%20while%20a%20service%20or%20feature%20is%20in%20preview%2C%20we%20expect%20customers%20to%20move%20to%20the%20AzureRM%20provider%20once%20the%20service%20is%20officially%20released.%20To%20streamline%20this%20migration%20from%20the%20AzAPI%20provider%20to%20the%20AzureRM%20provider%2C%20we%20have%20created%20the%20AzAPI2AzureRM%20tool%20to%20automate%20the%20process%20of%20converting%20AzAPI%20resources%20to%20AzureRM%20resources.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELearn%20more%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdeveloper%2Fterraform%2Foverview-azapi-provider%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzAPI%20provider%20and%20associated%20tools%3C%2FA%3E%20on%20Microsoft%20Docs.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--634716645%22%20id%3D%22toc-hId--612351323%22%20id%3D%22toc-hId--612351323%22%20id%3D%22toc-hId--612351323%22%20id%3D%22toc-hId--612351323%22%20id%3D%22toc-hId--612351323%22%20id%3D%22toc-hId--612351323%22%20id%3D%22toc-hId--612351323%22%3ELet%20us%20hear%20from%20you%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20look%20forward%20to%20hearing%20your%20feedback!%20Feel%20free%20to%20ask%20a%20question%2C%20report%20a%20problem%20or%20suggest%20a%20feature%20by%20opening%20an%20issue%20in%20our%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Fterraform%2Fissues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%20repo%3C%2FA%3E.%20If%20someone%20else%20has%20already%20mentioned%20the%20issue%20you%20want%20to%20report%2C%20let%20us%20know%20it%20is%20important%20to%20you%20as%20well%20by%20reacting%20to%20the%20issue%20with%20a%20thumbs-up%20emoji.%20To%20help%20ensure%20these%20tools%20perform%20well%20for%20you%20and%20everyone%20else%2C%20consider%20tracking%20the%20status%20of%20your%20issue%20and%20working%20with%20us%20directly%20in%20the%20discussions%20area.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20would%20love%20your%20continued%20feedback%20on%20Azure%20Terraform%20deployments.%20If%20you%20are%20interested%20in%20deeper%20conversations%20with%20the%20engineering%20team%2C%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Faztfcommunity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esign%20up%20for%20our%20Azure%20Terraform%20community%20calls%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3270937%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20want%20your%20experience%20using%20Terraform%20with%20Azure%20to%20be%20delightful%2C%20and%20are%20super%20excited%20to%20share%20these%20open-source%20tools%20with%20you.%20The%20preview%20versions%20of%20these%20tools%20are%20available%20to%20use%20today.%20We%20invite%20you%20to%20download%20them%20and%20get%20started.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3270937%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ETerraform%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3301120%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3301120%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210579%22%20target%3D%22_blank%22%3E%40Richard%20Cheney%3C%2FA%3E%26nbsp%3B%2C%20I%20will%20try%20the%20manual%20install.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3300927%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3300927%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%20Mark%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20excellent%2C%20so%20we%20do%20not%20need%20to%20use%20arm%20in%20terraform%20any%20more.%20And%20we%20can%20migrate%20to%20azurerm%20when%20it%20is%20available.%3C%2FP%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3299629%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3299629%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Mark%2C%20Thanks%20for%20the%20team%20to%20publish%20these.%20We%20will%20see%20how%20we%20can%20use%20them%20with%20our%20current%20engagements.%20Glad%20to%20see%20it%20got%20out.%20Happy%20to%20get%20our%20hands%20on%20them%20and%20thanks%20for%20your%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3297808%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3297808%22%20slang%3D%22en-US%22%3E%3CP%3ECloud%20Shell%20is%20based%20on%20a%20container%20image%2C%20and%20you%20can%20request%20enhancements%20on%20the%20repo%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FCloudShell%2Fissues%3Fq%3Dis%253Aenhancement%2Bis%253Aopen%2B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EIssues%20%C2%B7%20Azure%2FCloudShell%20(github.com).%26nbsp%3B%3C%2FA%3EYou%20can%20always%20use%20wget%20and%20zip%20to%20manually%20install%2C%20e.g.%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ewget%20https%3A%2F%2Fgithub.com%2FAzure%2Faztfy%2Freleases%2Fdownload%2Fv0.2.0%2Faztfy_v0.2.0_linux_amd64.zip%0Aunzip%20aztfy_v0.2.0_linux_amd64.zip%20aztfy%20-d%20%3CEXTRACTDIRECTORY%3E%0Arm%20aztfy_v0.2.0_linux_amd64.zip%3C%2FEXTRACTDIRECTORY%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20noticed%20that%26nbsp%3B~%2F.local%2Fbin%2F%20was%20in%20my%20%24PATH%2C%20so%20I%20created%20that%20directory%20and%20put%20it%20in%20there.%20Your%20home%20directory%20is%20persisted%20in%20your%20cloud%20shell%20storage%20account.%20If%20aztfy%20gets%20added%20to%20the%20image%20in%20the%20future%20then%20I%20would%20remove%20the%20manually%20downloaded%20binary%20to%20benefit%20from%20the%20image%20updates.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3297720%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3297720%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F178543%22%20target%3D%22_blank%22%3E%40Mark%20Gray%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EDoes%20aztfy%20works%20from%20an%20Azure%20CloudShell%3F%26nbsp%3B%20I%20naively%20upload%20just%20the%20aztfy.exe%20file%20to%20my%20Azure%20Cloud%20Shell%2C%20but%20couldn't%20run%20it%2C%20is%20there%20a%20specific%20instruction%20for%20installation%20in%20Cloud%20Shell%20or%20this%20isn't%20supported%3F%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3297643%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3297643%22%20slang%3D%22en-US%22%3E%3CP%3EYep%2C%20try%20it%20out%20and%20check%20that%20%60terraform%20validate%60%20and%20%60terraform%20state%20list%60%20look%20OK%20and%20that%20%60terraform%20plan%60%20has%20no%20diff%20(i.e.%20doesn't%20plan%20to%20make%20any%20changes).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGood%20luck!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3297585%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3297585%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210579%22%20target%3D%22_blank%22%3E%40Richard%20Cheney%3C%2FA%3E%26nbsp%3BThis%20looks%20really%20cool.%20I%20will%20explore%20it.%20Thanks%20a%20ton%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3296383%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3296383%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F312939%22%20target%3D%22_blank%22%3E%40abah-james%3C%2FA%3E%26nbsp%3B-%20I%20had%20a%20play%20with%20this%20and%20I%20think%20I%20have%20a%20Bash%20workaround%20for%20you%20until%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2Faztfy%2Fissues%2F28%23issuecomment-1110994737%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2Faztfy%2Fissues%2F28%3C%2FA%3E%26nbsp%3Benhancement%20comes%20in.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20a%20Bash%20workaround%20for%20merging%20two%20aztfy%20outputs.%20Assumes%3A%3C%2FP%3E%0A%3CUL%20dir%3D%22auto%22%3E%0A%3CLI%3EYou%20have%20used%20aztfy%20on%20two%20resource%20groups%20(e.g.%20rg1%20and%20rg2)%3C%2FLI%3E%0A%3CLI%3EAll%20Terraform%20identifiers%20(i.e.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%20class%3D%22notranslate%22%3Eterraform%20state%20list%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eoutputs)%20are%20unique%20across%20the%20state%20files%3C%2FLI%3E%0A%3CLI%3E%3CCODE%20class%3D%22notranslate%22%3Eterraform%20validate%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20OK%20on%20each%20input%20config%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Emkdir%20union%0Acp%20-pr%20rg1%2F.terraform*%20rg1%2Fprovider.tf%20union%0Ased%20's%2F%5E%7D%24%2F%7D%5Cn%2Fg'%20rg1%2Fmain.tf%20rg2%2Fmain.tf%20%26gt%3B%20union%2Fmain.tf%0Ajq%20-s%20'(.%5B0%5D%7Cdel(.resources))%20%2B%20%7Bresources%3A%20(.%5B0%5D.resources%20%2B%20.%5B1%5D.resources)%7D'%20rg1%2Fterraform.tfstate%20rg2%2Fterraform.tfstate%20%26gt%3B%20union%2Fterraform.tfstate%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E(Sed%20only%20used%20as%20aztfy%20doesn't%20currently%20add%20a%20newline%20at%20the%20end%20of%20each%20block%2C%20so%20cat%20makes%20invalid%20HCL.%20The%20jq%20takes%20the%20keys%20from%20the%20first%20file%20except%20resources%2C%20then%20concats%20the%20two%20resources%20into%20the%20new%20terraform.tfstate.)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3295319%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3295319%22%20slang%3D%22en-US%22%3E%3CP%3E(Aztfy)%20Really%20cool%20tool%20but%20I%20have%20a%20real%20challenge%20with%20it%20testing%20it%20out.%3CBR%20%2F%3ESince%20the%20state%20files%20are%20per%20resource%20group%20basis%2C%20how%20do%20we%20merge%20these%20multiple%20states%20to%20one%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3292464%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3292464%22%20slang%3D%22en-US%22%3E%3CP%3EFantastic%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210579%22%20target%3D%22_blank%22%3E%40Richard%20Cheney%3C%2FA%3E%26nbsp%3B!%20Thanks%20for%20Sharing.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3291177%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3291177%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20working%20example%20for%20Data%20Collection%20Rules%20in%20Azure%20Monitor.%20It%20works%20really%20well%20in%20lieu%20of%20getting%20a%20proper%20azurerm%20provider%20type%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fricheney%2Fazapi%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fricheney%2Fazapi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3286340%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3286340%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1363388%22%20target%3D%22_blank%22%3E%40MikeSomebody%3C%2FA%3E%26nbsp%3Bour%20team%20as%20well%20as%20HashiCorp%20review%20the%20requests%20and%20bugs%20on%20the%20AzureRM%20provider%20continually.%20Liking%20with%20a%20%22thumbs%20up%22%20issues%20helps%20us%20prioritize%20those%20issues%20that%20are%20most%20important%20to%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285519%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285519%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20this%20mean%20Microsoft%20are%20going%20to%20commit%20more%20people%20to%20work%20on%20the%20current%20issues%3F%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fhashicorp%2Fterraform-provider-azurerm%2Fissues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fhashicorp%2Fterraform-provider-azurerm%2Fissues%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3285455%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3285455%22%20slang%3D%22en-US%22%3E%3CP%3EAmazing%20news%2C%20this%20will%20make%20porting%20from%20Azure%20ARM%2FBicep%20and%20manual%20build%20so%20much%20easier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENice%20work%20MS%20team.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3284363%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3284363%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20actually%20super%20cool%20%3AD%3C%2Fimg%3E%20Love%20it!!!%20Thanks%20for%20sharing!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20Azure%20Stacking!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3334484%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3334484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F477511%22%20target%3D%22_blank%22%3E%40thanh-nu%3C%2FA%3E%26nbsp%3BThanks%20for%20bringing%20this%20to%20our%20attention.%20We%20will%20look%20into%20adding%20aztfy%20to%20the%20cloud%20shell%20for%20our%20next%20major%20release.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1378498%22%20target%3D%22_blank%22%3E%40chamaraw%3C%2FA%3E%26nbsp%3BThat%20is%20correct.%20AzAPI%20will%20allow%20you%20to%20manage%20those%20things%20that%20required%20you%20to%20use%20the%20template%20resource%20and%20will%20give%20you%20a%20smooth%20path%20to%20migrating%20to%20AzureRM%20provider%20once%20the%20functionality%20is%20included.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3387599%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3387599%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20a%20missed%20opportunity%20to%20call%20it%20%22TerrfARM%22!%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3403182%22%20slang%3D%22en-US%22%3ERe%3A%20Announcing%20Azure%20Terrafy%20and%20AzAPI%20Terraform%20Provider%20Previews%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3403182%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome.%20Any%20videos%20guiding%20through%20%26nbsp%3Busage%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Apr 12 2022 09:07 AM
Updated by: