From b2622f6c0f1343b89796c6f2bad38391014f9a4a Mon Sep 17 00:00:00 2001 From: Yuwei Zhou Date: Mon, 20 May 2019 10:15:35 +0800 Subject: [PATCH] Add service endpoints when creation (#56561) --- lib/ansible/modules/cloud/azure/azure_rm_subnet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/azure/azure_rm_subnet.py b/lib/ansible/modules/cloud/azure/azure_rm_subnet.py index 99c22fe488..09a56a24be 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_subnet.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_subnet.py @@ -313,6 +313,8 @@ class AzureRMSubnet(AzureRMModuleBase): subnet.network_security_group = self.network_models.NetworkSecurityGroup(id=nsg.get('id')) if self.route_table: subnet.route_table = self.network_models.RouteTable(id=self.route_table) + if self.service_endpoints: + subnet.service_endpoints = self.service_endpoints else: # update subnet self.log('Updating subnet {0}'.format(self.name))