This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await page.goto('https://ecommerce-playground.lambdatest.io/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myVar: string = "Hello World"; | |
myVar = 10; | |
console.log(myVar); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myVar = "Hello World"; | |
myVar = 5; | |
console.log(myVar); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_virtual_machine_extension" "vmExtension" { | |
name = "hostname" | |
virtual_machine_id = azurerm_linux_virtual_machine.yourvmname.id | |
publisher = "Microsoft.Azure.Extensions" | |
type = "CustomScript" | |
type_handler_version = "2.0" | |
settings = <<SETTINGS | |
{ | |
"commandToExecute": "curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_network_security_group" "securitygroupname" { | |
name = "${var.resource_group_name}-department-SecurityGroup" | |
location = var.vm_location | |
resource_group_name = var.resource_group_name | |
} | |
resource "azurerm_network_security_rule" "securityrulename" { | |
for_each = local.secrules | |
name = each.key | |
direction = each.value.direction | |
access = each.value.access |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_virtual_machine_extension" "vmExtension" { | |
name = "hostname" | |
virtual_machine_id = azurerm_linux_virtual_machine.yourvmname.id | |
publisher = "Microsoft.Azure.Extensions" | |
type = "CustomScript" | |
type_handler_version = "2.0" | |
settings = <<SETTINGS | |
{ | |
"commandToExecute": "curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_linux_virtual_machine" "yourvmname" { | |
name = var.azurerm_linux_virtual_machine_name | |
location = var.vm_location | |
resource_group_name = var.resource_group_name | |
network_interface_ids = [azurerm_network_interface.qanic.id] | |
size = "Standard_D2s_v3" | |
os_disk { | |
name = "diskname" | |
caching = "ReadWrite" | |
storage_account_type = "Premium_LRS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_network_interface" "networkinterfacename" { | |
name = "${var.resource_group_name}-department-nic" | |
location = var.vm_location | |
resource_group_name = var.resource_group_name | |
ip_configuration { | |
name = "${var.resource_group_name}-department-IpConfig" | |
subnet_id = azurerm_subnet.subnetname.id | |
private_ip_address_allocation = "Dynamic" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_subnet" "subnetname" { | |
name = "${var.resource_group_name}-deparment-subnet" | |
resource_group_name = var.resource_group_name | |
virtual_network_name = azurerm_virtual_network.qanetwork.name | |
address_prefixes = ["addressprefix/port"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_virtual_network" "networkname" { | |
name = "${var.resource_group_name}-deparment-vnet" | |
address_space = ["addressspace/port"] | |
location = var.vm_location | |
resource_group_name = var.resource_group_name | |
} |