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

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.

主站蜘蛛池模板: 玉树县| 卢湾区| 乡宁县| 西盟| 长寿区| 桐柏县| 安平县| 城固县| 出国| 九台市| 陇西县| 余姚市| 乌恰县| 亳州市| 彭水| 兖州市| 泸州市| 正蓝旗| 沈丘县| 巴林右旗| 定陶县| 射洪县| 内江市| 巫山县| 禄丰县| 墨脱县| 西宁市| 皋兰县| 新昌县| 蛟河市| 抚顺市| 肥西县| 晋城| 祁连县| 方城县| 盐山县| 偏关县| 区。| 团风县| 新巴尔虎右旗| 长丰县|