Add service endpoints when creation (#56561)

This commit is contained in:
Yuwei Zhou 2019-05-20 10:15:35 +08:00 committed by ansibot
parent 708bda06aa
commit b2622f6c0f

View file

@ -313,6 +313,8 @@ class AzureRMSubnet(AzureRMModuleBase):
subnet.network_security_group = self.network_models.NetworkSecurityGroup(id=nsg.get('id')) subnet.network_security_group = self.network_models.NetworkSecurityGroup(id=nsg.get('id'))
if self.route_table: if self.route_table:
subnet.route_table = self.network_models.RouteTable(id=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: else:
# update subnet # update subnet
self.log('Updating subnet {0}'.format(self.name)) self.log('Updating subnet {0}'.format(self.name))