File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
experiments/Azure.Experiments/Azure.Experiments Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,19 @@ public static ResourceConfig<VirtualMachine> CreateVirtualMachineConfig(
1818 ResourceConfig < NetworkInterface > networkInterface )
1919 => Policy . CreateConfig (
2020 name ,
21- _ => new VirtualMachine ( ) ,
21+ state => new VirtualMachine
22+ {
23+ NetworkProfile = new NetworkProfile
24+ {
25+ NetworkInterfaces = new [ ]
26+ {
27+ new NetworkInterfaceReference
28+ {
29+ Id = state . Get ( networkInterface ) . Id
30+ }
31+ }
32+ }
33+ } ,
2234 new [ ] { networkInterface } ) ;
2335 }
2436}
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public static ResourceConfig<NetworkInterface> CreateNetworkInterfaceConfig(
2525 {
2626 new NetworkInterfaceIPConfiguration
2727 {
28+ Name = name . Name ,
2829 Subnet = new Subnet
2930 {
3031 Id = state . Get ( subnet ) . Id
You can’t perform that action at this time.
0 commit comments