claranet / terraform-azurerm-linux-vm Goto Github PK
View Code? Open in Web Editor NEWTerraform module composition (feature) for ARM Linux Virtual Machine (VM)
License: Apache License 2.0
Terraform module composition (feature) for ARM Linux Virtual Machine (VM)
License: Apache License 2.0
Explanation
I found an issue related to the SSH key using the last v.4.1.0
tag (it may occure with the other)
Error: Error "admin_ssh_key.0.public_key" is not a complete SSH2 Public Key
on .terraform/modules/vm/r-vm.tf line 1, in resource "azurerm_linux_virtual_machine" "vm":
1: resource "azurerm_linux_virtual_machine" "vm" {
I tried to use a SSH2 format, but this was not really the issue.
Then, I found this issue on Microsoft Docs GitHub : MicrosoftDocs/azure-docs#51106
Workaround
Adding this file()
cast on the SSH key file on the dynamic bloc fix the issue :
dynamic "admin_ssh_key" {
for_each = var.ssh_public_key != null ? ["fake"] : []
content {
public_key = file(var.ssh_public_key)
username = var.admin_username
}
}
At the moment, this module can either be configured with the Data Collection Rule ID from Azure Monitor and the new agent or the legacy agent.
Would it be possible to allow configure the module without any diagnostics?
azurerm_linux_virtual_machine
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.