@@ -48,25 +48,6 @@ func TestAccAzureRMVirtualMachineScaleSet_basicLinux_disappears(t *testing.T) {
4848 })
4949}
5050
51- //func TestAccAzureRMVirtualMachineScaleSet_basicWindowsMachine(t *testing.T) {
52- // ri := acctest.RandInt()
53- // rs := acctest.RandString(6)
54- // config := fmt.Sprintf(testAccAzureRMVirtualMachineScaleSet_basicWindows, ri, ri, ri, ri, ri, ri, rs, ri)
55- // resource.Test(t, resource.TestCase{
56- // PreCheck: func() { testAccPreCheck(t) },
57- // Providers: testAccProviders,
58- // CheckDestroy: testCheckAzureRMVirtualMachineScaleSetDestroy,
59- // Steps: []resource.TestStep{
60- // {
61- // Config: config,
62- // Check: resource.ComposeTestCheckFunc(
63- // testCheckAzureRMVirtualMachineScaleSetExists("azurerm_virtual_machine_scale_set.test"),
64- // ),
65- // },
66- // },
67- // })
68- //}
69-
7051func testCheckAzureRMVirtualMachineScaleSetExists (name string ) resource.TestCheckFunc {
7152 return func (s * terraform.State ) error {
7253 // Ensure we have enough information in state to look up in API
@@ -238,96 +219,3 @@ resource "azurerm_virtual_machine_scale_set" "test" {
238219 }
239220}
240221`
241-
242- var testAccAzureRMVirtualMachineScaleSet_basicWindows = `
243- resource "azurerm_resource_group" "test" {
244- name = "acctestRG-%d"
245- location = "West US"
246- }
247-
248- resource "azurerm_virtual_network" "test" {
249- name = "acctvn-%d"
250- address_space = ["10.0.0.0/16"]
251- location = "West US"
252- resource_group_name = "${azurerm_resource_group.test.name}"
253- }
254-
255- resource "azurerm_subnet" "test" {
256- name = "acctsub-%d"
257- resource_group_name = "${azurerm_resource_group.test.name}"
258- virtual_network_name = "${azurerm_virtual_network.test.name}"
259- address_prefix = "10.0.2.0/24"
260- }
261-
262- resource "azurerm_network_interface" "test" {
263- name = "acctni-%d"
264- location = "West US"
265- resource_group_name = "${azurerm_resource_group.test.name}"
266-
267- ip_configuration {
268- name = "testconfiguration1"
269- subnet_id = "${azurerm_subnet.test.id}"
270- private_ip_address_allocation = "dynamic"
271- }
272- }
273-
274- resource "azurerm_storage_account" "test" {
275- name = "accsa%d"
276- resource_group_name = "${azurerm_resource_group.test.name}"
277- location = "westus"
278- account_type = "Standard_LRS"
279-
280- tags {
281- environment = "staging"
282- }
283- }
284-
285- resource "azurerm_storage_container" "test" {
286- name = "vhds"
287- resource_group_name = "${azurerm_resource_group.test.name}"
288- storage_account_name = "${azurerm_storage_account.test.name}"
289- container_access_type = "private"
290- }
291-
292- resource "azurerm_virtual_machine_scale_set" "test" {
293- name = "acctvmss-%d"
294- location = "West US"
295- resource_group_name = "${azurerm_resource_group.test.name}"
296- upgrade_policy_mode = "Manual"
297-
298- sku {
299- name = "Standard_A0"
300- tier = "Standard"
301- capacity = 2
302- }
303-
304- os_profile {
305- computer_name_prefix = "vm-%s"
306- admin_username = "myadmin"
307- admin_password = "Passwword1234"
308- }
309-
310- network_profile {
311- name = "TestNetworkProfile-%d"
312- primary = true
313- ip_configuration {
314- name = "TestIPConfiguration"
315- subnet_id = "${azurerm_subnet.test.id}"
316- }
317- }
318-
319- storage_profile_os_disk {
320- name = "osDiskProfile"
321- caching = "ReadWrite"
322- create_option = "FromImage"
323- vhd_containers = ["${azurerm_storage_account.test.primary_blob_endpoint}${azurerm_storage_container.test.name}"]
324- }
325-
326- storage_profile_image_reference {
327- publisher = "MicrosoftWindowsServer"
328- offer = "WindowsServer"
329- sku = "2012-R2-Datacenter"
330- version = "4.0.20160518"
331- }
332- }
333- `
0 commit comments