def _create_subnet(self, resource_group_name, subnet_id, vnet_name):
subnet_config = {'<STR_LIT>': '<STR_LIT>'}<EOL>try:<EOL><INDENT>subnet_setup = self.network.subnets.create_or_update(<EOL>resource_group_name, vnet_name, subnet_id, subnet_config<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise AzureCloudException(<EOL>'<STR_LIT>'.format(error)<EOL>)<EOL><DEDENT>return subnet_setup.result()<EOL>
Create a subnet in the provided vnet and resource group.