michaelsrichter / 70534ExamPrep

10 stars 1 forks source link

Missing jumpbox IP #2

Open indiana27 opened 6 years ago

indiana27 commented 6 years ago

RE: Azure VNET-to-VNET Connection Lab

https://github.com/michaelsrichter/70534ExamPrep/tree/master/Labs/vnet-to-vnet

Item: •Let's find more info about jumpbox IP address so we can connect to it. Type az network public-ip show -g examprep101 -n jumpbox-ip -o table

The item above, does not return an IP address. I've tried restarting the cloud shell. Please advise.

brian@Azure:~/clouddrive$ az network public-ip show -g examprep101 -n jumpbox-ip -o table Name ResourceGroup Location Zones AddressVersion AllocationMethod IdleTimeoutInMinutes ProvisioningState


jumpbox-ip examprep101 eastus IPv4 Dynamic 4 Succeeded

thoaingan commented 6 years ago

@indiana27: I ran my command without the "-o table" switch and it returns more information (JSON format), and this response has the IP address in it (example below). See if that works for you.

ngan_menegay@Azure:~/clouddrive$ az network public-ip show -g examprep101 -n jumpbox-ip
{
  "dnsSettings": null,
  "etag": "W/\"962c3de8-24db-464a-aebe-64ed3104ed53\"",
  "id": "/subscriptions/1b92b07d-95ba-49a9-b9e7-e47ab6d46b28/resourceGroups/examprep101/providers/Microsoft.Network/publicIPAddresses/jumpbox-ip",
  "idleTimeoutInMinutes": 4,
  "ipAddress": "40.121.209.135",
  "ipConfiguration": {
    "etag": null,
    "id": "/subscriptions/1b92b07d-95ba-49a9-b9e7-e47ab6d46b28/resourceGroups/examprep101/providers/Microsoft.Network/networkInterfaces/jumpboxnic/ipConfigurations/ipconfig1",
    "name": null,
    "privateIpAddress": null,
    "privateIpAllocationMethod": null,
    "provisioningState": null,
    "publicIpAddress": null,
    "resourceGroup": "examprep101",
    "subnet": null
  },
  "ipTags": [],
  "location": "eastus",
  "name": "jumpbox-ip",
  "provisioningState": "Succeeded",
  "publicIpAddressVersion": "IPv4",
  "publicIpAllocationMethod": "Dynamic",
  "resourceGroup": "examprep101",
  "resourceGuid": "ff356e0d-c58b-44a5-a8fd-51c34490271c",
  "sku": {
    "name": "Basic"
  },
  "tags": null,
  "type": "Microsoft.Network/publicIPAddresses",
  "zones": null
}