Skip to content

Commit 7d21c0d

Browse files
Merge pull request #47397 from v-thpra/azure-triage-fix-1004928
Fix for Customer Feedback 1004928: Typo in code-try-0: "azure_resource_group" should be "azurerm_resource_group"
2 parents 5d15ce1 + 692789e commit 7d21c0d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

learn-pr/azure/terraform-introduction-to-infrastructure-as-code/includes/2-what-infrastructure-code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Your company designs new toys for release to the market, and most new toys requi
1818

1919
You can think of infrastructure as code as being like the instruction manual for your infrastructure. The manual details the end configuration of your resources and how to reach that configuration state.
2020

21-
Infrastructure as code is the process of automating your infrastructure provisioning. It uses a declarative coding language and versioning system that's similar to what's used for source code. When you create an application, your source code generates the same result on each compilation. In a similar manner, infrastructure-as-code deployments are automated, consistent, and repeatable. Infrastructure as code can automate the deployments of your resources, like virtual networks, virtual machines, applications, storage, and even GitHub repositories or user accounts.
21+
Infrastructure as code is the process of automating your infrastructure provisioning. It uses a declarative coding language and versioning system that's similar to what's used for source code. When you create an application, your source code generates the same result on each compilation. In a similar manner, infrastructure-as-code deployments are automated, consistent, and repeatable. Infrastructure as code can automate the deployments of your resources. Such as virtual networks, virtual machines, applications, storage, and even GitHub repositories or user accounts.
2222

2323
:::image type="content" source="../media/iac.svg" alt-text="Diagram that shows the infrastructure as code process using a source code repository with a module that deploys Azure resources." border="false" :::
2424

@@ -36,7 +36,7 @@ Adopting an infrastructure as code approach offers many benefits to resource pro
3636

3737
One of the benefits of using infrastructure as code is the level of confidence you gain in your deployments from improvements in consistency and security.
3838

39-
- **Integration with current processes**: If your organization already uses standard software development practices, you can adopt those same processes for your infrastructure deployments. For example, peer reviews and static analysis can help in detecting problems in configurations that may be difficult to detect when making manual changes.
39+
- **Integration with current processes**: If your organization already uses standard software development practices, you can adopt those same processes for your infrastructure deployments. For example, peer reviews and static analysis can help in detecting problems in configurations that might be difficult to detect when making manual changes.
4040

4141
- **Consistency**: Adopting an infrastructure as code approach helps your team follow well-established processes to deploy infrastructure. By following these processes, responsibility shifts from a small group of individuals to your automation process and tooling. Infrastructure as code helps reduce human error in resource provisioning and ensure consistent deployments.
4242

@@ -68,7 +68,7 @@ Here are some of the key ways infrastructure as code can help you manage your en
6868

6969
- **Provision new environments**: One of the main benefits of cloud computing is the ability to scale. Infrastructure as code can help you scale to multiple instances of your application. These instances can help during times of increased load, or you can deploy them for users in other areas of the world. This agility also can be beneficial when you test your application, like during penetration testing, load testing, and bug testing. With a well-defined code base, you can dynamically provision these new environments in a consistent manner.
7070

71-
- **Nonproduction environments**: A common problem organizations face is differentiation between production and nonproduction environments. When you manually provision resources in separate environments, it's possible that the end configurations don't match. An example is when you deploy a new feature to a nonproduction environment that differs from the production environment. It's possible that the new feature won't work as expected in the production environment because of the differences between the two environments. Using infrastructure as code can help minimize these problems. You can use the same configuration files for each environment but supply different input parameters to create uniqueness. You can also be cost efficient by tearing down non-production environments when they're not in use.
71+
- **Nonproduction environments**: A common problem organizations face is differentiation between production and nonproduction environments. When you manually provision resources in separate environments, it's possible that the end configurations don't match. An example is when you deploy a new feature to a nonproduction environment that differs from the production environment. It's possible that the new feature doesn't work as expected in the production environment because of the differences between the two environments. Using infrastructure as code can help minimize these problems. You can use the same configuration files for each environment but supply different input parameters to create uniqueness. You can also be cost efficient by tearing down nonproduction environments when they're not in use.
7272

7373
- **Disaster recovery**: In some situations, infrastructure as code can be used as part of an organization's disaster recovery plan. For example, you might need to re-create your environment in another region because of a service outage. By using infrastructure as code, you can quickly provision a new instance to fail over to instead of manually deploying and reconfiguring everything.
7474

@@ -141,7 +141,7 @@ resource "azurerm_resource_group" "example" {
141141
142142
resource "azurerm_storage_account" "example" {
143143
name = "mystorageaccount"
144-
location = azure_resource_group.example.location
144+
location = azurerm_resource_group.example.location
145145
resource_group_name = azurerm_resource_group.example.name
146146
sku = "Standard"
147147
account_replication_type = "GRS"

learn-pr/azure/terraform-introduction-to-infrastructure-as-code/includes/4-what-terraform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This unit covers the Terraform language and the benefits it provides to module a
44

55
## Terraform language - HashiCorp Configuration Language (HCL)
66

7-
The language used by Terraform is called HashiCorp Configuration Language normally shortened to HCL. The HCL language is used in other HashiCorp tools, such as Packer, but it's most widely known as the language of Terraform.
7+
The language used by Terraform is called HashiCorp Configuration Language normally shortened to HCL. The HCL language is used in other HashiCorp tools, such as Packer, but is most widely known as the language of Terraform.
88

99
The HCL language is used to declaratively deploy Azure resources. HCL is a domain-specific language. A domain-specific language is designed for a specific scenario or _domain_. HCL isn't meant to be used as a standard programming language for writing applications. HCL is used only to create Terraform modules. Terraform is intended to be easy to understand and straightforward to learn, regardless of your experience with other programming languages. Any Azure resource type and properties can be specified in Terraform modules.
1010

@@ -47,7 +47,7 @@ resource "azurerm_resource_group" "example" {
4747
4848
resource "azurerm_storage_account" "example" {
4949
name = local.storage_account_name
50-
location = azure_resource_group.example.location
50+
location = azurerm_resource_group.example.location
5151
resource_group_name = azurerm_resource_group.example.name
5252
sku = "Standard"
5353
account_replication_type = local.storage_account_replication_type

0 commit comments

Comments
 (0)