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

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.

主站蜘蛛池模板: 城固县| 湖北省| 电白县| 临漳县| 宝兴县| 桦南县| 宜兰县| 龙里县| 滨州市| 佳木斯市| 陆丰市| 长治市| 南阳市| 洱源县| 嘉义市| 彩票| 丰城市| 郯城县| 罗平县| 柳河县| 土默特右旗| 壤塘县| 海宁市| 利川市| 瑞金市| 开化县| 浦江县| 育儿| 沙河市| 秦安县| 汾阳市| 应用必备| 讷河市| 泰兴市| 泰来县| 滦南县| 陈巴尔虎旗| 三门峡市| 永寿县| 建水县| 信宜市|