SuccessConsole Output

[azure_robot_tests] Running shell script
+ /robot-systest/cloud-scripts/create-osm-vm.sh
+ az vm create --resource-group OSM_CICD_GROUP --name osmtest202401281215 --image Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest --size Standard_D4as_v4 --vnet-name OSM-CICD-net --subnet OSM-CICD-subnet --public-ip-address '' --admin-username ubuntu --priority Regular --os-disk-size-gb 64
Selecting "uksouth" may reduce your costs. The region you've selected may cost more for the same services. You can disable this message in the future with the command "az config set core.display_region_identified=false". Learn more at https://go.microsoft.com/fwlink/?linkid=222571 

WARNING: Consider upgrading security for your workloads using Azure Trusted Launch VMs. To know more about Trusted Launch, please visit https://aka.ms/TrustedLaunch.
{
  "fqdns": "",
  "id": "/subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Compute/virtualMachines/osmtest202401281215",
  "location": "westeurope",
  "macAddress": "00-0D-3A-2A-AD-BB",
  "powerState": "VM running",
  "privateIpAddress": "172.21.23.6",
  "publicIpAddress": "",
  "resourceGroup": "OSM_CICD_GROUP",
  "zones": ""
}
++ az vm show -d -g OSM_CICD_GROUP -n osmtest202401281215 --query privateIps
++ tr -d '"'
+ export NEW_OSM_IP=172.21.23.6
+ NEW_OSM_IP=172.21.23.6
++ az vm show --resource-group OSM_CICD_GROUP --name osmtest202401281215 --query 'networkProfile.networkInterfaces[0].id'
+ INTERFACE_ID='"/subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkInterfaces/osmtest202401281215VMNic"'
+ INTERFACE_ID=/subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkInterfaces/osmtest202401281215VMNic
++ az network nic show --id /subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkInterfaces/osmtest202401281215VMNic --query networkSecurityGroup.id
+ SECURITY_GROUP_ID='"/subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkSecurityGroups/osmtest202401281215NSG"'
+ SECURITY_GROUP_ID=/subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkSecurityGroups/osmtest202401281215NSG
++ az resource show --ids /subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkSecurityGroups/osmtest202401281215NSG --query name
+ SECURITY_GROUP_NAME='"osmtest202401281215NSG"'
+ SECURITY_GROUP_NAME=osmtest202401281215NSG
+ az network nsg rule create -n osm --nsg-name osmtest202401281215NSG --priority 2000 -g OSM_CICD_GROUP --description 'NBI and Prometheus ports' --protocol TCP --destination-port-ranges 9999 9091
{
  "access": "Allow",
  "description": "NBI and Prometheus ports",
  "destinationAddressPrefix": "*",
  "destinationAddressPrefixes": [],
  "destinationPortRanges": [
    "9999",
    "9091"
  ],
  "direction": "Inbound",
  "etag": "W/\"6f32c601-003e-4415-b433-e28fab0d1c33\"",
  "id": "/subscriptions/8fb7e78d-097b-413d-bc65-41d29be6bab1/resourceGroups/OSM_CICD_GROUP/providers/Microsoft.Network/networkSecurityGroups/osmtest202401281215NSG/securityRules/osm",
  "name": "osm",
  "priority": 2000,
  "protocol": "Tcp",
  "provisioningState": "Succeeded",
  "resourceGroup": "OSM_CICD_GROUP",
  "sourceAddressPrefix": "*",
  "sourceAddressPrefixes": [],
  "sourcePortRange": "*",
  "sourcePortRanges": [],
  "type": "Microsoft.Network/networkSecurityGroups/securityRules"
}
+ mkdir -p /robot-systest/results
+ cat
+ echo File with new environment was created at /robot-systest/results/osm_environment.rc
File with new environment was created at /robot-systest/results/osm_environment.rc