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

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.

主站蜘蛛池模板: 泾阳县| 九龙城区| 五莲县| 崇信县| 嘉禾县| 抚州市| 南江县| 卢龙县| 嵩明县| 绥棱县| 息烽县| 宽甸| 邹城市| 彩票| 三明市| 聊城市| 宾阳县| 且末县| 永丰县| 林西县| 武山县| 易门县| 阿克陶县| 沧源| 阜南县| 龙岩市| 南丰县| 建瓯市| 莒南县| 依安县| 诏安县| 明光市| 德惠市| 大宁县| 泾阳县| 恩施市| 梁河县| 绵竹市| 铜陵市| 安泽县| 龙川县|