Comments (3)
Hey @shanielh
Thanks for opening this issue - apologies for the delayed response here!
Support for this was added in hashicorp/terraform#14608 which shipped in Terraform v0.9.6. As such it's now possible to attach data disks to VM Scale Set using the following Terraform configuration:
storage_profile_data_disk {
lun = 0
caching = "ReadWrite"
create_option = "Empty"
disk_size_gb = 10
managed_disk_type = "Standard_LRS"
}
There's more documentation available on the Terraform Website too.
Would it be possible to take a look and see if upgrading to the latest version of Terraform (currently 0.10.2) fixes this issue for you? In the interim I'm going to close this issue since it appears to be fixed, however please feel free to re-open it if there's still an issue here and we'll take a look :)
Thanks!
from terraform-provider-azurerm.
@tombuildsstuff , I have created azurerm_virtual_machine_scale_set
and used the configuration below to attach the data disk to the VM Scale set.
storage_profile_data_disk {
lun = 0
caching = "ReadWrite"
create_option = "Empty"
disk_size_gb = 100
}
It shows that the disk has been attached when I run the query below:
az vmss show \
> --resource-group xxx-resourceGroup \
> --namexxx-scaleset \
> --query virtualMachineProfile.storageProfile.dataDisks
[
{
"caching": "ReadWrite",
"createOption": "Empty",
"diskSizeGb": 100,
"lun": 0,
"managedDisk": {
"storageAccountType": "Standard_LRS"
},
"name": null,
"writeAcceleratorEnabled": null
}
]
Is the disk in prepared state or they have to be prepared as mentioned in this article - https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-disks-cli#prepare-the-data-disks?
If they need to be prepared, how do we go about preparing them using the terraform?
from terraform-provider-azurerm.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
from terraform-provider-azurerm.
Related Issues (20)
- [3.114.0][`azurerm_redis_cache`] Changing `enable_non_ssl_port` to `non_ssl_port_enabled` want to disable non SSL port
- azurerm_storage_account resource doesn't persist network_rules block configuration HOT 1
- AKS always needs to be updated in-place after an auto patch
- Fix default bug in preferred_data_persistence_auth_method and for azurerm_redis_cache resource HOT 4
- Support for azurerm_kubernetes_cluster_node_pool securityProfile.sshAccess
- Azure Sentinel Log Analytics Solution Not Registering HOT 2
- Unexpected status 404 (404 Not Found) with error: ResourceNotFound: PolicyFragment not found. HOT 3
- Not able to pass list of string to the partition key path parameter in CosmosDB SQL Database containers deployment using Terraform HOT 2
- Add output for managed resources within the databricks workspace provider in Azurerm provider registry of Terraform
- request_body_inspect_limit_in_kb always sees change? HOT 1
- subnet - private_endpoint_network_policies wrong default value HOT 4
- Support for CIDR notation in postgresql_flexible_server_firewall_rule Resource HOT 4
- Support for exporting tags in azurerm_search_service datasource
- logic_app_standard does not support dotnet version 8.0
- azurerm_virtual_network_dns_servers does not lock the virtual network, resulting in concurrency issues with e.g. subnet resources HOT 1
- Error on data azurerm_storage_account following 3.115.0 HOT 2
- DNS Private Resolver fails to move between subnets HOT 2
- Support for az cli auth in acceptance tests
- Support for a azurerm_vpn_server_configuration datasource
- Power State not reported in azurerm_virtual_machine and azurerm_virtual_machine_scale_set data sources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-azurerm.