@@ -692,8 +692,8 @@ func resourceKubernetesClusterNodePoolCreate(d *pluginsdk.ResourceData, meta int
692692 profile .NetworkProfile = expandAgentPoolNetworkProfile (networkProfile )
693693 }
694694
695- if virtualMachineProfile := d .Get ("virtual_machine_profile " ).([]interface {}); len (virtualMachineProfile ) > 0 {
696- profile .VirtualMachinesProfile = expandAgentPoolVirtualMachinesProfile ( virtualMachineProfile )
695+ if securityProfile := d .Get ("security_profile " ).([]interface {}); len (securityProfile ) > 0 {
696+ profile .SecurityProfile = expandAgentPoolSecurityProfile ( securityProfile )
697697 }
698698
699699 if snapshotId := d .Get ("snapshot_id" ).(string ); snapshotId != "" {
@@ -927,8 +927,8 @@ func resourceKubernetesClusterNodePoolUpdate(d *pluginsdk.ResourceData, meta int
927927 props .NetworkProfile = expandAgentPoolNetworkProfile (d .Get ("node_network_profile" ).([]interface {}))
928928 }
929929
930- if d .HasChange ("virtual_machine_profile " ) {
931- props .VirtualMachinesProfile = expandAgentPoolVirtualMachinesProfile (d .Get ("virtual_machine_profile " ).([]interface {}))
930+ if d .HasChange ("security_profile " ) {
931+ props .SecurityProfile = expandAgentPoolSecurityProfile (d .Get ("security_profile " ).([]interface {}))
932932 }
933933
934934 if d .HasChange ("zones" ) {
@@ -1242,8 +1242,8 @@ func resourceKubernetesClusterNodePoolRead(d *pluginsdk.ResourceData, meta inter
12421242 return fmt .Errorf ("setting `node_network_profile`: %+v" , err )
12431243 }
12441244
1245- if err := d .Set ("virtual_machine_profile " , flattenAgentPoolVirtualMachinesProfile (props .VirtualMachinesProfile )); err != nil {
1246- return fmt .Errorf ("setting `virtual_machine_profile `: %+v" , err )
1245+ if err := d .Set ("security_profile " , flattenAgentPoolSecurityProfile (props .SecurityProfile )); err != nil {
1246+ return fmt .Errorf ("setting `security_profile `: %+v" , err )
12471247 }
12481248 }
12491249
0 commit comments