Skip to content

Commit

Permalink
Deployed 59b76b5 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rfernandezdo committed Oct 3, 2024
1 parent ff3c0c9 commit 512ba2a
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 72 deletions.
Binary file modified assets/tables/MCSB/Asset Management.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Backup and Recovery.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Data Protection.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/DevOps Security.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Endpoint Security.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Governance and Strategy.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Identity Management.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Incident Response.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Logging and Threat Detection.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Network Security.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Posture and Vulnerability Mgmt.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Privileged Access.xlsx
Binary file not shown.
Binary file modified assets/tables/MCSB/Readme.xlsx
Binary file not shown.
5 changes: 4 additions & 1 deletion blog/2024/10/03/terraform-import-block/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ <h1 id="terraform-import-block">terraform import block</h1>
</ol>
<div class="language-hcl highlight"><pre><span></span><code><span id="__span-1-1"><a href="#__codelineno-1-1" id="__codelineno-1-1" name="__codelineno-1-1"></a><span class="nb">import</span><span class="w"> </span><span class="p">{</span>
</span><span id="__span-1-2"><a href="#__codelineno-1-2" id="__codelineno-1-2" name="__codelineno-1-2"></a><span class="w"> </span><span class="na">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nv">azurerm_role_definition.custom_role</span>
</span><span id="__span-1-3"><a href="#__codelineno-1-3" id="__codelineno-1-3" name="__codelineno-1-3"></a><span class="w"> </span><span class="na">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"/providers/Microsoft.Authorization/roleDefinitions/11111111-1111-1111-1111-111111111111"|/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000""</span>
</span><span id="__span-1-3"><a href="#__codelineno-1-3" id="__codelineno-1-3" name="__codelineno-1-3"></a><span class="w"> </span><span class="na">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"/providers/Microsoft.Authorization/roleDefinitions/11111111-1111-1111-1111-111111111111|/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000"</span>
</span><span id="__span-1-4"><a href="#__codelineno-1-4" id="__codelineno-1-4" name="__codelineno-1-4"></a>
</span><span id="__span-1-5"><a href="#__codelineno-1-5" id="__codelineno-1-5" name="__codelineno-1-5"></a><span class="p">}</span>
</span></code></pre></div>
Expand Down Expand Up @@ -1947,6 +1947,9 @@ <h1 id="terraform-import-block">terraform import block</h1>
<div class="language-bash highlight"><pre><span></span><code><span id="__span-4-1"><a href="#__codelineno-4-1" id="__codelineno-4-1" name="__codelineno-4-1"></a>terraform<span class="w"> </span>show
</span></code></pre></div>
<p>You can use the <code>terraform import</code> command to import existing infrastructure into Terraform too but I prefer to use the <code>import</code> block because it's more readable and easier to manage.</p>
<p>With terraform import the command would look like this:</p>
<div class="language-bash highlight"><pre><span></span><code><span id="__span-5-1"><a href="#__codelineno-5-1" id="__codelineno-5-1" name="__codelineno-5-1"></a>terraform<span class="w"> </span>import<span class="w"> </span>azurerm_role_definition.custom_role<span class="w"> </span><span class="s2">"/providers/Microsoft.Authorization/roleDefinitions/11111111-1111-1111-1111-111111111111|/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000"</span>
</span></code></pre></div>
<h2 id="conclusion">Conclusion</h2>
<p>That's it! You've successfully imported an existing resource into Terraform. Now you can manage it with Terraform just like any other resource.</p>
<p>Happy coding! 🚀</p>
Expand Down
69 changes: 36 additions & 33 deletions blog/2024/10/index.html

Large diffs are not rendered by default.

69 changes: 36 additions & 33 deletions blog/category/devops/index.html

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ <h2 id="terraform-import-block"><a class="toclink" href="2024/10/03/terraform-im
</ol>
<div class="language-hcl highlight"><pre><span></span><code><span id="__span-1-1"><a href="#__codelineno-1-1" id="__codelineno-1-1" name="__codelineno-1-1"></a><span class="nb">import</span><span class="w"> </span><span class="p">{</span>
</span><span id="__span-1-2"><a href="#__codelineno-1-2" id="__codelineno-1-2" name="__codelineno-1-2"></a><span class="w"> </span><span class="na">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nv">azurerm_role_definition.custom_role</span>
</span><span id="__span-1-3"><a href="#__codelineno-1-3" id="__codelineno-1-3" name="__codelineno-1-3"></a><span class="w"> </span><span class="na">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"/providers/Microsoft.Authorization/roleDefinitions/11111111-1111-1111-1111-111111111111"|/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000""</span>
</span><span id="__span-1-3"><a href="#__codelineno-1-3" id="__codelineno-1-3" name="__codelineno-1-3"></a><span class="w"> </span><span class="na">id</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">"/providers/Microsoft.Authorization/roleDefinitions/11111111-1111-1111-1111-111111111111|/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000"</span>
</span><span id="__span-1-4"><a href="#__codelineno-1-4" id="__codelineno-1-4" name="__codelineno-1-4"></a>
</span><span id="__span-1-5"><a href="#__codelineno-1-5" id="__codelineno-1-5" name="__codelineno-1-5"></a><span class="p">}</span>
</span></code></pre></div>
Expand Down Expand Up @@ -722,6 +722,9 @@ <h2 id="terraform-import-block"><a class="toclink" href="2024/10/03/terraform-im
<div class="language-bash highlight"><pre><span></span><code><span id="__span-4-1"><a href="#__codelineno-4-1" id="__codelineno-4-1" name="__codelineno-4-1"></a>terraform<span class="w"> </span>show
</span></code></pre></div>
<p>You can use the <code>terraform import</code> command to import existing infrastructure into Terraform too but I prefer to use the <code>import</code> block because it's more readable and easier to manage.</p>
<p>With terraform import the command would look like this:</p>
<div class="language-bash highlight"><pre><span></span><code><span id="__span-5-1"><a href="#__codelineno-5-1" id="__codelineno-5-1" name="__codelineno-5-1"></a>terraform<span class="w"> </span>import<span class="w"> </span>azurerm_role_definition.custom_role<span class="w"> </span><span class="s2">"/providers/Microsoft.Authorization/roleDefinitions/11111111-1111-1111-1111-111111111111|/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000"</span>
</span></code></pre></div>
<h3 id="conclusion"><a class="toclink" href="2024/10/03/terraform-import-block/#conclusion">Conclusion</a></h3>
<p>That's it! You've successfully imported an existing resource into Terraform. Now you can manage it with Terraform just like any other resource.</p>
<p>Happy coding! 🚀</p>
Expand Down
Loading

0 comments on commit 512ba2a

Please sign in to comment.