官术网_书友最值得收藏!

Terraform configuration for local development and testing

When you work locally and want to test the Terraform code quickly, in a sandbox environment, for example, it may be more convenient and faster to use your own Azure account instead of using an SP.

To do this, it is possible to connect to Azure beforehand with the az login command, and then enter your identification information in the window that opens. 

The following is a screenshot of the Azure login window:

If several subscriptions are accessed, the desired one can be selected with the following command:

az account set --subscription="<Subscription ID>"

Then, we configure the Terraform provider as before with the provider, "azurerm" { }.

Of course, this authentication method is not to be done in the case of execution on a remote server.

For more information on the provider configuration, refer to the documentation:  https://www.terraform.io/docs/providers/azurerm/index.html.

The Terraform configuration for Azure is, therefore, defined by the configuration of the provider that uses the information from an Azure SP.

Once this configuration is complete, we can start writing Terraform code to manage and provision Azure resources.

主站蜘蛛池模板: 石渠县| 彭阳县| 铅山县| 喀喇沁旗| 墨竹工卡县| 开化县| 永康市| 茂名市| 西吉县| 蓬溪县| 同德县| 左权县| 富平县| 习水县| 潼南县| 平远县| 公主岭市| 苗栗县| 肇东市| 汪清县| 柳州市| 高雄县| 金塔县| 阿拉尔市| 桂东县| 舞钢市| 肥东县| 定远县| 林甸县| 兴和县| 昌吉市| 东莞市| 大丰市| 喀什市| 张家口市| 潼关县| 荔浦县| 江城| 长武县| 阳山县| 融水|