Examples/Resources/cVMIPAddress/ResetIPAddress.Example.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
Configuration VMIPAddress
{
    Import-DscResource -ModuleName cHyper-V -Name cVMIPAddress
    Import-DscResource -ModuleName PSDesiredStateConfiguration

    cVMIPAddress VMAdapter1IPAddress {
        Id = 'VMMgmt-NIC'
        NetAdapterName = 'VMMgmt-NIC'
        VMName = 'SQLVM01'
        IPAddress = 'DHCP'
    }
}