Sha256: 2f6ffebdab5e0f8b6045efa15592ba729178f3b7655f5cd3d82e3162d2e98a0f
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
Param( [Parameter(Mandatory=$true)] [string]$VmId ) # Include the following modules $Dir = Split-Path $script:MyInvocation.MyCommand.Path . ([System.IO.Path]::Combine($Dir, "utils\write_messages.ps1")) $vm = Get-VM -Id $VmId -ErrorAction "Stop" $network = Get-VMNetworkAdapter -VM $vm $ip_address = $network.IpAddresses[0] $resultHash = @{ ip = "$ip_address" } $result = ConvertTo-Json $resultHash Write-Output-Message $result
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.2.0 | vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/providers/hyperv/scripts/get_network_config.ps1 |